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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T17:51:00+00:00 2026-05-13T17:51:00+00:00

I have some CSS like this: #navBar ul { list-style-type:none; margin:0; padding:0; } #navBar

  • 0

I have some CSS like this:

#navBar ul
{
    list-style-type:none;
    margin:0;
    padding:0;
}

#navBar ul li
{
    border: thin dashed #ffff00;
    display:inline;
    margin:0;
    padding:0;
}

#navbar ul li a
{
    border: 1px solid #707070;
    text-decoration: none;
    padding: 0;
    margin: 0;
    background-color: #909090;
}

And HTML like this:

    <div id="navBar">
        <ul>
        <li><a href="#" >Home</a></li>
        <li><a href="#" >Services</a></li>
        <li><a href="#" >About us</a></li>
        <li><a href="#" >Blog</a></li>
        <li><a href="#" >Contact</a></li>
        </ul>
    </div>

For some reason the #navbar ul li a part is not being applied, but the #navbar ul li & #navbar ul are. I’m sure it used to work, too. And it passes w3c validation. Is it something obvious/stupid?

  • 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-13T17:51:00+00:00Added an answer on May 13, 2026 at 5:51 pm

    As per CSS2 spec, the selectors are not case sensitive in HTML document, but are case-sensitive in XHTML documents. Your third rule spells navbar, which is different from the actual elelment name which is navBar.

    In addition, some browsers actually have a bug and treat selectors as case-sensitive even if the document is delivered as HTML.

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

Sidebar

Related Questions

I have some style like this: <style type=text/css> input[type=text]{ width:300px; } </style> the above
I have some jQuery like this: $('#mydiv1').css('color', 'red'); $('#mydiv2').css('color', 'blue'); $('#mydiv3').css('color', 'green'); $('#mydiv4').css('color', 'orange');
I have some classes layed out like this class A { public virtual void
I have some css like so #menu li { color:#336633; } .hover { color:#ffffff;
So what I want is to have some tables like this <ul> <li>Some Text,
I have some elements positioned via CSS this way: #myItem{ position: absolute; left: 50%;
I have written some CSS which targets elements using the parent > child selector.
I have some questions about basic CSS that I was unable to understand or
I've some CSS problem in Firefox 3. I have several image buttons on my
Possible Duplicate: Avoiding repeated constants in CSS We have some theme colors that are

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.