toicontien
05-25-2007, 11:46 AM
I've been dealing a lot lately with TABLEs in with normal body text. Mix that up with headings where sometimes I want margins above or below, and sometimes I don't, and other cases where I use the CAPTION as a heading and want to give it a top margin, and this just equals p***ing me off because margins on a TABLE do not collapse like those of block elements (http://www.w3.org/TR/CSS21/box.html#collapsing-margins). I have yet to run across an instance where I thought, "man, I wish the margin on this table didn't collapse, thereby causing the gap above and below it to double and make my content look ugly."
I've solved it by creating various CSS classes I can apply to the TABLE tag to create a top margin, bottom margin, or both. Then I looked at it in Internet Explorer and it doesn't seem to recognize margins on CAPTION tags, so I have to use padding. :mad:
Has anyone else encountered this annoyance? Has anyone solved it?
I've solved it by creating various CSS classes I can apply to the TABLE tag to create a top margin, bottom margin, or both. Then I looked at it in Internet Explorer and it doesn't seem to recognize margins on CAPTION tags, so I have to use padding. :mad:
Has anyone else encountered this annoyance? Has anyone solved it?