Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
What CSS Needs: Granular Positioning | Better HN
What CSS Needs: Granular Positioning
(opens in new tab)
(coderwall.com)
4 points
hackernews
13y ago
2 comments
Share
2 comments
default
newest
oldest
protonfish
13y ago
You can center fixed positioned elements in CSS already like so:
#mydiv { position: fixed; left: 50%; margin-left: (pixel offset relative from center of page) }
beghbali
13y ago
I'd also like to see commonly JSed scenarios supported in CSS like toggles, slides, solid positioning
j
/
k
navigate · click thread line to collapse