Settings

Theme

What CSS Needs: Granular Positioning

coderwall.com

4 points by hackernews 13 years ago · 2 comments

Reader

protonfish 13 years 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 13 years ago

I'd also like to see commonly JSed scenarios supported in CSS like toggles, slides, solid positioning

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection