Jump to content

[SOLVED] Odd text/div width/margin behaviour in Internet Explorer 6


Kieran Menor

Recommended Posts

Yeah, try posting something helpful next time. Besides, the problem isn't Javascript related, hence I made the thread here. If you stripped out all the Javascript, you would see that Internet Explorer 6 still squeezes the box together rather than displaying the text on a single line like in IE7, IE8, FF, Safari, Opera and Chrome.

Link to comment
Share on other sites

For all his attitude, TheFilmGod was probably right - if you use a library for this, it may very well fix your problem. They are designed to be cross-browser compatible.

 

I'm not able to see the problem though - I don't have IE6 accessible at the moment. So I could be entirely wrong.

Link to comment
Share on other sites

Except it's a CSS problem. As I said, even if you disable JS, IE6 still squeezes the box rather than displaying the text on a single line.

 

Compare it to the behaviour of the box when brought to close to the left edge of the page in any other browser. Only that in IE6, it seems to happen with the right edge instead. The box displays correctly if you move outside the normal page area.

Link to comment
Share on other sites

It may be because of the parent nav container, since the width is set to 125px.

 

When I moved the "salad" container above:

 

<div id="wrapper">
    <div id="salad">
        <div id="lettuce"> </div>
        <div class="content">Tip of the day: This will not contain tips of the day.</div>
    </div>
    <div id="nav">
        <div id="logo"></div>
    ...

 

it appears to render the way you want.

 

Link to comment
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.