|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 |
|
New Member
![]() Join Date: Jan 2009
Posts: 14
|
Hey guys, I'm wondering if someone could have a look at the top navigation bar on the http://www.strokessuck.com and tell me what is creating that visible bit of background that does not change to the hover color when mousing over the "Contact" link. I've been hammering at it for a couple hours and I can't quite figure out what's causing that. Thanks! Also, any other input would be chill.
|
|
|
|
|
|
#2 |
|
New Member
![]() Join Date: Jan 2009
Posts: 14
|
Does anyone have any constructive criticism to give? It would be greatly appreciated.
|
|
|
|
|
|
#3 |
|
Silver Member
![]() Join Date: May 2009
Posts: 107
|
It took a minute for me to figure out what you were talking about. The problem is simple to solve.
In screenstyle.css Code:
a.nav:link, a.nav:visited {
display:block; float:left; width:19.9%; padding:1.2em 0 1.2em 0; margin:0;
text-decoration:none; background-color:#6A6A6A; color:#FFFFFF;}
a.nav:hover {
display:block;
float:left;
width:19.9%;
padding:1.2em 0 1.2em 0;
margin:0;
text-decoration:none;
background-color:#FF0000;
color:#FFFFFF;
That should do it but I did not spend enough time to look over the entire source code. |
|
|
|
|
|
#4 |
|
New Member
![]() Join Date: Jan 2009
Posts: 14
|
Thank you for your reply. That makes perfect sense, but now I remember why I made it 19.9% in the first place. It looks perfect at 20% in firefox, but when I look at it in IE 6 and 7, it drops the Contact button down to the next line. Any idea why it might be doing that? Something with the padding that I'm not seeing?
Thanks! |
|
|
|
|
|
#5 |
|
Silver Member
![]() Join Date: May 2009
Posts: 107
|
Im not really too sure. I dont actually have any first hand experiance with liquid layouts.
Try this, be sure to save a copy of the original CSS file so nothing bad can happen. Change all relative instances of the code to the commented code. Code:
float:left; // float:left;
width:19.9%; // width:20%;
padding:1.2em 0 1.2em 0; // (remove this line)
// text-align: center;
|
|
|
|
![]() |
| Tags |
| alignment, hover, navbar, navigation, stroke |
| Thread Tools | |
| Display Modes | |
|
|