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
ul li a {} Height issue in IE7
Old 06-05-2011, 12:44 PM ul li a {} Height issue in IE7
pealo86's Avatar
Super Spam Talker

Posts: 876
Name: Matt Pealing
Location: England, north west
Trades: 0
I have the following website:
http://tinyurl.com/6l5nn6q

And am having a few annoying issues in IE7 only. The main one being the height of the <a> elements in the navigation. It seems no matter what height I set them to they always appear as they do in the attached screenshot.

However they should really be all the same height as the pink link. I've tried messing around with height and padding only to no avail.

I am styling the links like so:
Code:
#nav {
    float: left;
    clear: both;
    height: 100px;
    margin-top: 10px;
    letter-spacing: -1px;
    font-weight: bold;
}

#nav li {
    display: inline;
}

#nav li a {
    float: left;
    width: 109px;
    height: 90px;
    background: #333;
    margin-right: 1px;
    padding: 10px 0 0 10px;
    color: #fff;
    text-decoration: none;
}

#nav li a:hover, #nav li a:active {
    background: url('../image/nav-li-hover.jpg') no-repeat;
}
Has anyone else had an issue like this before?
Attached Images
File Type: png Screen shot 2011-06-05 at 17.38.16.png (59.2 KB, 9 views)
__________________

Please login or register to view this content. Registration is FREE
pealo86 is offline
Reply With Quote
View Public Profile Visit pealo86's homepage!
 
 
Register now for full access!
Old 06-05-2011, 01:44 PM Re: ul li a {} Height issue in IE7
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
<A>nchor elements are inline elements so do not take a height parameter.
__________________
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!
 
Old 06-07-2011, 12:21 PM Re: ul li a {} Height issue in IE7
pealo86's Avatar
Super Spam Talker

Posts: 876
Name: Matt Pealing
Location: England, north west
Trades: 0
Ohh I see! So I would have to rely on padding?
__________________

Please login or register to view this content. Registration is FREE
pealo86 is offline
Reply With Quote
View Public Profile Visit pealo86's homepage!
 
Old 06-07-2011, 01:05 PM Re: ul li a {} Height issue in IE7
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
That's about it, or line height on the parent element.
__________________
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!
 
Old 06-07-2011, 03:15 PM Re: ul li a {} Height issue in IE7
pealo86's Avatar
Super Spam Talker

Posts: 876
Name: Matt Pealing
Location: England, north west
Trades: 0
Ahh right! Thanks for the tip
__________________

Please login or register to view this content. Registration is FREE
pealo86 is offline
Reply With Quote
View Public Profile Visit pealo86's homepage!
 
Old 06-09-2011, 06:38 PM Re: ul li a {} Height issue in IE7
Experienced Talker

Posts: 39
Name: Day
Trades: 0
wouldn't setting the the links to blocks work?

Quote:
#nav li a {
display: block;
}
DayliDesign is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to ul li a {} Height issue in IE7
 

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.43638 seconds with 13 queries