1
I took a CSS ready template from the internet to choose a payment method for my site. Below is the link to it.
https://codepen.io/cusx/pen/aNqQdQ
However, when importing the header and footer (I am using PHP for this) that use Bootstrap, the payment page is not configured. When removing the bootstrap link the payment method is normal, but as my header and footer use bootstrap, they are broken.
I tried to create a Section with an id and put before all css code, not succeeding tried to create a div, thus:
Original
...
.price h1 {
font-weight: 300;
color: #18C2C0;
letter-spacing: 2px;
}
...
With Section id = 'payment'
...
#pagamento .price h1 {
font-weight: 300;
color: #18C2C0;
letter-spacing: 2px;
}
...
with a div class = 'payment'
...
.pagamento .price h1 {
font-weight: 300;
color: #18C2C0;
letter-spacing: 2px;
}
...
But I was unsuccessful. I also tried to put the call of my css style before the boostrap link, also did not work.
Is there any way to remove bootstrap on a particular piece of html? Or to overwrite my style file? Or still some other way of being able to use both without either of them being broken?
Even putting the link after, the bootstrap contained overwriting. I can’t use iframe, because I’m using the model code of what I’m producing, and I don’t use the same, so it doesn’t work.
– Rafael
@Rafaellazzarettimadalóz guy made one EDIT and includes a solution that can serve you, I believe it is worth you to take a test there. Read there that you have more details, and the link I mentioned also has more things that may interest you.
– hugocsl