Jump to content

CSS and IE5.5 < IE 6 fix method


alpine

Recommended Posts

While working playing with my first fully CSS styled layout, not surprisingly - i need som help.

I've started to modify a OSWD template as i figured playing with this might be a smooth start for a total NooB in CSS (see what happends when you screw it up sort of game.. step by step until it eXplodes -then go back one step)

But i have ran into an issue on IE6 (and IE5.5) regarding width's

I have this:
[code]

#text {
  float: left;
  width: 410px !important;
  width: 437px;
  padding: 10px 10px 20px 20px !important;
  padding: 20px 10px 20px 20px;
}

/* I Applyed this as IE fix */

* html #text{
  width: 380px;
}

[/code]

The above IS working now in FF, Opera, IE7 and my applied hack deales with IE6 (before IE6 broke the layout, not handling the width).

My Q is:
I suspect that there is already something supposed to be a fix in the original class since a couple of lines is written twice with a [i]!important[/i] notice? If so, what browser is using the line with the [i]!important[/i] notice ?

Also, is my [i]*html[/i] hack a "good" solution (no hack is good solutions i suspect, but still something is needed)

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.