Feedback
Got a suggestion for improvement? Anything goes.
Found a bug? Let us know. For other inquries feel free to contact us about anything at all.
Call to action
Depvana's reach is 100% powered by word of mouth. If you want to help: tell a friend! Let your group chats know, let people know of Depvana.
Depvana •
about •
legal •
contact •
Depvana is independent. Help keep it that way.
© 2024 Depvana aps.

html and css

Public room public room
No. 330
110
3
0
More
Copy link
Report
Moderators  • sys

html and css. Let's go!

Login to add a hashtag.
Hashtags
Bookmark
Rss
Subtopics
Visible to the public Public post
Attachments • images • video webm/mp4 • max size 4096KiB.
Attachments • images • video • max 4MB.
Filter  â€¢  Newest
Newest
Sort posts in decending order by date
Oldest
Sort posts in ascending order by date
Compact View Mode
No.4314 • 
anon@277 
More
Options
Copy link
Report
>
The only practical solution I could find was to simply accept the situation and set the child element’s position to absolute, adjusting its width and height using vh and vw instead.
No.4313 • 
anon@277 
More
Options
Copy link
Report
** Noteworthy bug in html position:fixed!

Any element with transform, filter or perspective property will act as a containing block to all its descendants, including the elements whose position is set to fixed. 

in other words, javascript set inline set properties breaks the positioning of child elements with position:fixed. 
https://dev.to/salilnaik/the-uncanny-relationship-between-position-fixed-and-transform-property-32f6
No.4248 • 
sys@335 
More
Options
Copy link
Report
** Understanding Stacking Contexts in HTML:

A stacking context is a hierarchy that determines the order in which elements are stacked on the page. Elements with a higher stacking context will appear above those with a lower one.

** Key points to understand:

	What creates a stacking context? 
An element creates a stacking context when it has any of the following: position set to relative, absolute, fixed, or sticky; z-index other than auto; opacity less than 1; certain CSS properties like transform, filter, perspective, etc.

   	How stacking contexts affect layering: 
Elements inside a stacking context are stacked in the order they appear in the HTML. The stacking context itself is stacked relative to its parent, which may also be in a different stacking context. This means an element in one stacking context can be hidden behind or in front of an element in another stacking context, even if the latter has a lower z-index.

   	Why it matters: 
Elements with higher z-index values may not always appear on top if they are in different stacking contexts. Understanding stacking contexts helps avoid unexpected layering issues when working with modals, dropdowns, tooltips, and other positioned elements.