3 replies [Last post]
largerstory
largerstory's picture
Offline
newbie
NC, USA
Last seen: 8 years 6 weeks ago
NC, USA
Timezone: GMT-4
Joined: 2012-10-18
Posts: 1
Points: 2

I'm looking at changing the color of the menu item, or either adding a box around. The tab that I'm wanting to change is the donate tab, to make it stand out. This is a test url before it goes live. Any suggestions or help with the css would be greatly appreciated!

http://www.pektra.com

Tyssen
Tyssen's picture
Offline
Moderator
Brisbane
Last seen: 6 years 6 weeks ago
Brisbane
Timezone: GMT+10
Joined: 2004-05-01
Posts: 8201
Points: 1386

Done?

Looks like you figured it out already.

How to get help
Post a link. If you can't post a link, jsFiddle it.
My blog | My older articles | CSS Reference

Flaxion
Flaxion's picture
Offline
newbie
Denmark
Last seen: 8 years 4 weeks ago
Denmark
Timezone: GMT+1
Joined: 2012-10-29
Posts: 1
Points: 1

How did you do this? I have

How did you do this? I have the same issue. Can anybody help?

As written on the Wordpress forum:

Hi.

I want to change one of the menu items (kontakt os for tilbud) in the navigation to having a green background. So far I've tried stuff like inserting this line in the hvid.css file:

.menu-item menu-item-type-post_type menu-item-object-page menu-item-23 {background-color: #7ec642;}

This doesn't work though. Anyone that has ideas on how I can do this?

URL: http://www.diction.dk

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 5 years 46 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

The background is stated on

The background is stated on the anchor so that's where you need to re-state it so add 'a' as the last selector of that set (and you probably don't need the selector set so specific )

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me