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
Wrapping text around a photo
Old 07-29-2008, 08:47 AM Wrapping text around a photo
Average Talker

Posts: 22
Name: Bob
Trades: 0
I’m using IE6 and Notepad 5.1

I want a photo (float: left) and words to form my header in one div that stretch 100% the width of the page.

I'm lost. I've tried for some time to wrap a paragraph around the right hand side of a photo to no avail.

I can get the general impression I’d like using two div, but I’d prefer not to have two div side by side in my header. So I've come back to preferring the text to wrap around the photo.

In this code the word 'test' sits on bottom left of photo (unsatisfactory):

<div>
<img src=”building.JPEG” class=”photo”
>test>
</div>

In this code the word 'test' sits beneath the photo (again unsatisfactory):

<div>
<img src=”building.JPEG” class=”photo”
<p>test</p>
</div>

Your suggestions will be gratefully accepted.
goodness me is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-29-2008, 09:55 AM Re: Wrapping text around a photo
Junior Talker

Posts: 4
Trades: 0
What's your CSS code? Couldn't surely determine such few provided info.
Or, try to remove it first and replace it with inline style sheet. So, it will become as below.

<div>
<img src="building.JPEG" style="float:left;">test
</div>
webadm is offline
Reply With Quote
View Public Profile Visit webadm's homepage!
 
Old 07-29-2008, 12:01 PM Re: Wrapping text around a photo
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
That's really not going to work well either. More like this:

<div>
<img style="float: left" src="building.jpg">
<p>this is my header</p>
</div>
Image will be floated left, paragraph text will sit beside the image.

Make sure you CLEAR your floats:
http://css-discuss.incutio.com/?page=ClearingSpace
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 07-29-2008, 05:24 PM Re: Wrapping text around a photo
Average Talker

Posts: 22
Name: Bob
Trades: 0
Yahoo...

Ladynred, I love yoooou. Andwebadm, thanks for having a crack at helping me out; all contributions are appreciated.

The weather here in NZ is still terrible; since my first post on this forum, we've had another weatherbomb. Worse up north though: bridges out, powerlines down, floods, cars crushed, enormous waves.
goodness me is offline
Reply With Quote
View Public Profile
 
Old 07-30-2008, 02:53 AM Re: Wrapping text around a photo
Average Talker

Posts: 22
Name: Bob
Trades: 0
I read the articles on float that you suggested Ladynred; you're right, they're worth a read - I especially liked the piece by Eric Meyer. He set everything out in such a way it was easy to visualise what's going on with float.

Many thanks.
goodness me is offline
Reply With Quote
View Public Profile
 
Old 07-30-2008, 02:58 PM Re: Wrapping text around a photo
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
You're welcome. I'm glad you found it helpful!
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Wrapping text around a photo
 

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.17173 seconds with 12 queries