Thanks for taking the time to read this.
I'm just trying to style a list in order to create a menu, and for the life I can't see why it's not working.
Here's the HTML:
and the CSS:HTML Code:<table cellpadding="0" cellspacing="0" class="moduletable"> <tr> <td> <ul id="mainlevelmain_menu"><li><a href="#" id="active_menumain_menu">Home</a></li> <li><a href="#" >News</a></li> </ul> </td> </tr> </table>
Is the problem because the content is inside a table cell? Or am I doing something else wrong?PHP Code:ul.mainlevelmain_menu{
text-align: center;
padding-bottom: 5px;
padding-top: 5px;
padding-left: 0;
margin-top: 0;
margin-left: 0;
background-color: #426208;
color: white;
width: 100%;
font-family: Verdana,Arial,Helvetica,sans-serif;
line-height: 18px;
}
ul li.mainlevelmain_menu
{
display: inline;
padding-left: 0;
padding-right: 0;
padding-bottom: 5px;
padding-top: 5px;
}
Any help would be really appreciated!







Bookmarks