Jump to content

Recommended Posts

Ok so we fixed the pargraph issue and i have now changed my top images for my containers to be 10px high so the padding looks nice all the way around.

In IE it keeps the line height to 20px but in firefox it works fine.

one exaxmple below.

[code]
#content_top {
width:580px;
height:10px;
background-image:url(images/content_top.gif);
background-repeat:no-repeat;
}
[/code]

i have tried max-height but this doesnt work either.

In the container in the html there is nothing there so look slike this

[code]
<div id="content_top"></div>
[/code]

any fixes for this IE problem?

cheers

Rick
Link to comment
https://forums.phpfreaks.com/topic/19010-ie-line-height-issue/
Share on other sites

add

overflow: auto;

to the decalaration..

If this is going to be used more than once you should change from an id to a class like so

[code]<div class="content_top"></div>[/code]

and the css

[code]
.content_top {
width:580px;
height:10px;
background-image:url(images/content_top.gif);
background-repeat:no-repeat;
overflow:auto;
}
[/code]
Link to comment
https://forums.phpfreaks.com/topic/19010-ie-line-height-issue/#findComment-82440
Share on other sites

Use the xhtml strict Doctype.  This will force IE6 to render the box model properly.  Why does IE have to be different?

[code]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">[/code]

Hope this helps!
Link to comment
https://forums.phpfreaks.com/topic/19010-ie-line-height-issue/#findComment-85636
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.