Quick Nav:  Online Store   |   Login | Register

Colors for parent tabs

Rate this topic:

Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
AuthorMessages
martin mcinulty
<20 Posts
Posts:9


10/01/2007 7:29 PM  

Hi

Looking to have independent colors in menu, how would i go about this??

i have one question at moment, i am trying to create a menu with parent tabs with independent colors and change with mouse over.

i have been able to use the suckerfish template to create an imageover option but images would not make skin use friendly if text size increased

IE - Horizontal menu for visible parent tabs

Tab 1Tab 2Tab 3Tab 4Tab 5Tab 6Tab 7

then i would have vertical for other levels

Thanks

John Mitchell
Posts:3478


10/08/2007 12:21 PM  

I'm sorry that I missed this post earlier.

I think the way I would do this is to use the id of each tab as a CSS selector.

So using the page at  http://demo.snapsis.com as an example, the first tab has an ID of navParent-36

Which can be used in the CSS to control the background-color of that specific list item.

#navParent-36 { background-color:blue}

Let me know if that is enough to get you going, or if you need further assistance.

martin mcinulty
<20 Posts
Posts:9


10/09/2007 9:37 AM  

Hi

i am having one more problem, caused by the padding in .TabList li

The background-color takes the full cell, but hover only replaces color from start of text, leaving the 10px of the original color

is there a css hack to have the hover fill the cell including the 10px of padding

what i have in css

.TabList li {
    float:left;
    margin:0;
    display: inline;
    padding:0 0 0 10px;
}

#navParent-54 { background-color:#39c}
#navParent-54 :hover{ background-color:#FFF}

Thanks

John Mitchell
Posts:3478


10/09/2007 9:42 AM  
Try removing the padding from the List Item and putting it into the anchor instead.

.TabList li a {padding: 0 0 0 10px;}

martin mcinulty
<20 Posts
Posts:9


10/09/2007 10:24 AM  
Hi

i altered the padding in .TabList li a did'nt work, but the changed the padding in navparent a to get how i was wanting

Thanks for your help
Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
Forums >Snapsis Product Support >CSS NavMenu > Colors for parent tabs



ActiveForums 3.7
Powered by: Snapsis Software