Can’t get rid of this border/shadow on bootstrap website. Tried everything.
Here’s what it looks like:
Anyone know the code to get rid of this?
Thanks
Eddie
Can’t get rid of this border/shadow on bootstrap website. Tried everything.
Here’s what it looks like:
Anyone know the code to get rid of this?
Thanks
Eddie
Only happens when I hover or click
Can you share the css you have?
@RiversideRocks
Using bootstrap. Maybe some other stuff (adapting a template) - will have a look later
Tried this:
<style>
button.bg-primary {
background: none;
color: inherit;
border: none !important;
padding: 0;
font: inherit;
outline: none !important;
box-shadow: none !important;
}
button.bg-primary:focus,
button.bg-primary:active {
background: #fd5f00 !important;
}
</style>
Hover, right?
button.bg-primary {
background: none;
color: inherit;
border: none !important;
padding: 0;
font: inherit;
outline: none !important;
box-shadow: none !important;
}
button.bg-primary:hover {
border: none;
}
Think I’ve tried that but will have another go
Edit: @khalby786 didn’t work
Make the button secondary instead of primary
That’s it! I do with some some javascript code, meaning the css applied to buttons in the primary is ignored as it is changed to a secondary button. Let me try changing it.
Edit: it worked!
Full css code:
<style>
button.bg-primary{
border: none !important;
outline: none !important
}
button.bg-primary:focus,button.bg-primary:active,button.bg-primary:hover{
border: none !important;
outline: none !important;
background: #fd5f00 !important;
}
button.bg-darken{
border: none !important;
outline: none !important
}
</style>