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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T18:33:50+00:00 2026-06-10T18:33:50+00:00

I’m working through CSS3 for Web Designers by Dan Cederholm. I’m in a corporate

  • 0

I’m working through CSS3 for Web Designers by Dan Cederholm.

I’m in a corporate environment and certainly have to consider browsers at least back to IE7 (if not IE6! – eek!).

I’m working through the Navigating the Moon example (beginning on page 36).

The author is talking about using fallback values in your CSS to gracefully degrade.

So far so good. I’m on board and just want to give it a shot.

The problem is that when I’m going through the example on IE 9, I’m getting some weird results.

Here’s the content of the <body> tag for my page:

<ul id='nav'>
  <li><a href="#">Item 1</a></li>
  <li><a href="#">Item 2</a></li>
  <li><a href="#">Item 3</a></li>
  <li><a href="#">Item 4</a></li>
  <li><a href="#">Item 5</a></li>
</ul>

As you can see, it’s really basic.

Here’s the CSS I’m trying to use:

body {
  background: #000;
}
ul#nav {
  float: right;
  padding: 42px 0 0 30px;
}
ul#nav li {
  float: left;
  margin: 0 0 0 5px;
}
ul#nav li a {
  font-weight: bold;
  padding: 5px 15px;
  text-decoration: none;
  color: #cccccc;
  color: rgba(255, 255, 255, 0.7);
}

When I view the page in Safari, all is well and the CSS shows correctly (as expected). When I view this page in IE 9, the links are the normal “HyperLink” blue (like it’s just ignoring both color instructions). If I remove the “rgba” line from my CSS, the links show up in #cccccc. If I replace the “rgba” line with color: #000000, the links disappear (as expected, since the body is also #000000).

Based on what the author has written, I thought that placing the second line would work in browsers that support the “rgba” standard and just be ignored by those that don’t.

Have I missed something?

  • 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-10T18:33:51+00:00Added an answer on June 10, 2026 at 6:33 pm

    The code posted seems to cause the phenomenon described, but only in Quirks Mode. If the page needs to work in Quirks Mode, then I’m afraid you need to consider clumsy workarounds like using “conditional IE comments” with a copy of the fallback code, presented after the basic style sheet so that this overrides the relevant setting there (on IE less than 9). Example;

    <style>
    /* the basic style sheet here */
    </style>
    <!--[if IE lt 9]>
    ul#nav li a {
      color: #cccccc;
    }
    <![endif]-->
    

    EDIT: It seems that in Quirks Mode, IE generally behaves so that a declaration with unrecognized value causes even a previously set value to be dropped. E.g. h1 { color: red; color: nonsense } leaves h1 to its default color, not red. But this only applies within a CSS rule. If you put the declarations to separate rules, the problem disappears.

    So here, for example, you could just divide the rule for ul#nav li a into two parts:

    ul#nav li a {
      font-weight: bold;
      padding: 5px 15px;
      text-decoration: none;
      color: #cccccc;
    }
    ul#nav li a {
      color: rgba(255, 255, 255, 0.7);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I am trying to loop through a bunch of documents I have to put
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
I have a jquery bug and I've been looking for hours now, I can't
this is what i have right now Drawing an RSS feed into the php,
I have this code to decode numeric html entities to the UTF8 equivalent character.
I have a French site that I want to parse, but am running into

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.