opposite colors

Posted on 2007-10-18
Last Modified: 2008-03-06


I am trying to have the right column to have yellow text, and red background, as opposite to the left column where there is red text, and yellow background.

What am I missing (doing wrong)?

Thank you.
Question by:keneso
    1 Comment
    LVL 28

    Accepted Solution

    First of all, IDs have to be unique - you have two #menu divs and many #menu anchor elements. They all should have different ids. You can use a classname for the <a> elements instead (a class can be assigned to many elements, unlike an id).

    Also give one div e.g. the id menu1 and the other menu2 (or menuLeft menuRight).
    Then you should assign the desired color and bg color e.g. here (for all links inside menu1)
    #menu1 a {  }

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
    Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL ( several years ago, it seemed like now was a good time to updat…
    The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
    The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now