Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
-1 votes
1 answer
76 views

CSS stacking: ::before pseudo-element (button) appears above content on hover [duplicate]

On hover, the buttons show a conical gradient background, which I have set to button-class::before to bring that glow effect for each button. Image .button-class{ background-color: #0f0f2c; box-...
Yogita's user avatar
  • 1
0 votes
3 answers
76 views

Elements stacking abnormal behaviour in CSS

<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>...
Warlock Gaming's user avatar
0 votes
2 answers
74 views

How to set min-bottom when using anchor positioning in CSS?

When using anchor positioning, I want the element to not extend beyond the boundaries of screen (or other container). For example: document.getElementById("flyout2").innerText += " long".repeat(100); ....
Cmo Sekil's user avatar
  • 181
0 votes
0 answers
31 views

position: sticky CSS doesn't work - simple example [duplicate]

Position: sticky CSS doesn't work in this simplified example. What's wrong with it? .container { position: sticky; top: 20px; z-index: 10000; padding: 10px; background-color: green;...
Haradzieniec's user avatar
  • 9,368
1 vote
4 answers
107 views

Concentric rings (similar to a radar) using CSS

I'm doing a flask battleship game. Started with the visuals, and have this HTML/CSS structure: :root { background-color: black; } .boards-container { display: flex; justify-content: space-...
maverickar's user avatar
0 votes
2 answers
98 views

HTML Element not sticking even after applying "position : sticky" and adding a "top" value

I have provided a picture in this post and as you can see there is a box where text is written "I am sticky".So initially when i applied the "position:sticky" with "top:0"...
Warlock Gaming's user avatar
0 votes
0 answers
52 views

Removing Image Overflow in CSS

I'm trying to make the header for the website for my personal project. However, the image is overflowing out of its' container and I don't know how I can fix it. I've tried using overflow: hidden , ...
user30493788's user avatar
0 votes
0 answers
46 views

Why does `position: absolute` not stick to the bottom of the viewport when no positioned ancestor exists? [duplicate]

I'm experimenting with CSS positioning and noticed something confusing. I have the following setup: .box3 { background-color: #9C27B0; width: 100px; height: 100px; position: absolute; bottom:...
meallhour's user avatar
  • 15.8k
0 votes
2 answers
73 views

how do i make an element appear the same on all resolutions?

the element labelled "gib" is supposed to sit at the corner of the white container, and does so on my screen (at 1920 x 1080) but at other resolution, the element goes off to the left of the ...
tombrot's user avatar
  • 13
5 votes
2 answers
294 views

How can I make a child element escape a parent with overflow: hidden without breaking my layout?

I’m working on a layout where the parent element has the following properties: .parent { position: relative; height: 350px; border: 1px solid #ddd; border-radius: 8px; overflow: hidden; ...
shashi kiran's user avatar
2 votes
3 answers
69 views

Absolute checkbox in overflow container breaks render when being checked

I feel as though I'm being pranked. I'm running into an issue that is replica table in both Chrome and FireFox and I cannot understand why it's happening. I have a "pseudo" checkbox setup I'...
Rick Kukiela's user avatar
  • 1,283
0 votes
0 answers
31 views

Why does the vertical scrolling stops at certain points both when the sub menu is collapsed and expanded?

I have a side bar menu that stops scrolling when it reaches the "categories" item on the list, thereby not allowing the user to get to the other items on the list in side bar menu. Although ...
Michael Oboho's user avatar
-1 votes
1 answer
43 views

How can I make sure my image does not clutter with rest of the content? [closed]

I have the below code for a page that has a footer which is absolutely positioned to the bottom left of the main container. I have kept it as absolute for different resolutions to show the image on ...
Swayam Shah's user avatar
-1 votes
2 answers
51 views

Fixed div hides elements with higher z-index

I want to show a mobile menu that is displayed full screen and hides all the content except the page logo and hamburger menu icon. The following is my test code, note that it also hides the page logo ...
me.at.coding's user avatar
  • 18.2k
0 votes
0 answers
131 views

Fixing Header with JavaScript After Scrolling Past 100vh Header:

I am trying to make a header that stays fixed when I scroll down, but it only goes until the end of the header, which is set to 100vh. Does anyone have any idea how I can solve this without stopping ...
yCafEe's user avatar
  • 1

15 30 50 per page
1
2 3 4 5
373