0

Hello guys,

I am not going to post the code here as I don't really know where in the code files I can fix that.
I have a website that basically looks good on desktop and laptops however when it comes to mobiles and tablets the top navigation bar seems to be spaced out which results the bar being in two lines.

I believe that's due because of the size of the device and there is something somewhere in the css that I have not set properly. Could I be right?

Do you have an idea of what this might be?

Thanks as usual!

2
Contributors
5
Replies
31
Views
3 Years
Discussion Span
Last Post by london-G
0

Its hard to say without seeing your HTML and styles. It could be related to using fixed lengths on certain elements. For example, in a nav menu say you have 10 items and you have a fixed width for each item at 100px. That would require at least 1000px to be visible on one line. If these nav items are within an element that only has 900px available, it may wrap to the next line.

1

I'm not 100% sure because i have no dev tools on my mobile browser, but from the desktop i see that you have a width associated with the div that has the classes assigned: <div class="wrapper clearfix">. I see it has a width of 94%. I can reproduce the issue you see on the mobile device when i change the width of this div to something much less than 94%.

0

Thank you for spotting that out. I have changed it to 100% now, will check later if the menu is aligned fine

0

Nope, still not fixed. It's quite difficult as I can't really see the problem in the code with a mobile!

Will try something else.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.