Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 05-16-2011, 03:36 AM   PM User | #1
nickHiebert
Regular Coder

 
Join Date: Oct 2009
Location: London, ON
Posts: 111
Thanks: 4
Thanked 0 Times in 0 Posts
nickHiebert is an unknown quantity at this point
Post Content/Navigation Movement problem

The link: http://bit.ly/kCDPIS

I'm having issues with the navigation (a dropdown navigation). When you hover over the navigation links the content area moves down.

So if someone has a solution to stop it from moving that would be great.

PS: I'm viewing this in Firefox. (That's all I'm worried about at the moment)

Thanks.
nickHiebert is offline   Reply With Quote
Old 05-16-2011, 03:44 AM   PM User | #2
Aurora.Light
New Coder

 
Join Date: Feb 2011
Posts: 82
Thanks: 15
Thanked 3 Times in 3 Posts
Aurora.Light is an unknown quantity at this point
set height instead of padding-bottom on the li

Code:
float: left;
display: block;
text-align: center;
position: relative;
padding: 4px 10px 4px 10px;
margin: 7px 30px 0 0;
border: none
Code:
height: 30px;
padding: 0px 10px 0px 10px;
then set a line-height instead of the padding of 4px on top and bottom

Last edited by Aurora.Light; 05-16-2011 at 03:46 AM..
Aurora.Light is offline   Reply With Quote
Old 05-16-2011, 03:48 AM   PM User | #3
nickHiebert
Regular Coder

 
Join Date: Oct 2009
Location: London, ON
Posts: 111
Thanks: 4
Thanked 0 Times in 0 Posts
nickHiebert is an unknown quantity at this point
Hi thanks. I figured it out somehow lol. I put in a height and got it working.
nickHiebert is offline   Reply With Quote
Old 05-16-2011, 03:50 AM   PM User | #4
Aurora.Light
New Coder

 
Join Date: Feb 2011
Posts: 82
Thanks: 15
Thanked 3 Times in 3 Posts
Aurora.Light is an unknown quantity at this point
Quote:
Originally Posted by nickHiebert View Post
Hi thanks. I figured it out somehow lol. I put in a height and got it working.
yeah the height will work, but try using line-height instead of padding its good practice
Aurora.Light is offline   Reply With Quote
Old 05-16-2011, 03:53 AM   PM User | #5
Aurora.Light
New Coder

 
Join Date: Feb 2011
Posts: 82
Thanks: 15
Thanked 3 Times in 3 Posts
Aurora.Light is an unknown quantity at this point
Code:
#sub_nav ul li a {
     position: relative; 
     display: block;
     float: left; 
     width: 113px;
     height: 36px;
     line-height: 36px;
     border-right: 1px solid #C1C1C1;
     color: #565656;
     text-align: center;
     font-size: 12px;
     font-weight: bold;
     text-shadow: white 0px 1px 0px;
     border-top: 1px solid #C1C1C1;
     border-bottom: 1px solid #C1C1C1;
take a look at livestream.com tabs
Aurora.Light is offline   Reply With Quote
Reply

Bookmarks

Tags
content, css, dropdown menu, firefox, nav

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:52 PM.


Advertisement
Log in to turn off these ads.