Danny.S
Members
-
Joined
-
Last visited
Reputation Activity
-
Danny.S reacted to evu in Positioning elements in a page#header { position: relative; } #div2, #div4 { position: absolute; top: 150px; } #div4 { top: 100px; right: 0; }
Should move those divs where you want 'em.
Goodluck,
~evu.
-
Danny.S reacted to evu in Positioning elements in a pageUsually, to center a div, you set a width and apply "margin: 0 auto;" to it. But you've used absolute positioning so auto wont work.
This'll do it though.
#div5 { position: absolute; bottom: 10px; width: 800px; height: 50px; background-color: #CCC; margin-left: -400px; left: 50%; }
Goodluck,
~evu.