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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T23:04:00+00:00 2026-06-08T23:04:00+00:00

I’m having difficulties with a few css items on my website. It all comes

  • 0

I’m having difficulties with a few css items on my website.
It all comes down to list items!

I have a menu bar that works using <ul> <li> and <ol> tags with their own css file, I have a slider that works on <li> from another css file and then some site content that has its own css file – but they all seem to be overwriting each other and hiding other items!

Has anyone got any tips on how to keep all these separate or how to stop this from occurring?

Here is an example of the menu css that seems to be changing everything:
http://pastebin.com/8Jd2XUUT
and the core menu css:
http://pastebin.com/eVsRvxs5
menu html: http://pastebin.com/P7Qh0M8a main sites css: http://pastebin.com/kKqP0N1C

  • 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-08T23:04:02+00:00Added an answer on June 8, 2026 at 11:04 pm

    Learn about CSS specificity, and how to use classes and ids. These concepts will help you manage your CSS.

    So in your HTML you could have:

    <ul></ul>
    <ul class="foo"></ul>
    <ul class="foo" id="bar"></ul>
    

    Then in your CSS:

    /* This targets all ul elements */
    ul {
        font-size: 2em;
    }
    /* This targets only ul elements with a class of foo. It's more specific (has a higher specificity) than the above */
    ul.foo {
        font-size: 3em;
        color: aqua;
    }
    /* The ul with a class of foo and an id of bar gets both sets of styles, but as ID has a higher specificity than class, the font size will be bigger. */
    ul#bar {
        font-size: 4em;
    }
    

    Edit: Ah-ha, I see the problem! Your CSS files appear to target items in <ul class="menu"> and <ul class="lblue"> respectively. You have a <ul class="menu lblue slide">, which means both CSS files will be targeting the same ul and one will override the other. The result will be a complete mess.

    You need to separate the two menus in the HTML and target them accordingly, e.g.

    <ul class="menu"><!-- Put the menu HTML code here --></ul>
    <ul class="lblue"><!-- Put the lblue HTML code here --></ul>
    

    You also seem to have misunderstood the id attribute. You can only use an id once per page, and it cannot contain spaces. So id="lblue li" will not work at all. I’d suggest removing them for now!

    • 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
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I have a text area in my form which accepts all possible characters from
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
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 used javascript for loading a picture on my website depending on which small
I have a jquery bug and I've been looking for hours now, I can't

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.