...

View Full Version : position with css



miranda
05-19-2005, 06:38 PM
Using CSS I want to have it so that my info is in a container that is 700px wide in the center of the page. the following code works in IE but fails miserably in Firefox, Netscape, and Opera.


#l1{
MARGIN-TOP: 0px;
TEXT-ALIGN: left;
WIDTH: 700px
}
#main{
TEXT-ALIGN: center;
}


These are both div id's. The l1 div is nested inside the main div.

NancyJ
05-19-2005, 06:43 PM
#l1{
margin:auto;
MARGIN-TOP: 0px;
TEXT-ALIGN: left;
WIDTH: 700px
}
#main{
TEXT-ALIGN: center;
}

miranda
05-19-2005, 07:55 PM
Thank You :)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum