Quantcast
Channel: Active questions tagged html - Stack Overflow
Viewing all articles
Browse latest Browse all 67411

Css side navigation transition

$
0
0

I have a side navigation bar that extends on a button click.

When I open the side navigation bar if the text is too long it displays first in 2 lines, then when we reach the full width of the side navigation it goes to 1 line.

Live exemple here

On the exemple above, when the nav bar extends "Toto user creation" first display on 3 lines then the final display is on 2 lines. I want to display it directly on 2 lines

I tried transition:none for the text only but it's not working.

Any ideas to make the text appears on X lines directly depending on the width of the text?


Viewing all articles
Browse latest Browse all 67411

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>