Adding a subtitle to a Bootstrap Navbar

2903 views html
1

I have a Bootstrap 4 website with a navbar. The navbar has a brand part with an image and title text, and then there's the rest of the navbar. You can see it here: https://jsfiddle.net/zmbq/aq9Laaew/218793/

Now, I want to add a subtitle, under the title "A Digital Onomasticon". The problem is - the substitle is long, and I want it to extend below the nav links.

I tried everything I could think of and couldn't figure out how to do that.

NOTE: the answer to this question is not sufficient, as it yields something like this: https://jsfiddle.net/zmbq/7et2uz0w/

answered question

1 Answer

4

You could create a new div with right float and add the text.

Check this https://jsfiddle.net/Leh7szvg/

<div style="float:right">
<h4>A Digital Onomasticon</h4>
<h6>Lorem Ipsum</h6></br>
</div>

posted this

Have an answer?

JD

Please login first before posting an answer.

Ads

Categories