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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T00:40:10+00:00 2026-05-12T00:40:10+00:00

today I’m trying to optimize my website for a better rendering in firefox! my

  • 0

today I’m trying to optimize my website for a better rendering in firefox!
my problems are the text-shadow and font-weight properties … I would like to set custom values only for firefox (my website is mac only compatible so I don’t need IE compatibility) but I don’t wont to use separate style sheet for only these two properties!!!
There is any way to do that? Or I must use a php script to filter the user agent and load customized style sheets for firefox?

Thanks in advance!

  • 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-12T00:40:11+00:00Added an answer on May 12, 2026 at 12:40 am

    You seem like you would want to support ONLY browsers which support text-shadow, so why only target Firefox? Your approach should be to only change font-weight for those browsers which support text-shadow. But this is easier said than done.

    Browser sniffers are not going to work unless they can differentiate between Firefox 3.5 and earlier versions. The one linked to by KahWee would not achieve this, but I would NOT recommend browser sniffing anyway — it is not best practice.

    I would instead recommend setting font-weight to whatever is meant for use with text-shadow, and then include an IE conditional to reset the majority of visitors’ browsers back to the original, non-shadowed font-weight.

    Example:

    <style type="text/css" media="screen">
        .some-text {
            color: #fff;
            font-weight: bold;
            text-shadow: #000 0.1em 0.1em 0.2em;
        }
    </style>
    
    <!--[if IE]>
    <style type="text/css" media="screen">
        .some-text {
             font-weight: normal;
             text-shadow: none; /* Does nothing now, but explicitly define NONE
                for future IE versions as that is what is intended */
        }
    </style>
    <![endif]-->
    

    With this you will achieve text-shadow with proper font-weight in these browsers:

    • Firefox 3.5+
    • Opera 9.5+
    • Safari 1.1+ (Since 2003!)
    • Chrome 2.0+
    • Konqueror 3.4+

    And if you want drop shadow in IE you can use filter expressions with DropShadow(), but I personally do not recommend using proprietary CSS extensions.

    Your only real “loss”, then, would be having an improper font-weight for older, non-IE browsers like Firefox 3.0 and lower, and Opera 9.2x and lower.

    So is it really worth JavaScript or PHP browser sniffing to change the font-weight for a very limited subset of older browsers?

    If the answer is still yes, there are PHP browser sniffers like this one.

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

Sidebar

Related Questions

Today we have received some strange exceptions on our production website. They all have
Today I thought it would be a nice idea to overload operator<< for C
Today i tested my website on seo tool site and found following error: Your
Today Clang, trying to compile a program, gave me kinda an strange message. I'm
Today my question is how would I go about creating a view in a
Today i StumbleUpon a strange cache behavior of Firefox 4 which is described bellow.
Today I found a weird problem, I was trying to fire a DropDownList SelectedIndexChanged
Today I have encountered a problem that required me to determine the maximum index
Today I looked into the header source code of boost::asio::ip::address and found the following
Today, after hunting a nasty bug, i tracked down the order of view controllers

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.