Reputation: 9662
I have a div with relative position and a children div with position absolute.
<div id="container" class="out">
<div id="inside"></div>
</div>
CSS:
#container {
width:100px;
height:100px;
position: relative;
}
#inside {
position:absolute;
top:25px;
left:25px;
right:25px;
bottom:25px;
margin-bottom:24px;
}
Chrome, Safari and Firefox seem to work correctly but Opera browser (in Mac) is calculating margin-bottom twice.
This a fiddle: http://jsfiddle.net/4fw9wc0o/1/
Is this a bug or am I missing some property?
Upvotes: 2
Views: 275
Reputation: 57
Opera browser does not overrides the bottom property with margin-bottom... so it seems that margin bottom doubles by mistake in the browser.
Upvotes: 1
Reputation: 9662
Seems like the Opera browser offered in the App Store is version 12, more than a year and a half outdated (actual is 25). Downloading it directly from their website and opening the jsfiddle doesnt show any conflict.
Upvotes: 2