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
    Oct 2004
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    problem removing the gap between 2 images

    i have problem in removing the gap between two images, pls see the attached image.

    coz my item name is quite long, i dun wnat it display in horizontal, i want it display as vertical. so i create the images for the character and use ascii to recognized it.

    my code is as below:
    <td align="left" class="BorderLeft" width="1%">
    <%dim word, pic, word1
    word = "AAAAABABABBA"
    pic = ""
    for i = 0 to len(word)-1
    word1 = cstr(right(left(word,len(word)-i),1))
    pic = asc(word1) & ".gif"%>
    <img src="../images/<%=pic%>" border=1 vspace=0 hspace=0>
    <%next%>

    </td>

    can anyone help??
    Thanks
    Attached Thumbnails Attached Thumbnails problem removing the gap between 2 images-img.jpg  

  • #2
    New Coder
    Join Date
    Aug 2004
    Posts
    44
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Since you're in a <td> element, try adding valign="top" or valign="botom" (to squish them all up or down) to the <td>

    Code:
    <td align="left" valign="top" class="BorderLeft" width="1%">
    You might also try adding vertical-align: top; or vertical-align: bottom; to the BorderLeft class in your stylesheet.

  • #3
    Senior Coder
    Join Date
    Aug 2002
    Location
    UK
    Posts
    2,789
    Thanks
    2
    Thanked 14 Times in 14 Posts
    You could also try adding the margin attributes such as margin-top and give it a negative number, try 4 first and see how it goes

    margin-top: -4;
    margin-right: -4;
    margin-bottom: -4;
    margin-left: -4;
    The silent one.

    The most dangerous thing in the world is an idea.
    The most dangerous person in the world is the one with an idea.


  •  

    Posting Permissions

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