Reputation: 1920
It doesn't show it there but if that code is run on normal browser, it would produce scroll bars within the parent div.
How do I remove that scroll bar?
Upvotes: 2
Views: 4920
Reputation: 91580
Try this:
#container {
overflow:hidden; /* change to hidden */
margin: 0 auto;
margin-top:37px;
height: 100%;
width:875px;
-moz-box-shadow: 0 30 30px 5px #999;
-webkit-box-shadow: 30 0 30px 5px #999;
-o-box-shadow: 0 30 30px 5px #999;
border:1px solid black;
border-top-style:none;
}
#child1 {
overflow:hidden; /* change to hidden */
min-height:150px;
border-bottom:1px solid #bbb;
background-color:#eee;
opacity:0.4;
}
Upvotes: 2
Reputation: 51624
In most browsers overflow:auto
causes a scrollbar to be provided for overflowing boxes. Change the according div(s) to overflow:hidden
This jsFiddle should work.
Upvotes: 4
Reputation: 18833
You have overflow:auto on everything? no wonder you get scroll bars.
Here's a decent overflow reference: http://css-tricks.com/2833-the-css-overflow-property/
Otherwise, just declare overflow:hidden, overflow-x:hidden or overflow-y:hidden
Upvotes: 0
Reputation: 5352
Use CSS overflow property to control the scroll bars: http://www.w3schools.com/cssref/pr_pos_overflow.asp
Upvotes: 0