« Web, HTML, Tech Forum

navigation bar [closed]

Is there a way I can make it so that the navigation bar scrolls to the side when the content inside it becomes too "much" (shown in the picture)? It goes on top of itself instead of just extending cuz it's a list i think

I'm not sure how to word it

navigation bar gets taller


Report Topic

1 Reply

Reply by LEAH

posted

It's probably the margins.

/* (play with the values, I don't know) */

nav .links {margin-left: *px; margin-right: *px;}

OR you just need to make it wider.

/* specifying both height AND width is important if you want to STRETCH
it along a particular axis and not keep its aspect ratio the same.
sorry, I don't know the exact values in px but it should be something
like this */

nav .links {width: *px; height: *px;} 


Permalink Report Reply

mason (profile wip) closed this Forum Topic