I want to make the default panel of bootstrap transparent and tried it with the answer i found here (Transparent Bootstrap Panel), by adding the following code to my stylesheet and then adding the panel-transparent
class to my panel.
CSS:
.panel-transparent {
background: none;
}
.panel-transparent .panel-heading {
background: rgba(122, 130, 136, 0.2)!important;
}
.panel-transparent .panel-body {
background: rgba(46, 51, 56, 0.2)!important;
}
.panel {
margin-bottom: 20px;
background-color: #fff;
border: 1px solid transparent;
border-radius: 4px;
-webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
}
.panel-body {
padding: 15px;
}
.panel-heading {
padding: 10px 15px;
border-bottom: 1px solid transparent;
border-top-left-radius: 3px;
border-top-right-radius: 3px;
}
HTML:
<div class="panel panel-default panel-transparent">
<div class="panel-heading">
</div>
<div class="panel-body">
<h3 id="fahrzeugwahlh3">Heading:</h3>
<p id="fahrzeugwahltext">Text</p>
</div>
</div>
Somehow the panel gets the desired color but it's not transparent and i don't know what i am doing wrong.
See here: https://jsfiddle.net/ktLypzgr/
Solution:
Had my Stylesheets linked in a wrong order, so that they got overwritten!
Sometimes its as simple as this... Thanks for your help!