Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 6 of 6
  1. #1
    Junior Member
    Join Date
    Dec 2004
    Posts
    3
    Member #
    8512
    hi, i have an image which has been cut in to seperate section, im trying to reconstruct an image onscreen using tables. when i do this the images next to each other (horizontaly) fit together without any trouble but a space is always made between the images (vertically). if i view the webpage with Firefox it come out how i want it to, if i use Win IE it doesnt, id like to work in IE primarily. i have attached 2 image showing an example of how it comes out and one of how i want it to be hopefully this will help explain what i mean as i know i havent done a very good job of it. iv also attached a html file which iv shortened to show how iv done it.
    thanks alot, hope u can help
    Attached Images Attached Images

  2.  

  3. #2
    Senior Member Eddy Bones's Avatar
    Join Date
    Jan 2004
    Location
    Washington, USA
    Posts
    1,054
    Member #
    4651
    Move the </td> tag onto the same line as the image, like such:
    <td>
    <img src="img1.gif" border="0"><img src="img2.gif" border="0"></td>
    Obviously repeat for all the table cells.

    Had this problem in the past and it took me forever to figure out. For some reason the browser puts a space in there when the tags aren't touching... :dead:

  4. #3
    Member
    Join Date
    Dec 2004
    Posts
    67
    Member #
    8452
    Liked
    1 times
    A. table's aren't the way to go. use css and just position them that way.

    B. If you must use the tables, then do it like this:
    HTML Code:
    <table cellspacing="0" cellpadding="0"><tr>
    <td><img /></td>
    <td><img /></td>
    </tr><tr>
    <td><img /></td>
    <td><img /></td>
    </tr></table>
    I'm not sure what browser eddy uses, but it shouldn't do that.
    Brian : This must be the physics department.
    Chris : That explains all the gravity.

  5. #4
    Senior Member Eddy Bones's Avatar
    Join Date
    Jan 2004
    Location
    Washington, USA
    Posts
    1,054
    Member #
    4651
    I use AOL (kill me now - family computer...) but it renders the same as IE. I know it shouldn't do that, but it does anyway. HTML is a simple language, but it can be so finicky sometimes.

  6. #5
    Member
    Join Date
    Dec 2004
    Posts
    67
    Member #
    8452
    Liked
    1 times
    lol. actually, you should rephrase that:

    HTML is a simple language, but IE screws it up.
    Brian : This must be the physics department.
    Chris : That explains all the gravity.

  7. #6
    Member
    Join Date
    Dec 2004
    Posts
    67
    Member #
    8452
    Liked
    1 times
    In CSS (i just put it in php tags because its the same format):
    PHP Code:
    img {margin0padding0;} 
    No prob,
    Squeakypants

    BTW, you don't have to privately email me. It's better if its public because others with similar problems can use it.
    Brian : This must be the physics department.
    Chris : That explains all the gravity.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 02:14 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com