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
    Senior Coder o0O0o.o0O0o's Avatar
    Join Date
    Jan 2008
    Location
    C:\Windows\System32
    Posts
    1,018
    Thanks
    19
    Thanked 9 Times in 9 Posts

    align the image with text

    i have
    Code:
    <li> name:  <img ...>
    </li>

    The image always appear little bit higher.
    How to fix that
    Please de-reputate me
    © 0o0o0o0

    Its better to rule in Hell then to serve in Heaven

  • #2
    New Coder
    Join Date
    Dec 2006
    Posts
    20
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Have you tried <img ... align="absmiddle"> or "middle"?

  • #3
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,863
    Thanks
    160
    Thanked 2,224 Times in 2,211 Posts
    Try
    Code:
    li img{
    vertical-align:bottom;
    /* or vertical-align:middle;*/
    }
    Last edited by abduraooft; 06-12-2009 at 08:58 AM.
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)


  •  

    Posting Permissions

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