i want to move div back left

Posted by user1280074 on Stack Overflow See other posts from Stack Overflow or by user1280074
Published on 2012-03-20T05:23:54Z Indexed on 2012/03/20 5:29 UTC
Read the original article Hit count: 175

Filed under:
|
|

i have my BG image set to center & i wanna move my main content's div back to the left a little on that BG image.

changing the width of the div wont do it. that just allows me to scroll more to the right. but i need it to move back left a little. but i still need that image center.

how do i code this?

bada-bing

<style>
body
{
background-image:url;
background-repeat:no-repeat;
background-position:center top;
} 
</style>

bada-boom

<center>
<div style="position: relative; left: 0px; top: 0px; width: 1200px; height: 1511px;">
<img src=""position: relative; top: 100px; left: -350px;"/>
</div>
</center>

help me please

© Stack Overflow or respective owner

Related posts about html

Related posts about css