Editing CSS menu buttons

Permalink
Hi there,
I'm using the theme called Greek_Yogurt and I want to personalize it more.
I have changed many things but I'm stuck with the menu buttons.
The thing is: if I want to change the color in the border of the active button I just need to write somewhere this line: border: solid 1px black; Correct? Well... It doesn't work! It only shows the border in the bottom of it.

My code:
ul li a.nav-path-selected {
background-color: #f1c232;
}

ul li.nav-selected {
font-weight: bold;
}

It doesn't work putting the code for the border (border: solid 1px black;) in any of those bits or in both.

Any ideas?
Thanks

 
VPenkov replied on at Permalink Reply
VPenkov
Try adding the following:
ul li a.nav-selected {
border: 1px solid #000;
}
ednella replied on at Permalink Reply 1 Attachment
Thank you for your answer.

If I put it in nav-selected the border appears behind the background and in a smaller size. I think it only affects the text. (please find a screenshot attached)

If I put it in nav-path-selected it works, but only in the bottom (???)

I just don't get it :(
VPenkov replied on at Permalink Reply
VPenkov
Oh, I get it.
Could you PM me a link, please?
VPenkov replied on at Permalink Reply
VPenkov
Ok, got your PM.
Open up your typography.css.
Around line 41, you will find:
div#main-container #header ul li a:hover


Change it to:
div#main-container #header ul li a:hover, ul li a.nav-selected


Just add a comma and then the "ul li a.nav-selected" selector. That should do it.
ednella replied on at Permalink Reply
No changes :(
VPenkov replied on at Permalink Reply
VPenkov
Okay then, try:
div#main-container #header ul li a.nav-selected


This will work.
ednella replied on at Permalink Reply
It worked!! You are a star!
Thanks a lot. :)

Does exist something to block the hover propierties when the mouse is over the active/selected one?
That last detail would be awesome
VPenkov replied on at Permalink Reply
VPenkov
Sure, just delete any :hover selectors, such as div#main-container #header ul li a:hover.

Don't forget to backup your file before that.
ednella replied on at Permalink Reply
That would affect everything, wouldn't it?
I just wanted to have the normal hover propierties but only in the not-active ones... I mean, if you put the mouse over the active one there's a link to itself, and that shouldn't be there. But don't worry, you've already saved me and it's fine like it is :)
VPenkov replied on at Permalink Reply
VPenkov
Not sure what exactly you are trying to achieve.
You're trying to remove the link property from the active element?

That's more complicated and I'd strongly advise you against doing it.
ednella replied on at Permalink Reply 1 Attachment
Ok then. I leave it like it is.

I'm trying to do something else now... I would like the active botton to be a bit higher than the others. I tried changing the top-padding, but obviously the text appears too low. Then I tried to fix it using vertical-align: middle; but it doesn't work. Please find attached a screenshot of how it looks now. As you can see the text of the active element "home" doesn't appear verticaly centered.

And this is the relevant pieces of code:
div#main-container #header ul li a.nav-selected {
   /* customize_nav-selected */  /* customize_nav-selected */
   padding-top: 20px;
   border-top: solid 1px black;
   border-right: solid 1px black;
   border-left: solid 1px black;
}
ul li a.nav-path-selected {
   background-color: #f1c232;
}


Any ideas? Any help would be very much appreciated.

I think I'm making this thread too long. Should I put this new question in a new one?
VPenkov replied on at Permalink Best Answer Reply
VPenkov
Line 41-47:
div#main-container #header ul li a.nav-selected {
   /* customize_nav-selected */  /* customize_nav-selected */
   border-top: solid 1px black;
   border-right: solid 1px black;
   border-left: solid 1px black;
   padding-bottom: 7px;
}


I added padding-bottom.
ednella replied on at Permalink Reply
Thanks again MoonGrab :)
ednella replied on at Permalink Reply
It's me again.
How do I keep the border when a page below is active?
And how do I center (horizontally) the whole set of buttons?