Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 5 of 5

Thread: Wrapping text

  1. #1
    Senior Member whippetkid's Avatar
    Join Date
    May 2010
    Location
    Scotland
    Posts
    123
    Member #
    22044
    Hi,
    Being new to css I was wondering if somebody could help. I wish to have the text above and to the right which wraps round the image that is aligned to the left rather than push it down, I am using tables as it is going to be an HTML e-mail and don't know what code to use.

    Here is the code if anyone can help:




    <td width="600" height="400">text
    <table width="240">
    <tr>
    <td><img src="ultra_test.jpg" width="240" height="320" /></td>
    </tr>
    </table></td>

    Many thanks

  2.  

  3. #2
    WDF Staff AlphaMare's Avatar
    Join Date
    Oct 2009
    Location
    Montreal, Canada
    Posts
    4,570
    Member #
    20277
    Liked
    878 times
    WOW - that's pretty wonky - you have a data cell outside your table?
    You're going to have to merge some cells (colspan) to get the effect you want. Either that or nest a few tables.

    Merged cells is easier, so first try it like this:

    <table width="640" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td colspan="3" width="640">&nbsp;</td>
    </tr>
    <tr>
    <td width="240"><img src="image.jpg" width="240" height="320" alt="image here" /></td>
    <td width="400" colspan="2">&nbsp;</td>
    </tr>
    <tr>
    <td colspan="3" width="640">&nbsp;</td>
    </tr>
    </table>

    Notice that the width of each cell has been specified as well as the width of the whole table.
    Good design should never say "Look at me!"
    It should say "Look at this." ~ David Craib


    http://digitalinsite.ca ~ my current site . . info@digitalinsite.ca ~ my email

    If you feel that someone's post helped you fix your problem, answered your question, or just made you feel better, feel free to "Like" their post. The "Like" link is at the bottom right of each post, along side the "reply" link. And if you are being helped here, try to help someone else - pass it on!

  4. #3
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,485
    Member #
    425
    Liked
    2783 times
    You could also get away with a div with inline styles here.
    Code:
    <td width="600" height="400">
    <div align="left" style="float:  left;  width:  240px;  margin:  0 20px 20px 0;"> <!-- you want a right and bottom margin here because your text will collide with the graphic otherwise.  I've found that using both align and float covers all bases.  It's overkill, but at least it works.   //-->
    <table width="240">
     <tr>
     <td><img src="ultra_test.jpg" width="240" height="320" /></td>
     </tr>
     </table>
    </div>
    Put your text here.  It should float to the right of, and below, the image if it's long enough.
    <div style="clear:  left;"></div>
    </td>
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)

  5. #4
    WDF Staff AlphaMare's Avatar
    Join Date
    Oct 2009
    Location
    Montreal, Canada
    Posts
    4,570
    Member #
    20277
    Liked
    878 times
    Game - I think he's talking about HTML e-mail - this corresponds to another post made by the OP in the Photoshop forum. I may have misunderstood, however, since I read the two posts one right after the other, and for a straight web page what you have posted would work very well.
    Good design should never say "Look at me!"
    It should say "Look at this." ~ David Craib


    http://digitalinsite.ca ~ my current site . . info@digitalinsite.ca ~ my email

    If you feel that someone's post helped you fix your problem, answered your question, or just made you feel better, feel free to "Like" their post. The "Like" link is at the bottom right of each post, along side the "reply" link. And if you are being helped here, try to help someone else - pass it on!

  6. #5
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,485
    Member #
    425
    Liked
    2783 times
    That's how I read it too.

    You can actually use divs in HTML email...very, very sparingly. This would be one of those cases.
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 10:19 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com