Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 160913
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T11:07:10+00:00 2026-05-11T11:07:10+00:00

CSS has @import, right? IE6 understands *html selector hack, right? Is it possible to

  • 0
  • CSS has @import, right?
  • IE6 understands *html selector hack, right?

Is it possible to combine them like

//*html @import url(ie6hacks.css); 

or, possibly,

//*html { @import url(ie6hacks.css); } 

?

Good browsers must skip this, will it still work in IE6? How does it look as a solution? I can clearly see it looks ugly as normal CSS.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T11:07:10+00:00Added an answer on May 11, 2026 at 11:07 am

    Is it possible to combine them like

    * html @import url(ie6hacks.css); 

    No. at-rules like @import are not selectors, so cannot be combined with other selectors.

    There are ways to make at-rules work as hacks, for example this:

    @import url(/* no! */iehacks.css); 

    will be loaded by IE6/7 but not the other browsers. However, I wouldn’t recommend using it; this sort of thing can be really fragile. This particular example is also invalid CSS.

    As Daniel says, if you want separate .css files for hacks, the best approach is a conditionally-included link tag. The beauty of “* html” is that you can put hack-rules in the same stylesheet, which is easier to manage if there are only a few of them; if you’re having a separate style sheet anyway, it offers no advantage.

    IMO “* html” for IE6 is the only hack it’s still legitimate to use today. All the box model stuff is dead along with IE5 — assuming you’re not using IE6 Quirks Mode, which you shouldn’t — and the other browsers, even IE7, are generally too good to be able to attack with a simple hack; the few hacks that can target them are too complex/fragile/invalid to really use.

    (And as the inventor of the Simplified Box Model Hack, I say a hearty good riddance to them.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 97k
  • Answers 97k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer I have been using Code Lite for some time now.… May 11, 2026 at 7:24 pm
  • Editorial Team
    Editorial Team added an answer On the one hand, the problem with datasets and datatables… May 11, 2026 at 7:24 pm
  • Editorial Team
    Editorial Team added an answer You can use Reflection for this. Note that if you… May 11, 2026 at 7:24 pm

Related Questions

We have a large ASP.Net website that has a single css stylesheet which is
I have two pages, Page A and Page B. Both of them have an
I'm working on a webapp, and every so often we run into situations where
While cross-site scripting is generally regarded as negative, I've run into several situations where

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.