After what seems like an eternity I have managed to cobble together my navigation bar as near to how I want it as I can get it. I have pieced it together using help from here (Thanks Donboe) and from other places on the t’internet together with trial and error. However there is a problem that I can’t work out what is causing it, please help.
This is my nav bar below, each time you click on a tab the same nav bar is there but the coloured lines undeneath change in relation to the colour of the tab.
It works on the first three but when you click on Contact Me the following happens
If you then click the contact me tab again it then goes back in line. Is there an easy explanation as to why this happened.
You don’t have to give me any credit. I just pointed you to something. That’s why we’re all here isn’t it. To help and to be helped. If I can help I do it and if I need help I ask for it.
That makes sense, I will have look at some topics about positioning once I have finished the nav bar.
I will definitely stick the site up when done (it’s gonna take quite a while though) as I would like to some input into it. I 'll be adding a link to here and I’ll add a credit to you Donboe if that is ok.
Whoop Whoop thanks ever so much that works like a dream, really appreciate it.
Is there an easy way to explain what the problem was and how your code fixed it or do you have a link to an article that covers the relevant topic?
I tried the other suggestion you gave (I do intend when I have done to try and establish where my code can be improved) as it makes some sense however when I changed it the nav bar was then broken with the end tab dropping down and a gap being created after the services tab. Have you any idea why that was?
Another thing I noticed is that all your menu items the same width and height have. You could change your css a bit further. Add the width and height to the general a tag and remove it from all the page related ones