...

View Full Version : Horizontal Div List not staying inside of container



moonwalkercs
07-14-2005, 09:33 PM
Hi

I have a #main div tag to affect the content part of my website. I am trying to create a horizontal list to display picture names inside the main. I created the list with the ul and il tags. The list was created fine but it doesn't appear inside the main content area, it appears below it. Here's the styles i created:

#main{
position:relative;
margin-right:5px;
margin-top: 10px;
background-color: #FBC246;
left:5px;
top: -21px;
padding-bottom:5px;
}

#main li{
width: 13%;
margin: 5px;
padding: 5px;
background-color: #353E49;
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 14px;
font-weight: bold;
color: #FBC246;
float:left;
}

#nav{
overflow:hidden;
background-color: #FBC246;

}

#main ul{
margin:0px;
display:inline;
}

Any idea of how to fix this problem? i'd really like to get it to work.

_Aerospace_Eng_
07-14-2005, 11:29 PM
We need to see your code, a link wouldn't hurt either. Can't do much from just a snippet of CSS.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum