Results 1 to 7 of 7
  1. #1
    Join Date
    Feb 2006
    Location
    Ontario Canada
    Posts
    4,587
    Tokens
    0

    Latest Awards:

    Default Columns in html/css

    I want to make it so i can write beside an image on the right side, i would like to avoid using a table tho, i already use float left/ float right in divs, so i can do it again within a div can i?

    .:.:#14:.:. .:.: Impossible Is Nothing :.:. .:.: 845 Rep:.:.
    .:.: Stand up for what is right, even if you stand alone:.:.


  2. #2
    Join Date
    Sep 2008
    Location
    UK
    Posts
    3,670
    Tokens
    0

    Latest Awards:

    Default

    <img src="img.png" align="left"> Text here


    That will do it.
    Back for a while.

  3. #3
    Join Date
    Oct 2006
    Posts
    12,405
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Excellent2 View Post
    <img src="img.png" align="left"> Text here


    That will do it.
    And when you find the text is right up against the image, add <img src="img.png" align="left" hspace="5"> changing the 5 to whatever amount of pixels you want between the text and image. You can also apply vspace="5" to create space above and below the image .

    This is the first time I've acutally ever been able to give coding advice .
    Last edited by Black_Apalachi; 23-07-2009 at 04:26 AM.

  4. #4
    Join Date
    Aug 2008
    Location
    Surrey
    Posts
    3,111
    Tokens
    1,411

    Latest Awards:

    Default

    You beat me to it
    Jordan


  5. #5
    Join Date
    Dec 2006
    Location
    Swindon
    Posts
    3,299
    Tokens
    215
    Habbo
    dunko

    Latest Awards:

    Default

    Quote Originally Posted by Robald View Post
    And when you find the text is right up against the image, add <img src="img.png" align="left" hspace="5"> changing the 5 to whatever amount of pixels you want between the text and image. You can also apply vspace="5" to create space above and below the image .

    This is the first time I've acutally ever been able to give coding advice .
    Or you could do it the less-failing way;

    <img src="img.png" alt="Image" style="float: left; margin-right: 5px;" />

  6. #6
    Join Date
    Oct 2006
    Posts
    12,405
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Blob View Post
    Or you could do it the less-failing way;

    <img src="img.png" alt="Image" style="float: left; margin-right: 5px;" />
    I find my way easier and it's never failed on me lol.

  7. #7
    Join Date
    Oct 2005
    Location
    Melbourne, Australia
    Posts
    7,554
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Robald View Post
    I find my way easier and it's never failed on me lol.
    His way was probably xhtml or what ever.. and looks better

Posting Permissions

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