I am trying to style two Bootstrap panels slightly differently. I decided to do this by naming them with different id's and then styling them via CSS. For some reason the CSS id selector is not working for me.
Here is the HTML:
<div class="col-md-3">
<div id="price" class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Price</h3>
</div>
<div class="panel-body">{{ item[0][3] }}</div>
</div>
</div>
<div class="col-md-3">
<div id="size" class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Size</h3>
</div>
<div class="panel-body">{{ item[0][2] }}</div>
</div>
</div>
And the CSS:
#price .panel-default {
width: 150px;
font-size: 18px;
}
#size .panel-default {
width: 100px;
font-size: 188px;
}
All the CSS / HTML I know is self taught so I may be missing something fundamental here. Any help is appreciated, thanks.