Previous Message
Next Message

Box Model Hack, then & now: EMoC

Sent by Eric A. Meyer on 21 January 2005 02:02


At 19:00 -0600 1/20/05, Lorin Rivers wrote:

>OK, so all that said, how would you write these rules (From EMoC, 
>Project 13) were you writing it today?

    I think I'd probably do them like this, assuming that the document 
in question triggered "quirks mode" in IE6:

div.note {float: right; clear: right; border-width: 0;
    width: 19%; margin: 0 1% 0 0; padding: 0;
    text-align: right; font: 80% Arial, Verdana, Helvetica, sans-serif;
    background: transparent url(blue.gif) 50% 15px repeat-x;
    }
* html div.note {width: 18%;} /* IE/Win hack */

>and

div.caption {float: right; width: 19%; margin: 0 1% 0 0;
    padding: 0 0 0 10%; border-top: 1px solid #006;
    }
* html div.caption {width: 30%; padding-left: 40%;}  /* IE/Win hack */


If the document triggered "standards mode" in IE6, I'm not entirely 
certain what I'd do.  That might be a good case for using conditional 
comments to bring in an IE/Win-fixer style sheet, restricted to the 
versions that needed it.

-- 
Eric A. Meyer (http://meyerweb.com/eric/), List Chaperone
"CSS is much too interesting and elegant to be not taken seriously."
   -- Martina Kosloff (http://mako4css.com/)
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread:

Possibly related: