chinchang / web-maker

A blazing fast & offline frontend playground
https://webmaker.app
MIT License
2.56k stars 316 forks source link

CSS not working with Bootstrap #423

Closed a-a-GiTHuB-a-a closed 4 months ago

a-a-GiTHuB-a-a commented 4 years ago

I have installed everything to allow a button to turn green with the btn-success class, including a link tag for the stylesheet:

<link rel = "stylesheet" href = "https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css">

However, it ruins the CSS that I had inserted:

body {
    color: rgb(255, 0, 0);
    background-color: rgba(255, 0, 0, .5);
}

How do I fix this without removing the green button functionality?

chinchang commented 4 years ago

You mean your button isn't green anymore, even after putting btn-success?

a-a-GiTHuB-a-a commented 4 years ago

No, my background and text colors aren't working.

Abhishek16-web commented 2 years ago

Is it updated or not ?

chinchang commented 4 months ago

Don't add a link tag...since it overrides the CSS you write for body background. Instead put the bootstrap CSS URL through add library CleanShot 2024-05-15 at 14 13 07@2x

image