SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Addict
    Join Date
    Jul 2008
    Posts
    255
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Aligning images in a table

    Hi,
    I have a cell in a table, with 2 images, here is the HTML

    Code:
    <td><img src="logoSmall.jpg" /><img src="logoSmall1.jpg" /> </td>
    But, these appear as one on the top, and the other under it, is it possible to align them, one to the right and one to the left ?


    Thanks in advance..

  2. #2
    SitePoint Enthusiast
    Join Date
    Jun 2009
    Location
    Louisville, KY
    Posts
    46
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Why don't you break the table into 2 cells and put image 1 in the first cell and the image 2 in the 2nd cell?

  3. #3
    SitePoint Addict
    Join Date
    Jul 2008
    Posts
    255
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by ecocand View Post
    Why don't you break the table into 2 cells and put image 1 in the first cell and the image 2 in the 2nd cell?
    the problem is, I am displaying the cell borders, but I dont want to display a line between the images. Can I not display the border on the split cell?

  4. #4
    SitePoint Enthusiast
    Join Date
    Jun 2009
    Location
    Louisville, KY
    Posts
    46
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can if you set the border to "0"

  5. #5
    SitePoint Member
    Join Date
    Sep 2009
    Location
    Anchorage, Alaska
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    in your table, use this code
    <table><tr><td> xx place image one here
    </td><td> xx place second image here
    </td></tr></table>
    Last edited by Shyflower; Sep 6, 2009 at 08:49. Reason: You may link to your sites only in your signature<snip>

  6. #6
    SitePoint Enthusiast logothon's Avatar
    Join Date
    Mar 2007
    Location
    Irondequoit, NY
    Posts
    42
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    maybe try and set a width on the table cell wide enough to accommodate the 2 images.


Bookmarks

Posting Permissions

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