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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T14:35:34+00:00 2026-06-17T14:35:34+00:00

How do I import an css file for Chrome (or webkit). I want to

  • 0

How do I import an css file for Chrome (or webkit).

I want to do something like this for ie6:

<!--[if lte IE 6]>
  <link rel="stylesheet" type="text/css" href="ie6.css" />
<![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-06-17T14:35:36+00:00Added an answer on June 17, 2026 at 2:35 pm

    Your best, and easiest, bet is using a server-side language that can detect the user’s browser. PHP, ColdFusion, JSP, etc have built-in functions and variables that can help you determine the browser a user has.

    If not, then a client-side scripting agent is your next option. JavaScript, and its efficient library option, jQuery, are good approaches.

     //jQuery
            <script src="http://code.jquery.com/jquery-latest.js"></script>
            <script>
            if ($.browser.webkit) {
                ///Chrome-specific css here.
            }
           </script>
    

    If you can’t (or don’t know how to) use the library, then the following works as well, but you’ll need to do a few more conditional checks

    //Javascript (Note: Chrome will say 'Netscape' for its name)
        <script>
        var browserName = window.navigator.appName;
        var browserVersion = window.navigator.appVersion;
        </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to use @import in one css file like this. @import file1
I have a style sheet file which imports three other css files: <link rel=stylesheet
i Want to import a given css or javascript file depending os some conditions,
Possible Duplicate: Difference between @import and link in CSS I have a .css file
I have a jsp that contains a css link that looks like <link type=text/css
it is possible to import the css file from another server? let's say i
What i would like to do is to read an css file from a
I have an @import at the top of my main.css file that pulls in
I wanna know if this is possible. I have an external .css file in
If it possible to use @import in a .css file to load a style

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.