Hi, Im having trouble with my main navigation because when Im zooming out my browser (Ctrl -), the last link in my main menu shifts to the next line. Is there any way on how to prevent this?
Thanks for quick response Paulie. It happens to all browsers and am using windows 7 with 1600x900 resolution. This also happens with 1600x1200 resolution. For the viewport, I haven't declared anything to it and using screen for media. I am an amateur web designer so Im having trouble with it :)
Wow, I had to Ctrl- a whole heck of a lot to get that menu to break, so much that I couldn't read any of the text...so it's not a huge issue I suspect.
Regardless, I'm fairly confident that it's the padding in your
ul.menu li a {
.I assume that the left and right padding is set so as to centre the text and stretch the list items so that they fill the width of the nav.
You could set the text to align center and set the li to a % to achieve the same effect...I think.
However, my original comment still applies... "In any case, I think I would be correct in saying that the VAST majority of users don't Ctrl- very often, it's more likely to be the opposite."
here is the html code
and the css:
Is this happening in all browsers or just some? What OS? What resolution or viewport size?
These sorts of issues are usually padding issues + font-sizes which can be addressed via media queries.
Have you played with the padding on your menu wrapper, list items, (li) or menu links (li a), font-sizes etc?
As I said, with a live link we can inspect it and let you know.
In any case, I think I would be correct in saying that the VAST majority of users don't Ctrl- very often, it's more likely to be the opposite.
Oh...and it might be your search box too!
Regardless, I'm fairly confident that it's the padding in your .I assume that the left and right padding is set so as to centre the text and stretch the list items so that they fill the width of the nav.
You could set the text to align center and set the li to a % to achieve the same effect...I think.
However, my original comment still applies... "In any case, I think I would be correct in saying that the VAST majority of users don't Ctrl- very often, it's more likely to be the opposite."