Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-15-2007, 09:01 PM   PM User | #1
phill_ridout
Regular Coder

 
Join Date: Mar 2006
Posts: 187
Thanks: 5
Thanked 0 Times in 0 Posts
phill_ridout is an unknown quantity at this point
Left floating

how do i float an image left, and get the text to flow arround it, with out any lower text being pulled up if the text to flow arround the image takes up less height than the image its self? Thanks
phill_ridout is offline   Reply With Quote
Old 07-15-2007, 11:24 PM   PM User | #2
TsNMouse
New to the CF scene

 
Join Date: Jul 2007
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
TsNMouse is an unknown quantity at this point
Easiest way to do it would be to cheat, and separate the lower text.

<p><img class="left" src="" alt="" /> INSERT TEXT HERE</p>

<p>This way you will at least get a guarenteed gap into the next bit of content</p>

Its hard to really give advice on it though, without seeing what you are trying to achieve. I'm pretty new, but will try to help as I can.

Mouse

EDIT - Added my CSS babble for left floated images - Might be handy to pull apart and bugger around with.

p img.left {
float: left;
margin: 0 9px 0 0;
border: 1px solid
}

p img.right {
float: right;
margin: 0 0 0 9px;
border: 1px solid

Margins are so Text doesn't hug the picture
TsNMouse is offline   Reply With Quote
Old 07-16-2007, 03:38 AM   PM User | #3
jlhaslip
Regular Coder

 
Join Date: Feb 2007
Location: Canada
Posts: 924
Thanks: 10
Thanked 56 Times in 55 Posts
jlhaslip is on a distinguished road
It would be best if you posted the code you are working with, but if I understand correctly, you would need to set clear:both on the lower text, maybe???

Code:
.content_main {
clear:both;
margin-top:2em;
}
Something like this???

Post an image or your code please. It will assist us in assisting you.

Last edited by jlhaslip; 07-16-2007 at 03:46 AM..
jlhaslip is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 02:43 PM.


Advertisement
Log in to turn off these ads.