Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
cfj
on Feb 13, 2024
|
parent
|
context
|
favorite
| on:
How to center a div in CSS
I'm just as lazy as you, but I just wanted to point out that you can create a new stacking context explicitly with
isolation: isolate;
allannienhuis
on Feb 14, 2024
[–]
oh, great tip - thanks! That's much more explicit. The other approaches have the new stacking context as almost a side effect.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
isolation: isolate;