|
|
#1 |
|
New Member
![]() Join Date: Mar 2011
Posts: 5
|
Hey guys,
Can anyone please help me with this problem i am having. I made this website but in IE and firefox the buttons on the right flicker and move. In Chrome its fine. Here is the test link: http://test.jaycadit.com.au Thanks |
|
|
|
|
|
#2 |
|
Silver Member
![]() Join Date: Feb 2011
Posts: 191
|
Looking at your code, I see your navbar is put inside an unordered list <ul> tag. This is correct, but don't forget to include list <li> tags for each link inside.
HTML Code:
<ul class="nav"> <div align="center"> <li><strong><a href="index.html">Home</a></strong></li> <li><strong><a href="about us.html">About Us</a></strong></li> <li><strong><a href="Services.html">Services</a></strong></li> <li><strong><a href="contact us.html">Contact Us</a></strong></li> </div> </ul>
__________________
http://www.joshualoves.com/ |
|
|
|
|
|
#3 | |
|
New Member
![]() Join Date: Mar 2011
Posts: 5
|
Quote:
Screenshot:
|
|
|
|
|
|
|
#4 | |
|
Super Moderator
![]() Join Date: Oct 2008
Location: Arizona, USA
Posts: 1,053
|
Quote:
Also your code is incorrect, you cannot have a div element nested with in a list and not within an list item. This will not validate.
__________________
John Darling Graphic / Web Designer SmarterTools Inc. (877) 357-6278 www.smartertools.com |
|
|
|
|
|
|
#5 |
|
Super Moderator
![]() Join Date: Oct 2008
Location: Arizona, USA
Posts: 1,053
|
OP,
Your code is invalid, and I am willing to bet that is the reason you are getting this jumping issue. Remove the div element from within your list. If the associated css properties of this div are needed, apply them to the list or list items respectively. Your code should look like this: HTML Code:
<ul class="nav"> <li><a href="">Home</a></li> <li><a href="">About Us</a></li> <li><a href="">Services</a></li> <li><a href="">Contact Us</a></li> </ul> Code:
ul.nav a, ul.nav a:visited {
background-color: #FFFFFF;
display: block;
width: 120px;
padding: 5px 0;
text-decoration: none;
text-align:center;
font-weight:bold;
}
__________________
John Darling Graphic / Web Designer SmarterTools Inc. (877) 357-6278 www.smartertools.com |
|
|
|
|
|
#6 |
|
New Member
![]() Join Date: Mar 2011
Posts: 5
|
Thanks for the responses guys, i tried your code Pixel Pusher and it still flickers, also when i do that all my white areas turned into the background color. Would you like me to add the code you suggested and upload it to the test site?
|
|
|
|
|
|
#7 | |
|
Bronze Member
![]() Join Date: Mar 2011
Location: California, United States
Posts: 92
|
Quote:
index.html (line 136) Code:
ul.nav a:hover, ul.nav a:active, ul.nav a:focus {
background-color: #FFFFFF;
border: thin solid #000000;
color: #FFFFFF;
display: none;
font-family: Verdana,Arial,Helvetica,sans-serif;
font-size: 100%;
height: 25px;
list-style-type: none;
padding: 4px;
width: 10px;
}
Code:
ul.nav a, ul.nav a:visited {
background-color: #FFFFFF;
display: block;
padding: 5px 5px 5px 15px;
text-decoration: none;
width: 120px;
}
display: none also, you are changing the width of the link from normal state when no hovering (120px) to width 10px when hovering. In my opinion these two snippets are contradicting each other. Check your code In chrome the code is just not executing completely test by deleting display: none, and width: 10px from first code snippet
__________________
small business web design | small business web design Los Angeles | web design | web design los angeles |
|
|
|
|
|
|
#8 | |
|
Super Moderator
![]() Join Date: Oct 2008
Location: Arizona, USA
Posts: 1,053
|
Quote:
Uploading it couldn't hurt. Not sure what you men by "white areas" . Your links are blocks with a white background and black text.Just as websonalized stated, remove the "display:none". That is definitely the cause of the flicker. I would ditch the "width:10px" also. Don't know how I missed those lol Good catch websonalized!
__________________
John Darling Graphic / Web Designer SmarterTools Inc. (877) 357-6278 www.smartertools.com |
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|