css - Wrap hyperlink text in navbar -


this question has answer here:

thanks in advance help! have looked @ several posts wasn't able find solution saved problem or addressed issue facing. building fixed navbar using bootstrap 3.3.5. of hyperlink text long. want wrap hyperlink text. need use dropdowns well. have been trying wrap text unsuccessfully.

i have tried creating links in <p> this:

<li><div><p class="navber-text"><a href="#temp_url">a long , wordy link goes here</a></p></div></li> 

i have tried adding:

@media (min-width: 768px) {   .navbar-text {     float: left;     margin-right: 15px;     margin-left: 15px;     white-space:normal !important;     max-width:200px;     word-wrap: normal;   } 

to custom.css file , can't seem work.

would mind showing me making mistake? button group better option me here?

i need use drop downs said earlier , if did use button group remain visible @ top of screen @ times.

thanks can offer.

use word-break: break-all; break words in css


Comments

Popular posts from this blog

jsf - How to order SelectItems in custom renderer extending MyFaces HtmlMenuRenderer -

Android : Making Listview full screen -

c# - How to share session between a MVC project and a WCF project? -