Help - Search - Members - Calendar
Full Version: Padding-bottom In Ie
Zymic Webmaster Forums > Web Design & Development > Client Side Scripting > HTML and CSS
alecrust
Right I designed a new layout today for a lyrics site in the works.

Perfectly cross-browser compatible, except: The padding-bottom of the alphabet navigation links doesn't work in IE.

What would your work around to this be? I would rather not give them display:block; and set a specific height, but that's all I can think of currently.

Please also give me your review of the general layout. Ignore the logo that's temporary.
Alex
Can I see a comparison image of these? Tried IE6 (in wine) but couldn't see much difference in the two.
alecrust
In IE hover over a letter of the alphabet. Then do it in FF or anything else.
MrTouz
using IE6 and than tryed over my FF... result is the same :/ i really don't see any diferences...
alecrust
Really? This is promising news.

This is what I get in FF and everything else:


This is what I get in IE:
Alex
Yeah, doesn't look like that in my IE6 (but like I said, going through wine so possibly not the most accurate of representation of the rendering engine).

Unless this is an IE7 issue?
MrTouz
well, this is what i get over my IE6 :



and this is what i get over my FF :



they really do look alike ....

Alex just posted a second before me.... for the IE7 i mostly think it is... im runing 6 and it works perfectly just like FF.... IE7 just makes some weird stuff... :/ i always need to creat an if IE 7 line on my site and creat a new style sheet for the IE7 ...
alecrust
Wow yes it must be an IE 7 issue. Any ideas for fixing it?
MrTouz
this ?

<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="ie7.css" />
<![endif]-->

put it on your HEAD tags... create a new .css

and now try to find other variables for your :

CODE
#alphabet-nav {
margin-top:3px;
text-align:center;
background:#edd8a4 url(img/alphabet-nav-bg.png) repeat-x;
height:24px;
color:#333;
padding-top:6px;
border-bottom:1px solid #aaa;
}

#alphabet-nav a {
text-decoration:none;
color:#333;
padding-left:10px;
padding-right:10px;
padding-top:6px;
padding-bottom:5px;
}

#alphabet-nav a:hover {
background:#002900 url(img/alphabet-nav-a-1.png) repeat-x;
color:#fff;
}


and put it in your new .css ... my css name was ie7.css ...

donno if it will work.. but WORTH a try ?
alecrust
Yes I am aware how to use browser specific stylesheets (thanks though), what I am looking for is the actual CSS that I should put in this stylesheet!
mikebx
I have IE 7 on Vista here's what I got... hmm I think it is an IE 7 problem... I had something like that before trying to make this [1] <-- and the padding was a little off on IE... i'm pretty sure there is a fix to that problem... just keep messing w/ it.


Click to view attachment
MrTouz
well can't you just make the bottom-line 1 or 2 px longer ? ONLY inside the new CSS :/
alecrust
What do you mean?
MrTouz
well you made a css right ?

QUOTE
#alphabet-nav {
margin-top:3px;
text-align:center;
background:#edd8a4 url(img/alphabet-nav-bg.png) repeat-x;
height:24px;
color:#333;
padding-top:6px;
border-bottom:1px solid #aaa;
}

#alphabet-nav a {
text-decoration:none;
color:#333;
padding-left:10px;
padding-right:10px;
padding-top:6px;
padding-bottom:5px;
}

#alphabet-nav a:hover {
background:#002900 url(img/alphabet-nav-a-1.png) repeat-x;
color:#fff;
}


you assigned pixels inside your .css to define the litle mouseover box we see inside the alphabet ?
well IE7 doestn read these pixeles correctly, and more specificly the BOTTOM pixels... right ?

well inside the <--- IF IE 7.... make the pixel +1 or +2 :/ just make it higher so IE 7 will read it correctly... well read it his way... if you still don't understand, ill code it for you.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.