Css3 Not Working With Bootstrap
I ran into a bit of a problem with bootstrap and css3. Here's my code: Now the problem, so with this block of code everything works fine, my body has a gradient background and ev
Solution 1:
For you to understand the problem: The last css rule for each items is the one that is actually applied. If you link the other css files before, your individual code would overwrite the other. Also if you have multiple rules for an items in a single Stylesheet, only the most bottom one is applied. (If they have the same attribute targeted)
Solution 2:
Put the boostrap link right above your style tag. That will do.
<linkrel="stylesheet"href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"><styletype="text/css">body {
background: linear-gradient(132deg, #ec5218, #1665c1);
background-size: 400%400%;
animation: BackgroundGradient 30s ease infinite;
}
...
Post a Comment for "Css3 Not Working With Bootstrap"