Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML How to Make a Website HTML First HTML History Lesson

I want nav list in one line

Hi, i make a new website. My website has 6 page. lists are 6, in mobile size nav goes to two lines.. i want customise nav in one line and can slide left or right side. how can i do this ? thanks for teaching .

1 Answer

anil rahman
anil rahman
7,786 Points

Realistically if the navigation is going over two lines when you make the screen smaller you want to use media queries to turn that into a mobile view and customise the layout to however you would like in that query. If you are on Nick's course he will mention these media queries near the end or if you google it or even take thee CSS courses you will learn how to create these simple queries and what to change to however you feel you want things to look.

Thanks for your answer. I must keep learning!

Hi Ur,

You can mark Anil's answer as best answer. He will earn points for it if you do. :)