Unwanted texts in Bootstrap

Asked

Viewed 153 times

4

Why does my text appear with another under it after I add the Bootstrap library to the page? (Note the Copyright and top text)

Observe o Copyright e o texto do topo

1 answer

3


This happens because the Bootstrap has styles CSS themselves for tags <p>, <h6>, etc..

If you inspect the style of the element, you will see that Bootstrap adds several styles to these tags. And this makes it a little "weird" in its application.

You can solve this in two main ways:

1 (recommended) - In the CSS of your project, overwrite the style of the tag in question (probably <hx>, where x is the header value (1, 2...)) with the style you want.

2 - Change the style of the bootstrap code itself to the style you want.

I hope I’ve helped :)

Sincerely yours,

  • Hello, I had already tried the first option but without success. So I did it again, only this time changing the property "text-shadow: None;" and it worked. Thank you!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.