PDA

View Full Version : Positioning DIV's not working?


rainkisses-xxx5834
03-26-2008, 11:29 AM
I cannot get my div to position correctly. I validated my HTML and CSS to see if ever thing is working right, and it said it was O.K, but the positioning still isn't working. Can anyone help me?oh I forgot the link lolhttp://www.freewebs.com/flashbackk-/index.htm

inverse_chi
03-26-2008, 11:43 AM
I take it you are trying to move the text into the white area.In the CSS for the styles regarding the main div try addingposition: absolute;and then mess with the top and left pixel amounts to tweak it to the right location...I hope that helps

rockinronnie0265
03-26-2008, 11:58 AM
Not sure exactly how you want to position the div. Instead of absolute positioning its better to use relative. Like so...#main {position: relative;left: 150px;top: 25px;}That means your div #main will be positioned 150px from the left edge of the previous element, and 25px below it. The previous element is your imagemap.You can also use negative values. This would place your div above the previous element.#main {position: relative;left: 25px;top: -90px;}