• Gear
  • Shots
  • Photo Craft
  • Video
  • Wide Angle
  • Support
  • New Stuff
  • More

FAQtoid

Ever wanted to create an Avatar? Creating an Avatar!

Searching Dgrin with Google Searching with Google

Dgrin Challenges

Congratulations to the Winner of DSS #128 (Sunrise or Sunset), ShootingStar.

The next Dgrin Challenge DSS #129 (Silhouette Revisited ) is open for entries through May 27th, 2013 at 8:00pm PDT.

As always, we look forward to your participation but please do take a moment to read through the rules before posting your entry.

Past DSS Challenge Winners, DSS Challenge Rules, and other important DSS Challenge information is here.

Need some help with Accessories?

Tutorials

Ever find yourself wondering just how someone managed to create an image using different effects?

Here are three simple tutorials we hope will encourage you to try something new.

The Hot Seat

A lifelong interest in landscape photography has led Eyal Oren to make a study of his adopted hometown of Marblehead, MA. As you can see, his dedication is paying off!

Africa!

Dgrinners Harryb, Pathfinder, and others joined Andy Williams and Marc Muench on Safari in East Africa recently. Here are some awesome threads to check out!

 
Thread Tools Display Modes
Old Jul-23-2009, 06:48 PM
#1
sjnoel is offline sjnoel OP
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]; |&nbsp;&nbsp;
<a href="[/FONT][FONT=Courier New] Services</a>&nbsp; |&nbsp;&nbsp;
<a href="[/FONT][FONT=Courier New] Services</a>&nbsp; |&nbsp;&nbsp;
<a href="[/FONT][FONT=Courier New] Construction</a>&nbsp; |&nbsp;&nbsp;
<a href="[/FONT][FONT=Courier New] Galleries</a>&nbsp; |&nbsp;&nbsp;
<a href="[/FONT][FONT=Courier New] Us</a>&nbsp; |&nbsp;&nbsp;
<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
Old Jul-23-2009, 08:41 PM
#2
jfriend is offline jfriend
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;
}
But your HTML doesn't have any li tags. You should either put each menu item in an li tag or change the CSS to this:

Code:
#navcontainer ul a {
    text-decoration: none;
    padding: .2em 1em;
    color: #e6eaf3;
}
I presume you want the <li> tags as in the navbar example here.
__________________
--John
HomepagePopular
JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Old Jul-24-2009, 09:00 AM
#3
sjnoel is offline sjnoel OP
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

Posting Rules  
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump