CSS Import Q

Out of context: Reply #4

  • Started
  • Last post
  • 5 Responses
  • IRNlun60

    There are some negatives to using @import in your HTML.

    http://www.stevesouders.com/blog…

    I usually do what bulletfactory mentioned above. Create a master css file and use an @import from within the css file. Although, don't use the CDATA commenting in your css. It should work as mentioned above(because it's basically commented out) but that's only for XML compatibility in XHTML.

    One special commenting I'm aware of for importing in css is hiding from IE/Mac.

    /* import stylesheets and hide from IE/Mac \*/
    @import url("master.css");
    @import url("ie7.css");
    /* end import/hide */

    • nice link, thanks!bulletfactory
    • Do you really find you need to worry about IE/Mac users?welded
    • Ha, no. I can't remember the last time I tested for that. 5-8 yrs maybe...IRNlun6

View thread