+ 1

How do I get the text in my nav bar to stop going to the next line?

I want my nav bar to not have two lines of text and because it would overflow I want it to scroll horizontally. I tried whitespace but it wouldn't work. I really want my lines to stay horizontal. https://code.sololearn.com/WLae314aQLIx/?ref=app https://code.sololearn.com/WLae314aQLIx/?ref=app

7th Apr 2018, 9:28 PM
Babydoll Scripts
Babydoll Scripts - avatar
10 Respostas
+ 5
I'm bored so I made a navbar for you. Like Xan said it's not ideal to have any horizontal overflow on mobiles. https://code.sololearn.com/WknEFty9b6nc
7th Apr 2018, 10:07 PM
Toni Isotalo
Toni Isotalo - avatar
+ 3
its because your #nav is only 400px You also have margin: -10px You don't need that if you remove the padding from body body { padding: 0px; }
7th Apr 2018, 9:50 PM
Toni Isotalo
Toni Isotalo - avatar
+ 3
Xan I meant I wanted the nav bar to scroll horizontally not the whole page.
7th Apr 2018, 9:54 PM
Babydoll Scripts
Babydoll Scripts - avatar
+ 2
That's a bad idea. You either need the nav bar menu items on one line (wider browsers), or it to go to two lines or more, or for a hamburger menu to kick in (as that is fairly standard now, but risky for inexperienced web visitors). People on a mobile want a mobile friendly website, they don't want to have to scroll horizontally. There's often a trade-off between visuals and usability, however two lines of text on the nav bar, is better than scrolling horizontally.
7th Apr 2018, 9:50 PM
Emma
+ 2
Toni Isotalo Should I credit you in the site for helping?
7th Apr 2018, 10:12 PM
Babydoll Scripts
Babydoll Scripts - avatar
+ 1
Sure, I still think scrolling a nav bar horizontally is confusing and non-standard for most users. It's your choice though. I often look at the top websites in the world for clues. They can hire the best web developers in the world, and often have a huge budget. If they do / don't do something, I take notice.
7th Apr 2018, 10:07 PM
Emma
+ 1
Did I misunderstand the question? What course do you mean?🤔 Also, hi. 😄
9th Apr 2018, 2:57 AM
Babydoll Scripts
Babydoll Scripts - avatar
+ 1
My day is okay. I have several copies of my Cybersec page and deleted the old one. I'll let you see the one being worked on. I'm having such trouble with it.
9th Apr 2018, 3:04 AM
Babydoll Scripts
Babydoll Scripts - avatar
9th Apr 2018, 3:05 AM
Babydoll Scripts
Babydoll Scripts - avatar
0
What course? I'm not deleting anything. I'm having trouble with my site at the moment. I'm trying to get my buttons to work properly.
9th Apr 2018, 2:55 AM
Babydoll Scripts
Babydoll Scripts - avatar