Topic: Wrap long titels in side-nav
brouzoulis
pro asked 10 years ago
...
<li>
<a href="#" class="waves-effect">This is a longer link text that will be clipped</a>
</li>
...
How can I make the text wrap to a new line?
Alternatively, if this is not possible how can I introduce an ellipsis instead -> "This is a longer text..."
jbankster.web
pro answered 10 years ago
.side-nav {
width: 240px;
}
Simply adjust the above number, save changes, force refresh your browser cache... and keep adjusting that number until your link text in no longer chopped off.
Having a live site to look at would help give the best answer. If this answer doesn't help, or you have further questions about my suggestion, then we will need a live link to look at before helping any further.
For reference, I'm looking at a sidebar nav example used on MDB's site to give you the answer above.
http://mdbootstrap.com/live/_MDB/index/docs/skins/skin-blue.html#
I've assumed their style rules in the page above are the same in the stock MDB .css files you have. If not, we need a live link to look at.
Hope that helps,
Josh
brouzoulis
pro answered 10 years ago
jbankster.web
pro answered 10 years ago
Marta Szymanska
answered 10 years ago
brouzoulis
pro answered 10 years ago
.side-nav {
width: 340px;
}
.side-nav .logo-wrapper a {
width: 340px;
}
.fixed-sn .double-nav,
.fixed-sn main,
.fixed-sn footer {
padding-left: 340px;
}
@media (max-width: 1024px) {
.fixed-sn .double-nav,
.fixed-sn main,
.fixed-sn footer {
padding-left: 0;
}
}
Thanks for your input,
// Jim
jbankster.web
pro answered 10 years ago
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
- User: Pro
- Premium support: No
- Technology: General Bootstrap questions
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No