Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Image floated left with 2nd image 'below' and floated right - need text to wrap
Old 11-12-2009, 11:18 PM Image floated left with 2nd image 'below' and floated right - need text to wrap
Junior Talker

Posts: 2
Name: A B
Trades: 0
I'm attempting the following layout:

------------------ Lorem ipsum dolar lorem ipsum dolar
- Image 1 - lorem ipsum dolar lorem ipsum dolar
- - lorem ipsum dolar lorem ipsum dolar
------------------ lorem ipsum dolar lorem ipsum dolar
lorem ipsum dolar lorem ipsum dolar --------------------
lorem ipsum dolar lorem ipsum dolar - Image 2 -
lorem ipsum dolar lorem ipsum dolar - -
lorem ipsum dolar lorem ipsum dolar --------------------

Image 1 is floated to the left. Image 2 is floated to the right. Image 2's top edge should be below Image 1's bottom edge. Text should wrap around both images.

I cannot get Image 2 to drop below Image 1. Here was my last attempt.

Code:
<div class="pic-left"><img class="pic-border" src="Image 1" />
  <div class="attribution"><a href="/attr/1">Image 1</a></div>
</div>
<div class="pic-right"><img class="pic-border" src="Image 2" />
   <div class="attribution"><a href="/attr/2">Image 2</a></div>
</div>
Lorem ipsum dolar lorem ipsum dolar lorem ipsum dolar lorem ipsum dolar ...

  .pic-right
  {
    float: right;
    clear: left;
    margin-left: 10px;
    margin-bottom: 10px;
  }

  .pic-left
  {
    float: left;
    clear: right;
    margin-right: 10px;
    margin-bottom: 10px;
  }

  .pic-border
  {
    border: 2px solid rgb(0, 0, 0);
  }

  .attribution
  {
    margin-top: 0px;
    font-size: 8px;
  }
Any suggestions?

Last edited by Temporal; 11-12-2009 at 11:19 PM.. Reason: typo
Temporal is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-13-2009, 04:22 AM Re: Image floated left with 2nd image 'below' and floated right - need text to wrap
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
A link to the page is needed ideally

However put your right floated element before the left float in the document flow.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 11-15-2009, 01:32 PM Re: Image floated left with 2nd image 'below' and floated right - need text to wrap
Junior Talker

Posts: 2
Name: A B
Trades: 0
That did it. Cheers.
Temporal is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Image floated left with 2nd image 'below' and floated right - need text to wrap
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.54684 seconds with 12 queries