Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Jan 2014
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How To Align The Text And The Image ?

    how to align the text in the image ??
    here's my code...

    Code:
    p{ padding:0 10px 0 0;}
    
        img{margin:0px; padding:0 10px 0 0; vertical-align:middle; width:95px; height:90px; }
    
        <p><img src="" alt="imgae">Micheal Jordan Lebron James dimasopil</p>
    and here's the output..some of the text when down in the image..why ?



  • #2
    New to the CF scene
    Join Date
    Jul 2010
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    increase width , text will come in the line

  • #3
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,667
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    Hello yOyie_333,
    Have a look at Image Captions made easy, maybe that will give you some ideas.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad


  •  

    Tags for this Thread

    Posting Permissions

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