I am trying to left align a div within a div that has been center aligned with margin: 0px auto; but i just can’t seem to get it working, i know this is a simple issue but i just can’t seem to get it to work…
any help would be brill !
PS – i have attached an image of the problem, just can see the left col is float-left but now the background (seen on the right) is creeping up…
alt text http://img96.imageshack.us/img96/1778/screenshot20091021at125.png
#wrap {
width: 940px;
height: auto;
margin: 0px auto;
text-align: left;
background-color: #c3c1c1;
}
nav {
width: 220px;
height: auto;
float: left;
}
float:left should do the trick
EDIT: You can put all your text in another div that is float:left make sure to set the width properly though