Skip to content
Advertisement

Heading with medium border bottom – Bootstrap

Is possible using Bootstrap, add a border bottom with 3rem of width (for example) with a class, and add the parameter of color in the tag? Example:

JavaScript

OK. But I want something like this:

JavaScript

Is this possible? Thank you.

https://jsfiddle.net/fekula/m3ydro1q/1/

Advertisement

Answer

Thank you focus.style for your suggestion regarding using codes snippet to better demonstrate the result.

Change the background-color and instead use border for your underline, then you’ll be able to use Bootstrap classes to change the underline colour.

JavaScript
JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement