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 3796376
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T13:13:37+00:00 2026-05-19T13:13:37+00:00

It doesn’t take long to realise when using css that certain things are not

  • 0

It doesn’t take long to realise when using css that certain things are not cross-browser friendly.

For example, when I wanted a semi-transparent png I had to give IE something ridiculous like:
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(...);

I’ve had problems with positioning and pseudo-selectors etc. as anyone who has played around with css for more than 20 minutes will have encountered.

  • To solve problems sometimes I start out deciding that I will only do what all the browsers support and support in the same (or at least a fairly similar) way.
  • Other times I just chuck in conditional comments and give IE it’s own stylesheet.
  • And then on other occasions I simply use css hacks to exclude certain browsers from reading particular bits (like the old “* html {}” or “html>/**/body {}“)

So my question is, which is the best option. The first is pretty limiting and you end up developing for what IE6 is capable of doing but the other two feel a bit mucky. So which is the bets in terms of programming practices, rendering efficiency etc.?

  • 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. Editorial Team
    Editorial Team
    2026-05-19T13:13:38+00:00Added an answer on May 19, 2026 at 1:13 pm

    Short answer:

    • Do your best to adhere to standards
    • Be creative
    • Stop using hacks and start using conditional comments

    In the long run, CSS hacks are just going to pollute your stylesheets and make them more difficult to maintain. Avoid them wherever you can, and use conditional comments with IE-specific stylesheets instead (since most hacks cater to IE). I can guarantee that CCs are much less mucky than hacks, if mucky at all.

    You do not have to be limited by IE all the time. There’s a concept called progressive enhancement, which means you can make your pages look slightly prettier in modern browsers that support advanced styling, and so on. There’s nothing wrong with using CSS3 properties like border-radius today, since browser vendors are working (relatively) quickly to bring support for these to their products.

    But then there are clients, which would be a different topic of discussion. I would say, though, strike a balance: educate your clients and be creative, but don’t try to do anything too smart or fancy. And please, just avoid CSS hacks unless it’s half past 4 in the morning and you’re downing can after can of beer and just want to get something done in whatever circumstance.

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

Sidebar

Related Questions

I know that IE7 doesn't support the value inherit for any CSS properties except
WPF doesn't provide the ability to have a window that allows resize but doesn't
Doesn't seem that failure mode for that function is documented anywhere I've been able
Why doesn't Ctrl + C work to break a Python program that uses PyQt?
Why doesn't JSON.parse behave as expected? In this example, the alert doesn't fire: <html
Why doesn't the first example output a warning? #!/usr/bin/env perl use warnings; use 5.012;
Why doesn't the following doesn't handle the exception that was rethrown? I tried all
Control.Location doesn't take into account the slider position of the parent panel control and
It seems that the concatenation in AppleScript doesn't let you easily append text to
Not sure why the following doesn't work. I hope somebody can shed some light.

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.