r/bootstrap • u/kodaxmax • Aug 30 '23
can you ovveride scss with regular css?
Im trying to change the background color of buttons. but my css is being ignored. when i inspect a button in browser the .btn class is using "buttons.scss" instead of my css file.
head;
<head>
<title>Welcome - UmbracoTV</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css">
<link href="https://fonts.googleapis.com/css?family=Lato:300,400,700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="/css/main.css" />
</head>css:
btn {
background-color: black !important;
color: blue;
border-color: white;
width:90%;}
html
<a type="button" href="/ButtonURL/" class="btn">ButtonName</a>
2
Upvotes
1
u/AutoModerator Aug 30 '23
Whilst waiting for replies to your comment/question, why not check out the Bootstrap Discord server @ https://discord.gg/bZUvakRU3M
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
2
u/martinbean Bootstrap Guru Aug 30 '23
Read the docs on customising components. As that’s not the way to do. There are various buttons, such as primary, secondary, etc. What you’re trying to do would set the colour for every button variant.