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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:10:58+00:00 2026-05-23T08:10:58+00:00

i am using a conditional statement inside the head to use a style sheet

  • 0

i am using a conditional statement inside the head to use a style sheet based on ie browser version. i was under the impression that if you specified a style sheet based in the conditional if statement it should only use that one. i have a style sheet for ie6 and one to cover 7/8 ff etc. ie6 seems to be using a mixture of both. is this correct? thanks

main style sheet for 7/8 ff etc

<link href="css/style.css" rel="stylesheet" type="text/css" />

and based on browswer a call to ie6 stylesheet.

<!--[if IE 6]>
    <link href="css/ie6-style.css" rel="stylesheet" type="text/css" media="screen, projection">
    <link href="css/ie6-dropdown-menu.css" rel="stylesheet" type="text/css" media="screen, projection">
  <![endif]-->
  • 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-23T08:10:59+00:00Added an answer on May 23, 2026 at 8:10 am

    The stylesheet linked in the conditional comment will not replace the other style sheet. Both will be loaded. It is usually easier to work this way, with the IE6 version only containing overrides.

    If you want IE6 to ignore the other file, use a negative condition.

    <!--[if !IE 6]><!--> DEFAULT STYLE SHEET <!--<![endif]-->
    <!--[if IE 6]> IE STYLE SHEET <![endif]-->
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When I use conditional breakpoint in VS2005 instead of using temporary code to check
Consider the following code that I'm using when displaying a Customer's mailing address inside
Generally, when using the conditional operator, here's the syntax: int x = 6; int
Whichever way I do it, it seems something goes wrong when using the conditional
Using online interfaces to a version control system is a nice way to have
Using PyObjC , you can use Python to write Cocoa applications for OS X.
Using ASP.NET MVC there are situations (such as form submission) that may require a
In C, C++ and C# when using a condition inside a function or loop
how do i access the procedure parameters inside the same procedure using a query
I am trying to update a column inside of a table variable based on

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.