• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 414
  • Last Modified:

opposite colors



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.
1 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 {  }
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now