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

  • SEARCH
  • Home
  • 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 6367515
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T00:33:25+00:00 2026-05-25T00:33:25+00:00

how can I hack CSS for IE6 and IE7 in same expression?? (if posible,

  • 0

how can I hack CSS for IE6 and IE7 in same expression?? (if posible, of corse)

-edit-

i mean,

* html #div{   //hacks ie6}
*+html #div { //hacks ie7}

does a similar expresion hack both?

-edit2-

For example this inline code HTML

    <!--[if IE lte 7]>

<style type="text/css"> 

.contButton p a{ height:25px; width:auto; }
.contButton p a span{ height:25px;width:auto; }  
</style>
<![endif]-->

will only affect IE7 or lower, how can i select that in CSS ???

example: -*?? #div { //the CSS properties here will affect to IE6 and IE7 }

  • 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-25T00:33:26+00:00Added an answer on May 25, 2026 at 12:33 am
    1. Use conditional style sheet includes like


      <!--[if lte IE 7]>
      <link rel="stylesheet" type="text/css" media="all" href="ie_fixes.css" />
      <![endif]-->

    2. or use the dirty solution using an asterisk (which makes your style sheets invalid in the eyes of validators)


      .example_class {
      *background-color: #ffffff;
      }

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

Sidebar

Related Questions

Select all the CSS hack(s) that IE6 can understand for class red <p class=red>text</p>
CSS has @import, right? IE6 understands *html selector hack, right? Is it possible to
Does anyone know if I can hack google's visualization ColumnChart api chart somehow, to
I've used the conditional comments technique for my IE6/7/8 CSS hacks, so that the
Can anyone recommend the best way to hack IE8 styling via CSS, I've recently
Which css hacks we use to make layout cross browser compatible Can pass W3C
Which css hacks for IE 6 and 7 are future proof? i mean if
Is there any way instead of a JS hack where I can post from
I'm not sure if the resolution of the screen can affect the CSS. My
Which is the better practice? Add CSS during web designing you can see the

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.