HighDots Forums  

Separating IE5 and IE6

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Separating IE5 and IE6 in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Philipp Lenssen
 
Posts: n/a

Default Separating IE5 and IE6 - 12-08-2003 , 05:00 AM






Is there any CSS hack so I can separate Internet Explorer 5 from IE6?

I have the problem that IE5 wrongly (AFAIK) doesn't add padding of
blocks to their width. IE6 adds padding to the width. Mozilla does too.
So does Opera.

Reply With Quote
  #2  
Old   
Philipp Lenssen
 
Posts: n/a

Default Re: Separating IE5 and IE6 - 12-08-2003 , 05:34 AM






Philipp Lenssen wrote:

Quote:
Is there any CSS hack so I can separate Internet Explorer 5 from IE6?

I have the problem that IE5 wrongly (AFAIK) doesn't add padding of
blocks to their width. IE6 adds padding to the width. Mozilla does
too. So does Opera.
OK, this is what I found so far...

..navigation3 a
{
width: 185px;
}

html*.navigation3 a
{
width: 158px;
}

http://centricle.com/ref/css/filters/
Apparently this also gets rid of Opera.


Reply With Quote
  #3  
Old   
Matthias Gutfeldt
 
Posts: n/a

Default Re: Separating IE5 and IE6 - 12-08-2003 , 06:01 AM



Philipp Lenssen wrote:
Quote:
Is there any CSS hack so I can separate Internet Explorer 5 from IE6?

I have the problem that IE5 wrongly (AFAIK) doesn't add padding of
blocks to their width. IE6 adds padding to the width. Mozilla does too.
So does Opera.
It depends...

<http://msdn.microsoft.com/workshop/author/css/overview/cssenhancements.asp>

"Compliant Behavior

With Internet Explorer 6 or later, when you use the !DOCTYPE declaration
to switch on standards-compliant mode, the width and height properties
specify the distance between the left and right edges and top and bottom
edges of the bounding box, respectively. The border and padding belts
are not included.

Noncompliant Behavior

When the !DOCTYPE declaration does not switch on standards-compliant
mode, as with earlier versions of Internet Explorer, the width property
includes the object's content box, plus the values of the following
properties: border-left, border-right, padding-left, and padding-right."


<http://www.opera.com/docs/specs/doctype/>
"Box-sizing is based on the IE/Windows border-box model in quirks mode

The CSS 'width' property specifies content width. In IE/Win 3.0-5.5 it
specifies content width + padding width + border. The same applies to
the 'height' property. Opera in Quirks Mode emulates this behavior.
Opera 7 and IE/Mac, but unfortunately not IE/Win, support the box-sizing
CSS property proposed for CSS 3. Netscape and Mozilla supports the
equivalent -moz-box-sizing property."



Matthias



Reply With Quote
  #4  
Old   
Philipp Lenssen
 
Posts: n/a

Default Re: Separating IE5 and IE6 - 12-08-2003 , 07:30 AM



Matthias Gutfeldt wrote:

Quote:
Philipp Lenssen wrote:
Is there any CSS hack so I can separate Internet Explorer 5 from
IE6?
I have the problem that IE5 wrongly (AFAIK) doesn't add padding of
blocks to their width. IE6 adds padding to the width. Mozilla does
too. So does Opera.

It depends...

I'm in standard-compliant mode, so I got the problems.

But after the first construct failed, I got it to work with this:
http://centricle.com/ref/css/filters/tests/sbmh/


..navigation a
{
width: 185px; /* padding manually added to width */
}

..navi\gation a
{
width: 158px;
}


Reply With Quote
  #5  
Old   
ICHwesen
 
Posts: n/a

Default Re: Separating IE5 and IE6 - 12-09-2003 , 07:00 AM



Philipp Lenssen wrote:
Quote:
Is there any CSS hack so I can separate Internet Explorer 5 from IE6?

I have the problem that IE5 wrongly (AFAIK) doesn't add padding of
blocks to their width. IE6 adds padding to the width. Mozilla does too.
So does Opera.
For best CSS-Hacks concerning browser behavior see
http://tantek.com/CSS/Examples/

Using the low- mid- and high-pass-filter you can distinguish browsers
without dropping standard-compliance.

In your case, the mid-pass-filter should be the tool of choice
(http://tantek.com/CSS/Examples/midpass.html). But to use all of them
will increase the accessibility of your site at best.

greets from the
ICHwesen


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.