Jump to content
Sign in to follow this  
peschen

Wrapping text arround image

Recommended Posts

Dears, I have a problem with wrapping text arround image Here is my code <div id="content"> <div id="block-system-main" class="block block-system no-title"> <article id="node-30" class="node node-nieuws article clearfix" role="article" typeof="sioc:Item foaf:Document" about="/nieuws-test-1"> <div class="node-content"> <div class="field field-name-body field-type-text-with-summary field-label-hidden view-mode-full"> <div class="field-items"> <div class="field-item even" property="content:encoded"> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus gravida blandit ante id tempor.</p> </div> </div> </div> <div class="field field-name-field-nieuwsafbeelding field-type-image field-label-hidden view-mode-full"> <div class="field-items"> <figure class="clearfix field-item even"> <img class="image-style-medium" width="220" height="165" alt="" src="http://www.pilatesbodycenter.be/sites/default/files/styles/medium/public/Koala_0.jpg" typeof="foaf:Image"> </figure> </div> </div> </div> </article> </div></div>my CSS.node-nieuws .field-name-body {background:#ff0000; float: left;}.node-nieuws .image-style-medium {float:right;background:#0000ff; padding:5px;} Nomatter what I do, image alwasy stays under text en is not wrapping kan somebody help please? Here is the page livehttp://www.pilatesbodycenter.be/nieuws-test-1

Share this post


Link to post
Share on other sites

The float property will make an image float relative to any content that follows it. Content that is before it will not be affected.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...