View Full Version : Move div left a few pixels?


Black_V!per
02-15-2006, 01:48 AM
How can i move a Div table to the left by a few pixels? I have my profile on myspace so that there's an image to the left of the tables that continues down all the way, and sometimes text over laps it, and isnt to visible, i was wondering if putting the text into yet another table and moving that table to the left a few pixels would be possible, to, offset it so it doesnt go over that image.

profile:
myspace.com/pcitalian649


Thanks in advance.

salomeyasobko
02-15-2006, 07:45 PM
you move a DIV left with the purple code.. edit the bold part:

<div style="position: relative; left: -##px;"></div>

relative positioning moves the DIV from it's current position.. so, say the DIV is in the middle of the page. if you relative position it -10 pixels to the left, it'll be 10 pixels to the left of where it started.

hope that helps! :)

Black_V!per
02-15-2006, 09:08 PM
Thanks, that worked perfectly.