Hits 2360 | Created 2011-05-09 | Modified 2011-05-09
How do I position a div relative to the center of the screen, that resizes with the browser window? Useful if you have a centred layout and want something to be positioned outside the edge, e.g. a faded shadow to the right of your main content section.
This foxed me for a while.
Solution: Use a position absolute, with a left of 50%, and a left margin of the desired size.