Sliced images in a table help... plz.

This is a discussion on "Sliced images in a table help... plz." within the Graphics and 3D section. This forum, and the thread "Sliced images in a table help... plz. are both part of the Design Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Graphics and 3D

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Jun 29th, 2008, 23:34
Junior Member
Join Date: Jun 2008
Location: California
Posts: 26
Thanks: 4
Thanked 0 Times in 0 Posts
Sliced images in a table help... plz.

Hi everyone,
I use GIMP to slice my images.. and when I put them in a table, the rows are fine, the columns are fine.. but I always end up with a stupid space between rows. And it's driving me nutz! If anyone can shed some light on this, I would really appreciate it. Thank you! I've attached the code I'm using below.

HTML: Select all
<table cellpadding="0" border="0" cellspacing="0" height="224" width="270">
  <tr>
    <td><img src="coit_0_0.png"  style="width: 89.5px; height: 74.5px; border-width: 0px;"></td>
    <td><img src="coit_0_1.png"  style="width: 89.5px; height: 74.5px; border-width: 0px;"></td>
    <td><img src="coit_0_2.png"  style="width: 90px; height: 74px; border-width: 0px;"></td>
</tr>
<tr>
<td><img src="coit_1_0.png"  style="width: 89.5px; height: 74.5px; border-width: 0px;"></td>
    <td><img src="coit_1_1.png"  style="width: 89.5px; height: 74.5px; border-width: 0px;"></td>
    <td><img src="coit_1_2.png"  style="width: 90px; height: 74px; border-width: 0px;"></td>
</tr>
<tr>
<td><img src="coit_2_0.png"  style="width: 89.5px; height: 74.5px; border-width: 0px;"></td>
    <td><img src="coit_2_1.png"  style="width: 89.5px; height: 74.5px; border-width: 0px;"></td>
    <td><img src="coit_2_2.png"  style="width: 90px; height: 74px; border-width: 0px;"></td>
</tr>
</table>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Jun 30th, 2008, 00:04
Reputable Member
Join Date: Mar 2008
Location: Chester, UK
Age: 18
Posts: 443
Thanks: 2
Thanked 30 Times in 30 Posts
Re: Sliced images in a table help... plz.

I would guess the half pixels are you culpret, try rounding them up.

I don't believe you can have half a pixel (which is why some fonts don't scale well).

Code: Select all
<table cellpadding="0" border="0" cellspacing="0" height="224" width="270">
  <tr>
    <td><img src="coit_0_0.png"  style="width: 89.5px; height: 74.5px; border-width: 0px;"></td>
    <td><img src="coit_0_1.png"  style="width: 89.5px; height: 74.5px; border-width: 0px;"></td>
    <td><img src="coit_0_2.png"  style="width: 90px; height: 74px; border-width: 0px;"></td>
Take that add the widths up (89.5 x 2 + 90 = 269) and the table width is 270, leaving a 1 pixel gap for whitespace.

Same with the hieght, all your .5's need to be rounded up.

PS. I may be wrong, i'm aweful with tables and it's late, but i believe if that's not the answer... it's a good starting point.

Last edited by Bocaj; Jun 30th, 2008 at 00:08.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
The Following User Says Thank You to Bocaj For This Useful Post:
  #3  
Old Jul 4th, 2008, 04:31
Junior Member
Join Date: Jun 2008
Location: California
Posts: 26
Thanks: 4
Thanked 0 Times in 0 Posts
Re: Sliced images in a table help... plz.

Unfortunately, it still didn't work. I'm wondering if perhaps the pic gets a border when it gets sliced...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Jul 4th, 2008, 13:18
Reputable Member
Join Date: Mar 2008
Location: Chester, UK
Age: 18
Posts: 443
Thanks: 2
Thanked 30 Times in 30 Posts
Re: Sliced images in a table help... plz.

Do you have a link to a page i could look at?

Would make things easier
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Jul 8th, 2008, 04:07
Junior Member
Join Date: Jun 2008
Location: California
Posts: 26
Thanks: 4
Thanked 0 Times in 0 Posts
Re: Sliced images in a table help... plz.

Hi! Thanks for the help! You can check out a test page here.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Jul 8th, 2008, 16:45
Junior Member
Join Date: Jun 2008
Location: California
Posts: 26
Thanks: 4
Thanked 0 Times in 0 Posts
Re: Sliced images in a table help... plz.

How do you like that? I went to work where we have IE7 and the sliced image looks fine. I wonder why it looks so weird in Safari and Firefox....

Does anyone know how I can make it look right in the major platforms? Thanks!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
sliced images with spaces, slicing images, tables

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Table Images not Aligning Syody Web Page Design 1 Jul 27th, 2006 07:36
Need to align width of Float table with the table below Vertabase Web Page Design 4 Mar 8th, 2006 21:21
Table backgroud images and browsers digi-phil Web Page Design 6 Jan 7th, 2006 18:48
table stretched by images beforedawn Web Page Design 5 Jan 29th, 2004 13:43


All times are GMT. The time now is 05:09.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved