This question says css files load in the order they're called. But I have three css files, 2 from a cdn and one local one, with the local ones being called last. The cdn ones are taking precedence over the local css. I'm assuming this is because the nonlocal css sheets are taking a bit longer to load. How can I get the local css's rules to take precendence?
I've tried
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap-theme.min.css">
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="style.css">
and
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap-theme.min.css">
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js" ></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js"></script>
<script>
$(document).ready(function(){
$('head').append($('<link rel="stylesheet" type="text/css" />').attr('href', 'style.css'));
});
</script>
<link rel="stylesheet" href="style.css">
Edit: The problem was that
.panel-head > .panel-default
in the cdn files was taking precedence over
.panel-default