Re: [css-d] RES: RES: child margin affecting parent?

2013-05-12 Thread Philippe Wittenbergh
Le 13 mai 2013 à 11:08, COM a écrit : > On May 12, 2013, at 7:04 PM, Alan Gresley wrote: > >> No, you simply have collapsing margins. Just change the value of the top >> margin to zero. Like so. >> >> header{ >> margin:0 0 1em 0; >> border:red 1px solid; >> } > > Thank you. Couple

Re: [css-d] RES: RES: child margin affecting parent?

2013-05-12 Thread COM
On May 12, 2013, at 7:04 PM, Alan Gresley wrote: > No, you simply have collapsing margins. Just change the value of the top > margin to zero. Like so. > > header{ > margin:0 0 1em 0; > border:red 1px solid; > } Thank you. Couple questions…I did have a border on the header..isnt th

Re: [css-d] RES: RES: child margin affecting parent?

2013-05-12 Thread Alan Gresley
On 13/05/2013 7:47 AM, COM wrote: sorry for seeming dumb but why would adding padding prove its collapsing margin? Since padding on the parent prevents a child's margin to collapse through. the same applies if you had a border on the parent. wrapper contains header in this case, plus, I hav

Re: [css-d] RES: RES: child margin affecting parent?

2013-05-12 Thread David Hucklesby
On 5/12/13 2:47 PM, COM wrote: sorry for seeming dumb but why would adding padding prove its collapsing margin? wrapper contains header in this case, plus, I have other child objects whose top margin value will not do this. is there some special property to the tag? I realize that's HTML… On

Re: [css-d] RES: RES: child margin affecting parent?

2013-05-12 Thread COM
sorry for seeming dumb but why would adding padding prove its collapsing margin? wrapper contains header in this case, plus, I have other child objects whose top margin value will not do this. is there some special property to the tag? I realize that's HTML… On May 12, 2013, at 2:31 PM, "M

Re: [css-d] RES: child margin affecting parent?

2013-05-12 Thread COM
I am not sure that this is collapsing margins..perhaps I don't get "margin collapse" but I thought it meant if 2 block level items touching vertically, the larger margin value will be expressed, the smaller will "disappear." what I'm seeing here as the problem is child element margin top value i

[css-d] RES: child margin affecting parent?

2013-05-12 Thread Mauricio Silva
Hi J, THis happens due the classic "CSS Collapsing Margins" behavior Have a look at: http://css-discuss.incutio.com/wiki/Collapsing_Margin for a compreensive explanation. Regards Maurício Samy Silva http://maujor.com http://facebook.com/maujor @maujor -Mensagem original- De: css-d-boun.

[css-d] child margin affecting parent?

2013-05-12 Thread COM
Given the css below, why should the header margin value also push the wrapper downward? In my markup, the wrapper div is the parent, margin:0, auto; thank you J *{ padding:0; margin:0; } body{ background-color:rgb(200,200,200); font-family:helvetic-neue, Verdana, Arial, sans-ser