Flex-box ignores wrapped children's margin (margin collapse)



Category : Web Design

Given the following HTML:


<div class="outer">
<div>
<div class="inner">A</div>
</div>
</div>
<div class="outer">
<div class="inner">B</div>
</div>

and the following CSS (prefix free):


.outer {
display: box;
box-orient: vertical;
height: 100px;
width: 100px;
background: red;
margin: 10px;
}
.inner {
height: 50px;
margin-top: 10px;
background: green;
}



View Replies

Related to : Flex-box ignores wrapped children's margin (margin collapse)


IE 6/7/8 ignores margin 0 auto
Category : Development
Hi - phew, finally got 2/3rds of my new css site up, but now have to upload final one-third with old <table>s body - and just slap new css header + menu (btmnav) above + below the <table>s.
Problem is IE 6/7/8 will not recognize margin: 0 auto. See:
http://www.greensmoothie.com

View Replies


margin collapse and how to get rid of it?
Category : Development
margin collapse
and how to get rid of it?
margins in valid browsers act different than all the IEs, while borders and paddings word differently in old IE (broken box model)
is there nothing that works identically in all browsers!!! (without tricks i mean)
i know of couple tricks

View Replies


can get rid of margin collapse
Category : Development
I have a float in my header that seems to cause a margin collapse (adds extra space below) in FF when I try to clear it. I have a nave menu (list style) in the div below it, which I have tried zeroing out the margins for, but it does not seem to help. Code is below. Any suggestions?
HTML:

View Replies


Div P Margin Collapse
Category : Web Development
The code below, in IE 7 produces a div block 10em wide, by 30em high background red. Then inside, is a paragraph with grey background, with margins of 1 em.
In IE 7, the margins are all around the grey paragraph. In every other browser I've tried (Opera, FireFox, and Chrome) -- the margin

View Replies


Floated Text Ignores Margin in IE
Category : Web Design

I have a span tag floated to the left which for some reason moves up above the rest of the paragraph text and is actually cut off in ie8 and ie7. The text shows fine in ie9, but is shown above the rest of the text within the paragraph. The CSS for the span tag is:


.stat {

View Replies


Masonry ignores padding and margin
Category : Programming Languages

I am using Masonry to assemble a wall of images (just like Pinterest), but it positions the tile elements regardless of their padding and margin.


Has anyone experienced a similar bug?


View Replies


Safari ignores *{margin:0;padding:0} ?
Category : Development
Hello again,
I have been working on a new page design for a while now and had been previewing primarily in FF and IE. Today I popped it into Opera (everything checks out) and then Safari.
It totally broke in Safari. My uls and header objects seem shifted down and to the right breaking ever

View Replies


Creating div with dom, ignores css margin attributes?
Category : Development
I have a simple div which is displayed using DOM when a form gets a success/failure result, the problem is it is not leaving a gap between its self and the next object beneath it.
This is my css for the message box:
PHP Code:

View Replies


XML FO: content ignores page right margin
Category : Programming Languages

Have a small problem with my printed XSL FO document.
If text get's too long it ignores my right margin and overflows it's container.
All other margins are set fine (like top, bottom and left margin)
I already tried searching various posts but no working answer found yet.
What


View Replies


How would I make a margin collapse?
Category : Development
Hi, Im new to CSS and HTML and am currently working on my first site. Im fairly happy with the layout but theres one thing Id like to fix up:
Ive set the left and right margins of the central container div to a fixed 100 pixels, and the container fills the rest of the space. Therefore when I re

View Replies


2012 / 2017 Copyrights BigHow , All Rights Reserved .