I want the link/button, once clicked to stay active with the same background colour but it is just not happening anymore.
Could you clarify what you mean by “to stay active”? Do you mean on the next landing page?
The ideal way to do a menu is to us an <ul> with the <li>s floated or displayed inline. But anyhow, do you have a live link? It’s much easier to help you if we can see the real thing.
This one seems to be working with the exception that if you click anywhere on the page, the selected link that was gray will become black again. Is this normal?
Basicly I want the nav bar to look like folders. The whole nav is one colour. There is a hover colour and another colour, the same as the background so that it matches the background for the active page once the link it’s clicked.
I meant active page for the nav bar to have a background the same colour as the page background. So I all current active page is what I am looking for.
Yes. I want the button that I click to stay the same colour as the background. This way makes it look like my pages are arranged folder like.
Just like picture attached. Hope I have been more clear this time. Next I am aiming to do rounded corner top left and rignt only. Can it be done using CSS?
That isn’t something that can be done with CSS alone - it won’t look at the link destination and compare it with the current URL and see if they match.
You need to find some way of adding a class/ID to the appropriate link in the HTML itself. It depends what you’re using to build your menu (eg PHP, server-side includes, copy-and-paste into the raw source, a CMS, etc) as to what the best way of doing it is.
One option that works well enough, and doesn’t require any special code injection, is to put an ID on every link in the menu, and then put a class of the relevant name on the <body> for each page. You can then target the pairings with CSS, like:
.home #home,
.about #about,
.services #services,
.compare #compare,
.eshop #eshop,
.contact #contact
{[I]white background, green text etc[/I]}
I can almost understand what you are saying but I would have to try it independantly on a new page to see how I would go about as mentioned before, I am not css or html programmer.