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 03-25-2009, 01:32 AM css height
konetch's Avatar
Ultra Talker

Posts: 258
Trades: 0
Hey. I have a problem. In IE my webpage is displayed fine, but when I open it with FF the navmenu's height is incorrect and is just messed up. If you want to take a look at it http://www.konetchreport.com

This is the code I use for my style sheet:

.navbar {
width:107px;
background-color:#003366;
padding: .3em;
text-align:center;
border-left:1px #000000 solid;
border-right:1px #000000 solid;
color:#FFFFFF;
float: right;
}
.navbar:hover {
width:107px;
background-color:#B1BDCD;
padding: .3em;
text-align:center;
border-left:1px #000000 solid;
border-right:1px #000000 solid;
color:#000000;
float: right;
}

How can you set a specific height for the box.

Thanks
konetch is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-25-2009, 01:48 AM Re: css height
JeremyMiller's Avatar
WT Moderator

Posts: 1,712
Name: Jeremy Miller
Location: Las Vegas, NV
Trades: 0
Try adding to .navlink { padding:0; }
__________________
Jeremy Miller

Please login or register to view this content. Registration is FREE
JeremyMiller is offline
Reply With Quote
View Public Profile Visit JeremyMiller's homepage!
 
Old 03-25-2009, 02:08 AM Re: css height
konetch's Avatar
Ultra Talker

Posts: 258
Trades: 0
nope. didn't work. I don't know what the problem is. I tried looking on the web, but didn't find anything.
konetch is offline
Reply With Quote
View Public Profile
 
Old 03-25-2009, 02:17 AM Re: css height
JeremyMiller's Avatar
WT Moderator

Posts: 1,712
Name: Jeremy Miller
Location: Las Vegas, NV
Trades: 0
DOH! I should have said to use margin, not padding! Try that, lol.
__________________
Jeremy Miller

Please login or register to view this content. Registration is FREE
JeremyMiller is offline
Reply With Quote
View Public Profile Visit JeremyMiller's homepage!
 
Old 03-25-2009, 02:21 AM Re: css height
konetch's Avatar
Ultra Talker

Posts: 258
Trades: 0
thanks. worked perfect. Man, I gotta learn css a lot better!
konetch is offline
Reply With Quote
View Public Profile
 
Old 03-25-2009, 05:56 AM Re: css height
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
I gotta learn css a lot better
And the first thing should be;

If it looks "right" in IE but "wrong" in FF, the problem is with IE not FF
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to css height
 

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.88454 seconds with 12 queries