homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library, Charter, Moderators: not2easy

CSS Forum

Margins not included after clearing H3 tag.

5+ Year Member

Msg#: 4038112 posted 11:41 am on Dec 6, 2009 (gmt 0)

I am doing a page with lots of text and with some images embedded into the page.

I used a div tag to encapsulate the img tag and the caption and floated the div "<div class="img_left">" left which works quite well.

I am using h3 tags to define the sections headlines which I "cleared" using the clear style to avoid the headline flowing along an img div when the sections have less text which works very well.

The only problem is that I don't get more space between the floated div and the cleared h3 tag using margins. Margin doesn't work here because the margin is added between the cleared headline and the paragraph flowed right along the img div.

adding empty paragraphs of course works but I would like to know if I can do this otherwise making the whole layout really uniform.



WebmasterWorld Senior Member swa66 us a WebmasterWorld Top Contributor of All Time 10+ Year Member

Msg#: 4038112 posted 12:02 pm on Dec 6, 2009 (gmt 0)

padding, line height , ... ?

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / CSS
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved