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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T11:17:01+00:00 2026-05-26T11:17:01+00:00

My CSS styles are not working in IE 9. It works in IE 8

  • 0

My CSS styles are not working in IE 9. It works in IE 8 and Chrome. In the below code style cpHeader is defined in a separate css file. Any clues on why IE 9 is not rendering the styles.

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<h1>Welcome to the site</h1>
<div class="cpHeader">
    <asp:Label ID="Label2" runat="server" Text="header text"></asp:Label>
</div> <asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
...

In Site.css

.cpHeader
        {
            color: white;
            background-image:url('../Images/bg_sm.png');
            font: bold 11px auto "Trebuchet MS", Verdana;
            font-size: 14px;
            cursor: pointer;
            border-style:solid;
            border-bottom-style:none;
            border-width:1px; 
            border-color:#5A5A5A;    
            height:18px;
            padding: 4px;    
            text-align:left;        
        }

EDIT: I found a mention of a possible problem, but couldn’t get how to fix it.

  • 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-26T11:17:01+00:00Added an answer on May 26, 2026 at 11:17 am

    This http://jsfiddle.net/wHszh/ works correctly for me in IE9. (Note: I changed the background to black since the image won’t load in the sample.)

    Are you sure the path to bg_sm.png is correct, and relative to the location of the CSS file (not relative to the location of the HTML page)? Maybe it’s not loading the image, and since you set the foreground color to white it is working but you can’t see the text because it is white on white?

    What does Firebug/Developer tools say in the network tabs? Are all the assets loading you are expecting? What is the exact HTML that exports? Are there any CSS syntax problems in other places in the CSS file?

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

Sidebar

Related Questions

The following code works properly <!DOCTYPE html> <html> <head> <title>Working</title> <style type=text/css> html {
I have some CSS style that does not work in IE and that works
The code below is colouring the input but not submitting the form in chrome.
In Firefox 3 and Google Chrome 8.0 the following works as expected: <style type=text/css>
bullets from list-style type not showing up. Not only does the CSS, in no
I'm getting an error in firebug: NetworkError: 404 Not Found - (removed)/style.css What does
Don't know why but font is not displaying.Please help. CSS(in css folder): style.css: @font-face
<style type=text/css> #[':0:adId'] { /* this does not work */ background:red; } </style> <div
I noticed that less.js is working in firefox but not in Chrome, or is
ok, this code works just fine in Chrome. But, for some reason it does

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.