img align="left" CSS Replacement

Discussion in 'CSS' started by matthewbeckman, Mar 4, 2008.

  1. #1
    I currently have this in the HTML

    <img href="img/image.jpg" alt="image" align="left">
    Code (markup):
    It has it's own CSS class, but I can't find the right property to get it to replicate what the HTML does, I need all text to line up to the right of it.

    Thanks for the help. :rolleyes:
     
    matthewbeckman, Mar 4, 2008 IP
  2. shallowink

    shallowink Well-Known Member

    Messages:
    1,218
    Likes Received:
    64
    Best Answers:
    2
    Trophy Points:
    150
    #2
    Just put it as float:left. If you mean:

    Text goes here
    And here so on
     
    shallowink, Mar 4, 2008 IP
  3. CanaryWoolf

    CanaryWoolf Peon

    Messages:
    114
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    <img class="left" src="images/image.jpg" alt="image" />
    Code (markup):
    then the css could be:

    
    img.left {float:left; margin:0 -2px; padding:1px; border:0px;}
    
    Code (markup):
    CW
     
    CanaryWoolf, Mar 4, 2008 IP
  4. matthewbeckman

    matthewbeckman Peon

    Messages:
    140
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Hmm it was breaking at the end of the text tag when I had it float left, but something I did in the past thirty minutes must have fixed it, thanks!
     
    matthewbeckman, Mar 4, 2008 IP
  5. dapper

    dapper Active Member

    Messages:
    173
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #5

    Please share here what you have done. I have the same problem.
     
    dapper, Feb 23, 2011 IP