|
|
Thread Tools | Display Modes |
|
#1
|
|
|
Big grins
|
Nav Bar
I want to change the color of only one of my menu items on my navbar. My web site is www.tonyspic.com
The item that I want to change is the "Colts Sports" when you hover over it is Orange and blue and when you drop down it turns to white and orange. Also the drop down is orange and I would like both positions to be blue with white letters. The fly outs are orange and I want them to be blue with white letters also. Can some one suggest something on this? I have searched the customization but did not see any thing on this specific subject. Thanks |
|
|
|
|
#2
|
||
|
"tweak 'til it squeaks"
|
Quote:
Not quite sure what colors you want. There are four color states for each cell.color (text) non-hover color (text) hover background non-hover background hover ... and three buttons/cells in your case main bar dropdown flyout Try to define the 4 color states for each of these.
__________________
Al My Website my Blog Mozilla Firefox Web Developer Firebug Customization FAQ Banner/Navbar/Slideshow Tutor |
|
|
|
||
|
#3
|
||
|
Big grins
|
Quote:
|
|
|
|
||
|
#4
|
||
|
"tweak 'til it squeaks"
|
Quote:
to add some specific classes to that part of the nav, I'll look at it. Also to make it simpler to work on I'll use the latest CSS from post.
__________________
Al My Website my Blog Mozilla Firefox Web Developer Firebug Customization FAQ Banner/Navbar/Slideshow Tutor |
|
|
|
||
|
#5
|
|
|
"tweak 'til it squeaks"
|
Here's the new version of CSS. Think I have all the colors correct. Next I will work on you specific drop.
Code:
/* CSS Dropdown Nav Bar */
/* Original code by Stu Nicholls of */
/* http://www.cssplay.co.uk/ */
/* Edited for content, formatting and some elements */
/* Please help support CSSPlay at: */
/* http://www.cssplay.co.uk/support.html */
/* CSS Section */
/* style the outer div to give it width */
.menu {
z-index: 99;
position: relative; /* Make the container moveable */
margin: 0 auto 20px; /* top R/L bottom */
width: 820px; /* Main bar total width, minimize to not wrap to two lines*/
}
/* remove all the bullets, borders and padding from the default list styling */
.menu ul {
padding: 0;
margin:0;
list-style-type:none;
}
/* float the list to make it horizontal and a relative position so that you can control the dropdown menu position */
.menu li {
float:left; /* float right will reverse the main buttons */
text-align:center;
width:auto;
position:relative;
padding: 0;
}
/* style the links for the top level */
.menu a, .menu a:visited {
display:block;
text-decoration:none; /* none, overline, underline */
color:white;
background:#0033FF;
border:1px solid #FF630F; /* optional */
border-width:1px 1px 1px 1px; /* optional */
font-size:10pt;
font-family: Arial;
width:110px; /* Defines the main box dimensions. */
height:20px; /* How tall your cells are */
line-height:20px; /* vertical text alignment in cell */
padding: 0 2px; /* top/bottom R/L */
}
/* main hover */
.menu a:hover, .menu :hover > a {
color:#0033FF;
background:#FF630F;
}
/* a hack so that IE5.5 faulty box model is corrected */
* html .menu a, * html .menu a:visited {width:130px; w\idth:130px;}
/* style the table so that it takes no part in the layout */
.menu table {position:absolute; top:0; left:0;}
/* ***** LEVEL 2 ***** LEVEL 2 ***** LEVEL 2 ***** */
/* another hack for IE5.5 */
* html .menu ul ul {top:20px; t\op:21px;} /* IE gap between main bar and the dropdown items */
/* hide the sub levels and give them a positon absolute so that they take up no room */
.menu ul ul {
visibility:hidden;
position:absolute;
height:0;
top:20px; /* move drop vertically */
left:0; /* move drop horizontally */
width:130px; /* Size of the daughter cells */
}
/* style the second level background non-hover */
.menu ul ul a.drop, .menu ul ul a.drop:visited {background:#FF630F;} /* if 3rd level exists */
/* style the second level hover */
.menu ul ul a.drop:hover {background:#0033FF;}
.menu ul ul :hover > a.drop {background:#0033FF;}
/* style the second level links */
.menu ul ul a, .menu ul ul a:visited {
color:white;
background:#FF630F;
height:auto;
line-height:20px;
width:110px;
}
.menu ul ul :hover > a.drop {background:#0033FF;} /* 2nd if 3rd level exists */
/* yet another hack for IE5.5 */
* html .menu ul ul a {width:120px; w\idth:120px;}
/* 2nd level hover */
.menu ul ul a:hover, .menu ul ul :hover > a {
color:white;
background:#0033FF;
}
/* ***** LEVEL 3 ***** LEVEL 3 ***** LEVEL 3 ***** */
/* position the third level flyout menu */
.menu ul ul ul {
left:115px;
top:0;
width:160px;
height:auto;
}
.menu ul ul ul li a {color:white;}
.menu ul ul ul li a:hover {color:white;}
/* style the third level background */
.menu ul ul ul a, .menu ul ul ul a:visited {background:#FF630F;} /* not FF */
/* style the third level hover */
.menu ul ul ul a:hover {background:#0033FF;}
.menu ul ul ul :hover > a {background:#0033FF;} /* 3rd (w/o 4th) 4th hover */
/* style the third level links */
.menu ul ul ul a, .menu ul ul ul a:visited {
color:white; /* hover 2nd > 3rd & 4th */
background:#FF630F; /* hover 3rd > 4th */
height:20px;
line-height:20px;
width:110px;
}
/* ***** LEVEL 4 ***** LEVEL 4 ***** LEVEL 4 ***** */
/* position the fourth level flyout menu */
.menu ul ul ul ul {
left:130px;
top:0;
width:130px;
height: auto !important;
}
/* 4th level non-hover */
.menu ul ul ul ul li a {
color:white;
width:150px;
}
/* style the fourth level hover */
.menu ul ul ul ul a:hover {background:#0033FF;}
.menu ul ul ul ul :hover > a {background:#0033FF;}
/* make the 2nd level visible when hover on 1st level */
.menu ul :hover ul {visibility:visible;}
/* make the 3rd level visible when you hover over 2nd level */
.menu ul :hover ul :hover ul {visibility:visible;}
/* make the 4th level visible when you hover over 3rd level */
.menu ul :hover ul :hover ul :hover ul {visibility:visible;}
/* keep the 3rd level hidden when you hover on 1st level */
.menu ul :hover ul ul {visibility:hidden;}
/* keep the 4th level hidden when you hover on 2nd level */
.menu ul :hover ul :hover ul ul {visibility:hidden;}
/* End Navbar Code */
__________________
Al My Website my Blog Mozilla Firefox Web Developer Firebug Customization FAQ Banner/Navbar/Slideshow Tutor |
|
|
|
|
#6
|
||
|
Big grins
|
Quote:
|
|
|
|
||
|
#7
|
||
|
"tweak 'til it squeaks"
|
Quote:
Code:
<li><a class="drop" href="#nopick">Colts Sports
<!--[if gte IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
<ul class="coltsColors">
<li><a href="/Colts%20Football"> FootBall </a></li>
<li><a href="/Colts"> Band </a></li>
<li><a class="drop" href="#nopick">BasketBall
<!--[if gte IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
<ul class="coltsColors">
<li><a href="/Colts%20Basketball%20Boys">Colts</a></li>
...
Code:
/* CSS Dropdown Nav Bar */
/* Original code by Stu Nicholls of */
/* http://www.cssplay.co.uk/ */
/* Edited for content, formatting and some elements */
/* Please help support CSSPlay at: */
/* http://www.cssplay.co.uk/support.html */
/* CSS Section */
/* style the outer div to give it width */
.menu {
z-index: 99;
position: relative; /* Make the container moveable */
margin: 0 auto 20px; /* top R/L bottom */
width: 820px; /* Main bar total width, minimize to not wrap to two lines*/
}
/* remove all the bullets, borders and padding from the default list styling */
.menu ul {
padding: 0;
margin:0;
list-style-type:none;
}
/* float the list to make it horizontal and a relative position so that you can control the dropdown menu position */
.menu li {
float:left; /* float right will reverse the main buttons */
text-align:center;
width:auto;
position:relative;
padding: 0;
}
/* style the links for the top level */
.menu a, .menu a:visited {
display:block;
text-decoration:none; /* none, overline, underline */
color:white;
background:#0033FF;
border:1px solid #FF630F; /* optional */
border-width:1px 1px 1px 1px; /* optional */
font-size:10pt;
font-family: Arial;
width:110px; /* Defines the main box dimensions. */
height:20px; /* How tall your cells are */
line-height:20px; /* vertical text alignment in cell */
padding: 0 2px; /* top/bottom R/L */
}
/* main hover */
.menu a:hover, .menu :hover > a {
color:#0033FF;
background:#FF630F;
}
/* a hack so that IE5.5 faulty box model is corrected */
* html .menu a, * html .menu a:visited {width:130px; w\idth:130px;}
/* style the table so that it takes no part in the layout */
.menu table {position:absolute; top:0; left:0;}
/* ***** LEVEL 2 ***** LEVEL 2 ***** LEVEL 2 ***** */
/* another hack for IE5.5 */
* html .menu ul ul {top:20px; t\op:21px;} /* IE gap between main bar and the dropdown items */
/* hide the sub levels and give them a positon absolute so that they take up no room */
.menu ul ul {
visibility:hidden;
position:absolute;
height:0;
top:20px; /* move drop vertically */
left:0; /* move drop horizontally */
width:130px; /* Size of the daughter cells */
}
/* style the second level background non-hover */
.menu ul ul a.drop, .menu ul ul a.drop:visited {background:#FF630F;} /* if 3rd level exists */
.menu ul ul.coltsColors a.drop, .menu ul ul.coltsColors a.drop:visited {background:purple;}
/* style the second level hover */
.menu ul ul a.drop:hover {background:#0033FF;}
.menu ul ul :hover > a.drop {background:#0033FF;}
.menu ul ul.coltsColors a.drop:hover {background:pink;}
.menu ul ul.coltsColors :hover > a.drop {background:pink;}
/* style the second level links */
.menu ul ul a, .menu ul ul a:visited {
color:white;
background:#FF630F;
height:auto;
line-height:20px;
width:110px;
}
.menu ul ul.coltsColors a, .menu ul ul.coltsColors a:visited {
color:white;
background:purple;
}
.menu ul ul :hover > a.drop {background:#0033FF;} /* 2nd if 3rd level exists */
.menu ul ul.coltsColors :hover > a.drop {background:pink;}
/* yet another hack for IE5.5 */
* html .menu ul ul a {width:120px; w\idth:120px;}
/* 2nd/3rd level hover */
.menu ul ul a:hover, .menu ul ul :hover > a {
color:white;
background:#0033FF;
}
.menu ul ul.coltsColors a:hover, .menu ul ul.coltsColors :hover > a {
color:white;
background:pink;
}
/* ***** LEVEL 3 ***** LEVEL 3 ***** LEVEL 3 ***** */
/* position the third level flyout menu */
.menu ul ul ul {
left:115px;
top:0;
width:160px;
height:auto;
}
.menu ul ul ul li a {color:white;}
.menu ul ul ul li a:hover {color:white;}
/* style the third level background */
.menu ul ul ul a, .menu ul ul ul a:visited {background:#FF630F;} /* not FF */
.menu ul ul ul.coltsColors a, .menu ul ul ul.coltsColors a:visited {background:purple;}
/* style the third level hover */
.menu ul ul ul a:hover {background:#0033FF;}
.menu ul ul ul :hover > a {background:#0033FF;} /* 3rd (w/o 4th) 4th hover */
.menu ul ul ul.coltsColors a:hover {background:pink;}
.menu ul ul ul.coltsColors :hover > a {background:pink;}
/* style the third level links */
.menu ul ul ul a, .menu ul ul ul a:visited {
color:white; /* hover 2nd > 3rd & 4th */
background:#FF630F; /* hover 3rd > 4th */
height:20px;
line-height:20px;
width:110px;
}
/* make the 2nd level visible when hover on 1st level */
.menu ul :hover ul {visibility:visible;}
/* make the 3rd level visible when you hover over 2nd level */
.menu ul :hover ul :hover ul {visibility:visible;}
/* keep the 3rd level hidden when you hover on 1st level */
.menu ul :hover ul ul {visibility:hidden;}
/* End Navbar Code */
__________________
Al My Website my Blog Mozilla Firefox Web Developer Firebug Customization FAQ Banner/Navbar/Slideshow Tutor |
|
|
|
||
|
#8
|
||
|
Big grins
|
Quote:
|
|
|
|
||
|
#9
|
||
|
"tweak 'til it squeaks"
|
Quote:
color (text) non-hover color (text) hover background non-hover background hover
__________________
Al My Website my Blog Mozilla Firefox Web Developer Firebug Customization FAQ Banner/Navbar/Slideshow Tutor |
|
|
|
||
|
#10
|
|
|
Big grins
|
|
|
|
|
|
#11
|
|
|
"tweak 'til it squeaks"
|
How's this?
Code:
/* CSS Dropdown Nav Bar */
/* Original code by Stu Nicholls of */
/* http://www.cssplay.co.uk/ */
/* Edited for content, formatting and some elements */
/* Please help support CSSPlay at: */
/* http://www.cssplay.co.uk/support.html */
/* CSS Section */
/* style the outer div to give it width */
.menu {
z-index: 99;
position: relative; /* Make the container moveable */
margin: 0 auto 20px; /* top R/L bottom */
width: 820px; /* Main bar total width, minimize to not wrap to two lines*/
}
/* remove all the bullets, borders and padding from the default list styling */
.menu ul {
padding: 0;
margin:0;
list-style-type:none;
}
/* float the list to make it horizontal and a relative position so that you can control the dropdown menu position */
.menu li {
float:left; /* float right will reverse the main buttons */
text-align:center;
width:auto;
position:relative;
padding: 0;
}
/* style the links for the top level */
.menu a, .menu a:visited {
display:block;
text-decoration:none; /* none, overline, underline */
color:white;
background:#0033FF;
border:1px solid #FF630F; /* optional */
border-width:1px 1px 1px 1px; /* optional */
font-size:10pt;
font-family: Arial;
width:110px; /* Defines the main box dimensions. */
height:20px; /* How tall your cells are */
line-height:20px; /* vertical text alignment in cell */
padding: 0 2px; /* top/bottom R/L */
}
/* main hover */
.menu a:hover, .menu :hover > a {
color:#0033FF;
background:#FF630F;
}
/* a hack so that IE5.5 faulty box model is corrected */
* html .menu a, * html .menu a:visited {width:130px; w\idth:130px;}
/* style the table so that it takes no part in the layout */
.menu table {position:absolute; top:0; left:0;}
/* ***** LEVEL 2 ***** LEVEL 2 ***** LEVEL 2 ***** */
/* another hack for IE5.5 */
* html .menu ul ul {top:20px; t\op:21px;} /* IE gap between main bar and the dropdown items */
/* hide the sub levels and give them a positon absolute so that they take up no room */
.menu ul ul {
visibility:hidden;
position:absolute;
height:0;
top:20px; /* move drop vertically */
left:0; /* move drop horizontally */
width:130px; /* Size of the daughter cells */
}
/* style the second level background non-hover */
.menu ul ul a.drop, .menu ul ul a.drop:visited {background:#FF630F;} /* if 3rd level exists */
.menu ul ul.coltsColors a.drop, .menu ul ul.coltsColors a.drop:visited {background:#00009C;}
/* style the second level hover */
.menu ul ul a.drop:hover {background:#0033FF;}
.menu ul ul :hover > a.drop {background:#0033FF;}
.menu ul ul.coltsColors a.drop:hover {background:#0033FF;}
.menu ul ul.coltsColors :hover > a.drop {background:#0033FF;}
/* style the second level links */
.menu ul ul a, .menu ul ul a:visited {
color:white;
background:#FF630F;
height:auto;
line-height:20px;
width:110px;
}
.menu ul ul.coltsColors a, .menu ul ul.coltsColors a:visited {
color:white;
background:#00009C;
}
.menu ul ul :hover > a.drop {background:#0033FF;} /* 2nd if 3rd level exists */
.menu ul ul.coltsColors :hover > a.drop {background:#0033FF;}
/* yet another hack for IE5.5 */
* html .menu ul ul a {width:120px; w\idth:120px;}
/* 2nd/3rd level hover */
.menu ul ul a:hover, .menu ul ul :hover > a {
color:white;
background:#0033FF;
}
.menu ul ul.coltsColors a:hover, .menu ul ul.coltsColors :hover > a {
color:white;
background:#0033FF;
}
/* ***** LEVEL 3 ***** LEVEL 3 ***** LEVEL 3 ***** */
/* position the third level flyout menu */
.menu ul ul ul {
left:115px;
top:0;
width:160px;
height:auto;
}
.menu ul ul ul li a {color:white;}
.menu ul ul ul li a:hover {color:white;}
/* style the third level background */
.menu ul ul ul a, .menu ul ul ul a:visited {background:#FF630F;} /* not FF */
.menu ul ul ul.coltsColors a, .menu ul ul ul.coltsColors a:visited {background:#00009C;}
/* style the third level hover */
.menu ul ul ul a:hover {background:#0033FF;}
.menu ul ul ul :hover > a {background:#0033FF;} /* 3rd (w/o 4th) 4th hover */
.menu ul ul ul.coltsColors a:hover {background:#0033FF;}
.menu ul ul ul.coltsColors :hover > a {background:#0033FF;}
/* style the third level links */
.menu ul ul ul a, .menu ul ul ul a:visited {
color:white; /* hover 2nd > 3rd & 4th */
background:#FF630F; /* hover 3rd > 4th */
height:20px;
line-height:20px;
width:110px;
}
/* make the 2nd level visible when hover on 1st level */
.menu ul :hover ul {visibility:visible;}
/* make the 3rd level visible when you hover over 2nd level */
.menu ul :hover ul :hover ul {visibility:visible;}
/* keep the 3rd level hidden when you hover on 1st level */
.menu ul :hover ul ul {visibility:hidden;}
/* End Navbar Code */
__________________
Al My Website my Blog Mozilla Firefox Web Developer Firebug Customization FAQ Banner/Navbar/Slideshow Tutor |
|
|
|
|
#12
|
||
|
Big grins
|
Quote:
I believe I can work with this Allen. Thanks for your hard work YOU guys are the best!!!
|
|
|
|
||
| Tell The World! | |
| Thread Tools | |
| Display Modes | |
|
|