HTML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignHTML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 9th, 2000, 10:04 AM
kdurfee kdurfee is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2000
Posts: 4 kdurfee User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Good morning
I have a table where I'm placing individual images in each of the cells. For some reason I am getting space in between the cells so that the images don't line up correctly. I've checked that the dimensions of the table and the cells are correct and the align/valign tags are all fine. I'm using cellspacing 0 and cellpadding 0 in the <table> tag but yet am still getting this white space. This is probably easily solved but I'm new to HTML and could really use some guidance here. Thanks in advance for any and all assistance.
Kevin

Reply With Quote
  #2  
Old October 10th, 2000, 07:59 AM
bakiwop bakiwop is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2000
Posts: 11 bakiwop User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Best thing to do would be to provide a link to your code wo people here could look at it. But some things to look for: did you spell cellpadding and cellspacing properly in your table? Are the images the same size? Are the cells the same size?

Reply With Quote
  #3  
Old October 10th, 2000, 11:10 AM
kdurfee kdurfee is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2000
Posts: 4 kdurfee User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Ok thanks... here's the code. I'm using Cold Fusion Studio 4.0 for editing and letting it take care of the syntax so I don't think cellpadding / cellspacing are misspelled, still...

<table width="680" border="0" cellspacing="0" cellpadding="0" align="CENTER" valign="MIDDLE" nowrap>
<!--- Start Row 1 600 wide for Logoname & Location in Site --->
<tr align="middle">
<td width="680" align="middle" valign="center">
<img src="../images/headerimage.gif" width=680 height=120 border=0 alt="">
<!--- <img src="../images/vertspacer120x1.gif" width=1 height=120 border=0 align="left" alt=""> --->
</td>

</tr>
<!--- End Row 1 --->
<!--- End Header Table--->
</table>

<table width="680" border="0" cellspacing="0" cellpadding="0" align="CENTER" valign="MIDDLE">
<!--- Start Row 1 160 wide for Navigation--->
<tr align="LEFT" valign="TOP">

<!-- R1C1-->
<td align="LEFT" valign="BOTTOM" nowrap>
<A href="index.asp" onmouseout="inact('home')" onmouseover="act('home')"><img src="../images/home_off.gif" name=home width=160 height=20 border=0 alt="" align="left"></a>
</td>

<!-- R1C2-->
<td align="LEFT" valign="BOTTOM" nowrap>
<img src="../images/navcurvetop.gif" width=80 height=20 border=0 alt="" align="left">
</td>

<!-- R1C3-->
<td width="440" align="middle" valign="center">

</td>
</tr>
<!-- End ROW 1-->

<!--Begin ROW2-->
<tr align="LEFT">

<!-- R2C1-->
<td width="160" align="LEFT" valign="BOTTOM" nowrap>
<A href="labinfo.asp" onmouseout="inact('labinfo')" onmouseover="act('labinfo')"><img src="../images/labinfo_off.gif" name=labinfo width=160 height=20 border=0 alt="" align="left"></a>
</td>

<!-- R2C2-->
<td width="80" align="LEFT" valign="BOTTOM" nowrap>
<img src="../images/navcurvemid.gif" width=80 height=20 border=0 alt="" align="left">
</td>

<!-- R2C3-->
<td width="440" align="middle" valign="center">

</td>
</tr>
<!-- End ROW 2-->

<!--Begin ROW3-->
<tr align="left">

<!-- R3C1-->
<td width="160" align="LEFT" valign="BOTTOM" nowrap>
<A href="safety.asp" onmouseout="inact('safety')" onmouseover="act('safety')"><img src="../images/safety_off.gif" name=safety width=160 height=20 border=0 alt="" align="left"></a>
</td>

<!-- R3C2-->
<td width="80" align="LEFT" valign="BOTTOM" nowrap>
<img src="../images/navcurvebot.gif" width=80 height=20 border=0 alt="" align="left">
</td>

<!-- R3C3-->
<td width="440" align="middle" valign="center">

</td>
</tr>
<!-- End ROW 3-->

Reply With Quote
  #4  
Old October 10th, 2000, 11:16 AM
kdurfee kdurfee is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2000
Posts: 4 kdurfee User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
This would've been easier... sorry for the spam:
http://www.microbia.com/test/htdocs/indextest.html

Thanks for any and all guidance...
Kevin

Reply With Quote
  #5  
Old October 10th, 2000, 01:31 PM
bramsey bramsey is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2000
Location: USA
Posts: 226 bramsey User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 40 m 35 sec
Reputation Power: 9
Valign your top image to the bottom and your other images to the top.

Also specify widths for all of your table cells. Use the widths of the images to do this.

That should fix it.

Reply With Quote
  #6  
Old October 10th, 2000, 02:48 PM
kdurfee kdurfee is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2000
Posts: 4 kdurfee User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I've resolved it. I just needed to add hspace=0 and vspace=0 to all the image tags and it aligned correctly. Thanks for the suggestions...

Kevin

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignHTML Programming > CELLPADDING / SPACING ???


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT