April 27, 201016 yr hey, Trying to change the black text in this drop down menu to white: My link Has to be very easy to do I know, I dont understand the CSS fully, got it from a tutorial. I've tried changing the colour in parts of the CSS to see if it what I'm looking for but no joy, I added #Header #nav li a {color: #ffffff; } but this hasn't worked, can anyone help me out? cheers
April 27, 201016 yr Here's your culprit: #Header #nav li:hover ul.sub li a { display:block; font-size:11px; height:18px; width:108px; line-height:18px; text-indent:5px; color:#000; text-decoration:none; border:1px solid #0984ba; } change to color:#fff;
April 27, 201016 yr Author Hey Guezala, I actually for got to attach my CSS code, what CSS file is that coming from? This is the CSS I though the menu was pulling from: menu.css #Header #nav {padding:0; margin:0; list-style:none; height:38px; position:relative; z-index:500; font-family:arial, verdana, sans-serif;} #Header #nav li.top {display:block; float:left; height:38px; padding: 0px 18px 0px 0px;} #Header #nav li a.top_link {display:block; float:left; height:35px; line-height:33px; color:#ffffff; text-decoration:none; font-size:11px; font-weight:normal; cursor:pointer;} #Header #nav li a.top_link span {float:left; display:block; height:35px;} #Header #nav li a.top_link span.down {float:left; display:block; height:35px; color:#ffffff;} #Header #nav li:hover a.top_link {color:#ffffff;} #Header #nav li:hover a.top_link span {} #Header #nav li:hover a.top_link span.down {} /* Default list styling */ #Header #nav li:hover {position:relative; z-index:200;} #Header #nav li:hover ul.sub {left:1px; top:38px; background: #0984ba; padding:3px; border:1px solid #0984ba; white-space:nowrap; width:110px; height:auto; z-index:300;} #Header #nav li:hover ul.sub li {display:block; height:20px; position:relative; float:left; width:110px; font-weight:normal;} #Header #nav li:hover ul.sub li a {display:block; font-size:11px; height:18px; width:108px; line-height:18px; text-indent:5px; color:#000; text-decoration:none;border:1px solid #0984ba;} #Header #nav li:hover ul.sub li a:hover {background:#00638f; color:#fff; border-color:#fff;} #Header #nav li:hover li:hover ul, #Header #nav li:hover li:hover li:hover ul, #Header #nav li:hover li:hover li:hover li:hover ul, #Header #nav li:hover li:hover li:hover li:hover li:hover ul {left:110px; top:-4px; background: #bbd37e; padding:3px; border:1px solid #5c731e; white-space:nowrap; width:110px; z-index:400; height:auto;} #Header #nav ul, #Header #nav li:hover ul ul, #Header #nav li:hover li:hover ul ul, #Header #nav li:hover li:hover li:hover ul ul, #Header #nav li:hover li:hover li:hover li:hover ul ul {position:absolute; left:-9999px; top:-9999px; width:0; height:0; margin:0; padding:0; list-style:none;} Should I have the files hidden somehow, whats best practice? Thanks
April 27, 201016 yr It's from you menu.css file. I think there are ways to 'hide' your css, but I don't personally. If someone wants to use your code they will find a way (ducks down from impending fire!) Hope this helps
April 27, 201016 yr Author haha, ok! I've been looking at it for so long I couldnt see that, cheers for the help
April 27, 201016 yr Sometimes when i have having issues trying to find css declarations. i.e in your case the black text i just open the css file and Ctrl + F the search for #000 or #000000 or black.
April 27, 201016 yr Or use firefox with the firebug addon. Then you just hover over the html code and it shades over which elements it refers too. You can also edit the css in it to see what works:D
April 27, 201016 yr Author both good suggestions, cheers guys. Firebug sounds awesome, will be getting that! thanks
Create an account or sign in to comment