dmccabe Posted March 28, 2008 Share Posted March 28, 2008 I am trying to apply a style to the menu options in my header. css #headermenu ul { margin: 0; padding: 0; list-style-type: none; } #headermenu ul li { display: inline; padding: 0; margin: 0 20px 0 0; } #headermenu ul li.a { font-family: Verdana; font-size: 14pt; color: #453796; font-weight: bold; } #headermenu ul li.a:hover { font-family: Verdana; font-size: 14pt; color: #453796; font-weight: bold; text-decoration: overline underline; } #headermenu ul li.a:link { font-family: Verdana; font-size: 14pt; color: #453796; font-weight: bold; } #headermenu ul li.a:visited { font-family: Verdana; font-size: 14pt; color: #453796; font-weight: bold; } #headermenu ul li.a:visited:hover { font-family: Verdana; font-size: 14pt; color: #453796; font-weight: bold; text-decoration: overline underline; } html <div id="headermenu"> <ul> <li><a href="<?php $rootdir?>callcentre/" title="Call Centre Dept">Call Centre</a></li> <li><a href="#">Menu item 2</a></li> <li><a href="#">Menu item 2</a></li> <li><a href="#">Menu item 2</a></li> </ul> </div> I am not a css expert so this could be completely wrong! Link to comment https://forums.phpfreaks.com/topic/98302-what-am-i-doing-wrong/ Share on other sites More sharing options...
rhodesa Posted March 28, 2008 Share Posted March 28, 2008 Remove all the periods between LI and A: #headermenu ul li a { Link to comment https://forums.phpfreaks.com/topic/98302-what-am-i-doing-wrong/#findComment-503006 Share on other sites More sharing options...
dmccabe Posted March 28, 2008 Author Share Posted March 28, 2008 Nice one thanks! Link to comment https://forums.phpfreaks.com/topic/98302-what-am-i-doing-wrong/#findComment-503038 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.