Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: text alignment

  1. #1
    Join Date
    Dec 2008
    Location
    Cornwall UK
    Posts
    5
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Default text alignment

    I am at last able to paste up jpeg and gifs from a small camera to my website. I position these pictures using CSS. I cannot get the text to align around the picture. It leaves a big blank gap alongside the picture. Help please?

  2. #2
    Join Date
    Dec 2008
    Location
    Nigeria
    Posts
    95
    Thanks
    3
    Thanked 8 Times in 8 Posts

    Default

    One solution to do that is by using a table like this:
    <table>
    <tr>
    <td><img src="foolish.picture.jpg"></td>
    <td>My Text</td>
    </tr>
    </table>
    And if u are still having problems, please let me know, i may give u some php code to trim or crop your picture automatically
    like <img src="php/image.php?source=foolish.picture.jpg"> or something like that....

  3. The Following User Says Thank You to diltony For This Useful Post:

    fredsampson (12-20-2008)

  4. #3
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    Try floating the image and the text in separate div's. I could be more specific with code or a link. Also try the css forum.

  5. The Following User Says Thank You to bluewalrus For This Useful Post:

    fredsampson (12-20-2008)

  6. #4
    Join Date
    Sep 2008
    Location
    Bristol - UK
    Posts
    842
    Thanks
    32
    Thanked 132 Times in 131 Posts

    Default

    Please for the love of web design avoid tables... (unless you're displaying tabular data) use CSS like bluewalrus has said, to be more specific - something like this:

    Code:
    CSS:
    .lefty{
    float:left;
    margin-right:10px;
    }
    
    
    HTML:
    <img src="images/yourimage.jpg" alt="myimage" class="lefty"/>
    Here is my text bla bla bla
    Here is my text bla bla bla
    Here is my text bla bla bla
    Here is my text bla bla bla
    Here is my text bla bla bla
    Then adjust the margins to your needs.

  7. #5
    Join Date
    Dec 2008
    Location
    Cornwall UK
    Posts
    5
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Red face Text Alignment

    I apologies for not making my requirement very clear but when using WORD I type my pages of text and when and as is required I insert a picture from file and then format the text in the text alignement box and get it (the text ) to wrap in many different ways around or besides the jpeg. I now want to do this using CSS so maybe I am in the wrong forum and should move over to the one dealing with CSS. I have attempted your reply without success.

  8. #6
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    Post your code or a link here or in the css one.

  9. #7
    Join Date
    Dec 2008
    Location
    Cornwall UK
    Posts
    5
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Exclamation

    Thank you - here it is...

    http://www.fredsampson.co.uk/aa-repo...ub13dec08.html

    - here it is

  10. #8
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    I put a float left in the image tag itself. You should really consider not using word for coding.
    Code:
    <img src="SuzyBerry.jpg" width=520 height=390 border=0  alt="SuzyBerry" style="float:left;">

  11. The Following User Says Thank You to bluewalrus For This Useful Post:

    fredsampson (12-21-2008)

  12. #9
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Yes, Word is not a web-design application (not that it would be much better if it were). You should learn to write pages yourself — it's not difficult, and will give you greatly superior pages.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  13. The Following User Says Thank You to Twey For This Useful Post:

    fredsampson (12-21-2008)

  14. #10
    Join Date
    Dec 2008
    Location
    Cornwall UK
    Posts
    5
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Red face Text Alignment/WORD

    Sorry to confuse yet again but I certainly dont use WORD to code anything. I prepare my written text in WORD then use MS Front Page/Amiasoft SiteAid and Terrapin FTP to get my pages to my host 'Fasthosts' and onto my website www.fredsampson.co.uk. Thank you for your help and it was the 'float' attribute that I was looking for.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •