Hi,
I am trying to design a newsletter and am having some trouble with using floating elements in CSS. I have experienced these problems many times before so I would really like to find a solution.
I have a two column layout made up of two DIV elements, one set to float: left and the other set to float: right. They are both inside another DIV. I want to put a paragraph underneath using clear: both, but Firefox seems to ignore the margin property I set. It does not leave a line above the paragraph like it should. Could anyone explain to me how this works? I understand that parent DIV's don't expand if they contain floating elements, but how can this be overcome?
Thanks,
James
I am trying to design a newsletter and am having some trouble with using floating elements in CSS. I have experienced these problems many times before so I would really like to find a solution.
I have a two column layout made up of two DIV elements, one set to float: left and the other set to float: right. They are both inside another DIV. I want to put a paragraph underneath using clear: both, but Firefox seems to ignore the margin property I set. It does not leave a line above the paragraph like it should. Could anyone explain to me how this works? I understand that parent DIV's don't expand if they contain floating elements, but how can this be overcome?
Thanks,
James
Comment