play_ Posted May 14, 2006 Share Posted May 14, 2006 Ok, i have this:[code]* a { color: #990000; text-decoration: none; border-bottom: 1px dotted #000000;}[/code]and i also have[code].menu a { font-size: 11px; display: block; width: 75px; border-right: 1px solid #666666; padding: 3px; text-align: center; text-decoration: none; color: #fff;}[/code]and on the index page:[code]<div class="menu"> <ul> <li><a href="#">Home</a></li> <li><a href="#">About</a></li> <li><a href="#">Portfolio</a></li> <li><a href="#">Contact</a></li> <li><a href="#">Links</a></li> <li><a href="#">Misc.</a></li> </ul> </div> <!--/menu -->[/code]Ok. i think by now you probably know what im going to ask.* a { is affecting the menu links. Is there a way to make it not overwrite the menu styles? (there should be, i used to know how) Quote Link to comment https://forums.phpfreaks.com/topic/9638-hehe-i-used-to-remember-how-to-do-this/ Share on other sites More sharing options...
moberemk Posted May 14, 2006 Share Posted May 14, 2006 You actually don't need to use the * a in front of every universal declaration. Just get rid of it. Quote Link to comment https://forums.phpfreaks.com/topic/9638-hehe-i-used-to-remember-how-to-do-this/#findComment-35672 Share on other sites More sharing options...
play_ Posted May 15, 2006 Author Share Posted May 15, 2006 [!--quoteo(post=373706:date=May 14 2006, 07:31 AM:name=moberemk)--][div class=\'quotetop\']QUOTE(moberemk @ May 14 2006, 07:31 AM) [snapback]373706[/snapback][/div][div class=\'quotemain\'][!--quotec--]You actually don't need to use the * a in front of every universal declaration. Just get rid of it.[/quote]Thank you.::edit::that didnt solve the problem =() Quote Link to comment https://forums.phpfreaks.com/topic/9638-hehe-i-used-to-remember-how-to-do-this/#findComment-35829 Share on other sites More sharing options...
eddedwards Posted May 24, 2006 Share Posted May 24, 2006 [!--quoteo(post=373866:date=May 15 2006, 02:13 AM:name=play_)--][div class=\'quotetop\']QUOTE(play_ @ May 15 2006, 02:13 AM) [snapback]373866[/snapback][/div][div class=\'quotemain\'][!--quotec--]Thank you.::edit::that didnt solve the problem =()[/quote]instead of .menu atry a.menui think that might work Quote Link to comment https://forums.phpfreaks.com/topic/9638-hehe-i-used-to-remember-how-to-do-this/#findComment-38667 Share on other sites More sharing options...
Heero Posted May 25, 2006 Share Posted May 25, 2006 Yeah, to follow up.1) You need to get rid of the unverisal symbol *2) You need to use a.menu because menu.a doesn't make sense Quote Link to comment https://forums.phpfreaks.com/topic/9638-hehe-i-used-to-remember-how-to-do-this/#findComment-38749 Share on other sites More sharing options...
nogray Posted May 25, 2006 Share Posted May 25, 2006 .menu a will only effect the immediate children (in your case the UL under the div) if you want it to effect the a, you can put it directly under the div tag (without the UL and LI) but the easiest solution will be to give the links a class for themselves like .side_links {...} Quote Link to comment https://forums.phpfreaks.com/topic/9638-hehe-i-used-to-remember-how-to-do-this/#findComment-38806 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.