Jump to content

background color


Guest Cashster09

Recommended Posts

Guest Cashster09

Hi again,

Im sure this one is simple but it's just not working.

 

I have a menu and when i hover over a tab its light blue background. When i get to that page i would like it to stay that color on that tab.

 

I have this code in my style sheet

 

li.current {

background-color: #AED3D9;

color: #FF0000;

}

 

and then i have class="current" in my menu

Home

About Us

Services/Staff

Online Coupons

Dry Cleaning Articles

FAQ

Contact Us

 

thanks in advance

Link to comment
Share on other sites

change the CSS to

.current a {
   background-color: #AED3D9;
   color: #FF0000;
} 

but aside from that, you have all kinds of coding errors, beginning with using HTML doctype and XHTML closing tags.

Link to comment
Share on other sites

Guest Cashster09

yes i noticed the doctype on the article page i should change that...

which doctype should i use?

 

I also changed it to a background instead of the blue color and it works great, but i want the text color to be black not white. I changed it in the styles.css but its still white.

 

here is my code.

 

.current a {

background: #AED3D9 url( selectedMenu.jpg?z=16168 ) repeat-x;

color: #000000;

}

Edited by Cashster09
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...