Jump to content

[SOLVED] Simple CSS problem - taking forever :/


StroiX

Recommended Posts

Please refer to the following web site: http://alturl.com/iio4

 

As you can see in the above mentioned web site, there is a "|" menu link divider which displays between the links (About, Events, Teams, Shop).  I don't want it to however appear at the end of the last link (shop).  I have tried several things but can't seem to get the CSS to remove it just after the last link.

 

Any help with this would be greatly appreciated.  Following is both HTML and CSS code:

 

<div id="navigation">
<a href="/about" class="navigation-about">About</a>
<a href="/events" class="navigation-events">Events</a>
<a href="/teams" class="navigation-teams">Dance Teams</a>
<a href="/shop" class="navigation-shop">Shop</a>
</div>

 

/***** Navigation *****/

#navigation {
    background:url(../_images/menu_bg.png) repeat-x;
height:68px;
width:100%;
padding:10px 0 10px 0;
margin:0 0 20px 0;
}
/*#navigation a { color:#666; padding: 0 10px 0 10px; text-decoration:none; }*/


.navigation-about, .navigation-events, .navigation-teams, .navigation-shop {
    float: left;
    display: block;
    padding: 0 0 0 12px;
    font-size: 105%;
}

#navigation-logo {
display:block;
float:left;
margin:3px 0 0 10px;
padding-right:25px;
}

#navigation a, #navigation a:visited {
display:block;
text-decoration:none;
color:#666;
padding:0 10px 0 10px; 
background-image:url(../_images/nav_divider.png);
background-repeat:no-repeat;
background-position:right;
font-weight:bold;
}

 

Thank you once again!  If possible.. pleaseeeee provide a working CSS so I do not misunderstand you.

 

Link to comment
Share on other sites

You could just add a class for the last link.

 

<div id="navigation">
<a href="/about" class="navigation-about">About</a>
<a href="/events" class="navigation-events">Events</a>
<a href="/teams" class="navigation-teams">Dance Teams</a>
<a href="/shop" class="navigation-shop" class="last">Shop</a>
</div>

 

and get rid of the image

 

#navigation a.last{
background-image: url();
}

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.