iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Graphics & Design Discussion Forum Post your graphics design questions/comments/ideas in here. Ask questions, post tutorials, discuss trends and best practices. Sub-forum for website accessibility and usability.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-14-2005, 04:50 PM
WebProWorld Pro
 
Join Date: Feb 2004
Location: England Baby!
Posts: 216
icb01co2 RepRank 0
Default Text and image issue

Hi all,

Ok lets assume that we have a table like this:

<Table><tr>
<td><img src = "Someimage"></td>
<td>
Some long text paragraph
</td>
</tr>
<tr>
<td colspan="2"> rest of paragraph </td>
</tr>
</table>

Ok so the layout will be somthing like this:


http://www.pcroomhire.co.uk/layout.bmp

Ok so the text and image is dynamically inserted from a database. But i dont know how big the image is so i dont know how much text to add in the first section and how much in the bottom table row. I.e. i dont want any of the following layouts

http://www.pcroomhire.co.uk/layoutc.bmp

or

http://www.pcroomhire.co.uk/layoutb.bmp

Is there any CSS tips to make the text automatically fit the layout. Possiably by removing the table. Hope this makes sense.
Reply With Quote
  #2 (permalink)  
Old 04-14-2005, 09:17 PM
WebProWorld Pro
 
Join Date: Aug 2003
Location: California,USA
Posts: 294
drummin RepRank 0
Default

Because you won't be able to add "Space" around your picture, I put the picture in a table with padding.

<table border="0" align="left" cellpadding="10" cellspacing="0" summary="">
<tr>
<td align="left">[img]images/pic.jpg[/img]</td>
</tr>
</table>


So You Want Your Text To Wrap Around An Unknown Picture Size
Ok so the text and image is dynamically inserted from a database. But i dont know how big the image is so i dont know how much text to add in the first section and how much in the bottom table row. I.e. i dont want any of the following layouts. Ok so the text and image is dynamically inserted from a database. But i dont know how big the image is so i dont know how much text to add in the first section and how much in the bottom table row. I.e. i dont want any of the following layouts.</p>

Ok so the text and image is dynamically inserted from a database. But i dont know how big the image is so i dont know how much text to add in the first section and how much in the bottom table row. I.e. i dont want any of the following layouts</p>

I'm sure there are more "high-tech" ways to do this, but this will work.
Reply With Quote
  #3 (permalink)  
Old 04-15-2005, 12:45 PM
ADAM Web Design's Avatar
WebProWorld 1,000+ Club
 
Join Date: Dec 2003
Location: Toronto, Ontario, Canada
Posts: 2,181
ADAM Web Design RepRank 0
Default

This will also work, and probably give you what you want:

<div style="float: left; margin: 5px"> (adjust the margin based on the amount of spacing you want).

(img here)

</div>

And away you go.
Reply With Quote
Reply

  WebProWorld > Site Design > Graphics & Design Discussion Forum

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 02:05 AM.



Search Engine Optimization by vBSEO 3.3.0