Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Old 05-16-2008, 06:35 AM Fix menu jumping..
Experienced Talker

Posts: 32
Trades: 0
i need to add a frame about 1 inch down to the site im working on below so dont mind that
But have a look at the top?

http://rotate-ireland.com/mess/index.htm

See how you hover over links they jump a bit?
How do i get them not to jump left or right a few pixels?
Is it the border in different states?
Also how can i set them apart a little but more
and also how could i bring text down a few pixels to look centre between the top of page and that white line below it?

Is there a way

My css

Quote:
ul.nav {
width:100%;
text-align:left;
list-style:none;
}

ul.nav li {
display:inline;
text-decoration: none;
}

ul.nav li a {display: inline-block; padding: 8Px 15px; text-decoration: none;} /*sets default styling for all links*/
ul.nav li a:link {color: #b2cccc; }
ul.nav li a:visited {color: #CCCCCC; }
ul.nav li a:hover {color: #ffffff; background: #7b0505;border-left:1px solid #ffffff;border-right:1px solid #ffffff;}
ul.nav li a:active {color: #666666; background: #333333;}
ul.nav li a:focus {color: #ffffff; background: #7b0505;}
hunty is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-16-2008, 01:24 PM Re: Fix menu jumping..
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
The reason they're jumping is because of the borders you've added to the hover state. That's adding 2 pixels to each one. You can try adding a border on the sides of the non-hover state, make it the same color as the background and it won't be seen, and the jumping should stop.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 05-16-2008, 02:52 PM Re: Fix menu jumping..
Experienced Talker

Posts: 32
Trades: 0
the backgorund is a light grey to dark grey gradient though, so using border with 1 solid image would show up?

Will i have to use gradient image maybe?

Last edited by hunty; 05-16-2008 at 02:57 PM..
hunty is offline
Reply With Quote
View Public Profile
 
Old 05-16-2008, 06:10 PM Re: Fix menu jumping..
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
border: 1px solid transparent;
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 05-16-2008, 08:32 PM Re: Fix menu jumping..
Experienced Talker

Posts: 32
Trades: 0
That worked, now how do i bring the text down a pixel or two from the top?
hunty is offline
Reply With Quote
View Public Profile
 
Old 05-16-2008, 09:38 PM Re: Fix menu jumping..
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Put some top padding on the <a>
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Fix menu jumping..
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.31952 seconds with 12 queries