CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2002
    Location
    Reykjavik, Iceland
    Posts
    201

    Question CSS2 border-style property

    I've noticed that there are STILL differences between IE and Netscape implementations of CSS in the version 6 browsers.
    I had thought that with version 6 we would finally be rid of these differences because supposedly Microsoft & AOL would be following W3C standards. Here's an example where there are rendering differences:

    Use the value "dotted" for the border-style property (or border-bottom for that matter). You will see that IE6 places much more space between the dots than Netscape 6.2

    Do you know which browser is following the standard on this?
    Are there any workarounds so the dots are identical in both browsers?

  2. #2
    Join Date
    Jul 2002
    Location
    Don't Know, Don't Care
    Posts
    346
    well, w3c doesn't exactly specify the spacing on the dots (same goes for other situations) the way it renders is mostly because of how the interpretation engine is coded, differences like this go all the way down to basic html between the 2 browsers.

    C G C F A D--Feel the Noise

    "When your life goes nowhere and leads back to me, doesn't that tell you something?"
    ~Gray Area Fury

  3. #3
    Join Date
    Aug 2002
    Location
    Reykjavik, Iceland
    Posts
    201
    Here is the published standard on the border dots:

    http://www.w3.org/TR/REC-CSS2/box.ht...yle-properties

    I thought that somewhere there would be more fine detail. It's not good to be this vague in the standards as the browsers are finally becoming more compatible with each other and this only opens to door to more differences. There should be a specification of the pixels between each dot.

  4. #4
    Join Date
    Aug 2002
    Location
    Washington, USA
    Posts
    104
    Originally posted by websmith99
    There should be a specification of the pixels between each dot.
    I disagree. That is much to fine a control to be included in a standard. Standards are to make sure that things interoperate properly and so that certain behavior can be expected to be the same - not so that everything can look identical down to the last pixel.

    I'm not surprised at this particular difference - and not bothered by it.
    - Shawn
    MCP, VB6: Desktop Apps
    [ C# | VB | .NET | Java | VC++ | Perl | PHP | Javascript ]
    Unless otherwise stated, all sample code provided is UNTESTED.
    http://www.codemastershawn.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured