SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Wizard jag5311's Avatar
    Join Date
    Jan 2003
    Location
    Somewhere in Indiana
    Posts
    3,082
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Box Model Hack question (separate from my other thread)

    On this page,
    http://tantek.com/CSS/Examples/boxmodelhack.html

    Is it saying,

    Code:
    div.content { 
      border:20px solid;
      padding:30px;
      background: #ffc;
    }
    to be separate from

    Code:
    div.content { 
      width:400px; 
      voice-family: "\"}\""; 
      voice-family:inherit;
      width:300px;
    }
    or should it be like this

    Code:
    div.content { 
      border:20px solid;
      padding:30px;
      background: #ffc;
      width:400px; 
      voice-family: "\"}\""; 
      voice-family:inherit;
      width:300px;
    }
    Thanks
    Bryan

  2. #2
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    39,818
    Mentioned
    158 Post(s)
    Tagged
    4 Thread(s)
    Hi Bryan,

    Basically it would make no difference as they are both defining the same style.

    However theres no point in separating them so they should be in the same rule in the order specified.

    (The voice family hack comes at the end of the style with only the styles for compliant browsers following. The voice family hack is the point where ie5 5.5. will crash out of the style failing to read any following definitions. So if you place the hack at the beginning of the style definition then none of the following definitions will be read.)

    Paul

  3. #3
    SitePoint Wizard jag5311's Avatar
    Join Date
    Jan 2003
    Location
    Somewhere in Indiana
    Posts
    3,082
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That is what I was thinking, but wanted to make sure on the safe side.

    Thanks Paul


Bookmarks

Posting Permissions

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