|
|
|
|
|
by ioulian
930 days ago
|
|
ah yes, jQuery. Indeed hide()/show() just set css to display: none/block, but it can vary (inline/flex/...). CSS is a bit of a mess the last few years, with so many caveats... Just look at why position sticky will sometimes not work: "If you are trying to use position: sticky and it is not working, it is because one of the elements wrapping it is using overflow with a value of hidden, auto or scroll."[1] But it's weird, it should work, or at least this should be documented somewhere. Also why should overflow: hidden break the functionality... If you know all the caveats of css, then you can safely say "I know CSS". [1] https://robertmarshall.dev/blog/solution-to-why-css-position... |
|