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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T01:31:49+00:00 2026-05-22T01:31:49+00:00

I have two css files included on my page. <link rel=stylesheet href=/css/screen.css /> <!–[if

  • 0

I have two css files included on my page.

<link rel="stylesheet" href="/css/screen.css" />
<!--[if IE 8]>
    <link rel="stylesheet" href="/css/ie8.css"/>
<![endif]-->

Now in screen.css I have a style like this

ul.treelayout{
    list-style: none;
    margin: 0px 0px 10px 0px;   
    background-color: #fff;
    padding: 3px;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    border: 1px solid #007b40;
}

I would like to remove the radius related styles in the ie.css such that the result style of ul.treelayout in IE is

ul.treelayout{
    list-style: none;
    margin: 0px 0px 10px 0px;   
    background-color: #fff;
    padding: 3px;
    border: 1px solid #007b40;
}

It seems that due to the fact that the styles cascade simply writing the class without the styles in ie.css doesn’t do the trick. Any ideas?

Thanks

Regards
Gabriel

  • 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-22T01:31:50+00:00Added an answer on May 22, 2026 at 1:31 am

    Ok mine is not to reason why 😉 – but you can do this the other way around and only give the border-radius styles to NON-IE browsers.. in fact with a combination of Conditional comments you can give the border radius styles to IE9 and other browsers, I don’t know which script you mean is clashing but maybe you can also just give the script to the browsers that need it?

    here’s an example (not using border-radius but hopefully you may get the idea..)

    <style type="text/css" media="screen">
    div {
    padding: 40px;
    color: #fff;
    }
    </style>
    
    <!--[if IE]>
    <style type="text/css" media="screen">
    div  {background: #00f}
    </style>
    <![endif]-->
    
    <!--[if (!IE)|(gt IE 7)]><!-->
    <style type="text/css" media="screen">
    div  {background: #f00}
    </style>
    <!--<![endif]-->
    

    HTML:

    <div>
       <p>background is red in non-IE browsers,and IE gt 7  - but background is blue in other IE's</p>
    </div>
    

    About the above conditional comments..

    the first is a regular style

    the second is a “traditional” hidden conditional comment which Only IE sees

    the third is a revealed comment which all browsers see but IE still reads the arguments

    you would put the common rules in a normal sheet, and the border radius rules inside a sheet in the third style comment

    you can change the argument of the third comment it’s basically saying if NOT IE OR is gt IE7

    More Information on arguments: About Conditional Comments

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

Sidebar

Related Questions

I would like to have two .css files. One for each master\content page and
I have a web page for which I made two css files, one for
If I have two css files: File 1: .colorme { background-color:Red; } File 2:
I have a page in my application where i need to load two css
I have a bunch of CSS files that get loaded on every page (header,
I have two questions on how to write a correct/without error CSS 2.1 stylesheet:
I have two pages one is the main page and the another one is
i have two files one called stats.js one called storage.html in stats.js in contains
I have a master page that has two content sections like this (left some
Assume that I have some HTML page, and a corresponding CSS file. I'd like

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.