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 growth 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.
Login to add a hashtag.
Hashtags
Bookmark
Rss
Topic html and css
Public room public room
html and css. Let's go!
Depth  •  Home / Tech / programming / html and css
Moderators  • sys
View Subtopics
No. 330
69
3
0
More
Copy link
Report
Encrypt
Encrypt post text
Encryption Key
Repeat Key
Encrypt
Encrypt post text before posting. Choose an encryption key to encrypt your post with. Be sure to remember this key, as it is the only way to decrypt and view the content again. Only share this key with individuals you want to be able to decrypt your post.
Note that all encryption is performed locally, and no one will be able to recover the content if you lose this key.
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.