Reputation: 6129
I'm using Bootstrap 3 and I have a div with class panel panel-default
. After setting style="border:none"
, why is there still a faint grey border on the bottom of my panel? How do I get rid of it?
<body>
<div class="panel panel-default" style="border: none">
test this
</div>
</body>
Upvotes: 3
Views: 3618
Reputation: 3675
The small border that you can see is a box-shadow. Set box-shadow
to none and the line disappears as demonstrated here:
http://jsfiddle.net/Hive7/Pys9B/6/
Upvotes: 0
Reputation: 371
@Fritz Meissner It's not a issue of border, But box shadow causing this.
Try this
.panel, .route-blurb-container {
-webkit-box-shadow: none;
box-shadow: none;
}
Upvotes: 11
Reputation: 436
There is still a box-shadow in .panel, .route-blurb-container
-webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
Remove it to get rid of that faint grey border on the bottom. Updated fiddle here.
Upvotes: 0