|
|
Thread Tools | Display Modes |
|
#1
|
|
|
Big grins
|
Css problems
I almost have this site the way I want it. I just can't get the colors right on the menu a the top.
http://jmbuilders.smugmug.com/ This is my css: [FONT=Courier New]div.navholder { padding: 0; margin: 0; font-weight:bold; margin-left:auto; margin-right:auto; width: 998px; }[/FONT] [FONT=Courier New]#navcontainer ul { width:998px; margin: 0; padding: 10px 0; list-style-type: none; text-align: center; font-family: verdana, arial, sans-serif; font-size:12px; }[/FONT] [FONT=Courier New]#navcontainer {display: block;}[/FONT] [FONT=Courier New]#navcontainer ul li { display: inline; }[/FONT] [FONT=Courier New]#navcontainer ul li a { text-decoration: none; padding: .2em 1em; color: #e6eaf3; }[/FONT] [FONT=Courier New]#navcontainer ul li a:visited { text-decoration: none; padding: .2em 1em; color: #e6eaf3; }[/FONT] [FONT=Courier New]#navcontainer ul li a:hover { color: #463682; background-color: #fff; }[/FONT] And this is my custom header: [FONT=Courier New]<div class="navholder">[/FONT] [FONT=Courier New]<div id="navcontainer"> <ul> Test <a href="[/FONT][FONT=Courier New]; | <a href="[/FONT][FONT=Courier New] Services</a> | <a href="[/FONT][FONT=Courier New] Services</a> | <a href="[/FONT][FONT=Courier New] Construction</a> | <a href="[/FONT][FONT=Courier New] Galleries</a> | <a href="[/FONT][FONT=Courier New] Us</a> | <a href="[/FONT][FONT=Courier New] Us</a> </ul> </div>[/FONT] [FONT=Courier New][/FONT] I just can't see what I have wrong. I think I've spent more time on this than the rest of the site! Thanks for any advice |
|
|
|
|
#2
|
|
|
Scripting dude-volunteer
|
You do not need to post your CSS here as it just makes the thread hard to read. We can see anything we want to right in your web page. Your CSS is targetting:
#navcontainer ul li a with this rule: Code:
#navcontainer ul li a {
text-decoration: none;
padding: .2em 1em;
color: #e6eaf3;
}
Code:
#navcontainer ul a {
text-decoration: none;
padding: .2em 1em;
color: #e6eaf3;
}
__________________
--John Homepage • Popular JFriend's javascript customizations • Secrets for getting fast answers on Dgrin Always include a link to your site when posting a question |
|
|
|
|
#3
|
|
|
Big grins
|
DOH! I knew it was something stupid I was doing...but I guess I wasn't looking for anything so obvious as that. I had copied the menu from the website code, not realizing the difference in the structure.
THANKS FOR YOUR HELP! |
|
|
|
| Tell The World! | |
| Thread Tools | |
| Display Modes | |
|
|