HTML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

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 August 29th, 2012, 12:59 PM
Saulsabor Saulsabor is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2012
Posts: 3 Saulsabor User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 58 m
Reputation Power: 0
Table spacing issue

i am developing an html email. to do this i used two separate tables and now there is spacing between them. i cut images to post in the tables that seems to be causing the issue. however i have tried everything i know including looking online for solutions.


SOlutions tried :
- setting the cellspacing to 0
- setting the cellpadding to 0
- setting the border to 0
- reducing the height of the table so there should no spacing between the table edge and imagg


any ideas

Reply With Quote
  #2  
Old August 29th, 2012, 01:09 PM
Saulsabor Saulsabor is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2012
Posts: 3 Saulsabor User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 58 m
Reputation Power: 0
<!DOCTYPE html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>
</head>



<body>
<center>

<!--top of email header-->
<table align="center" style="width:600px; height:243x; boarder-collapse: collapse;" cellpadding="0" cellspacing="0">
<tr valign="top">
<td> <img src="images/header1.jpg" ></td>



</tr>



</table>

<table bgcolor="#000000"height="457px" cellpadding="0" border="collapse" cellspacing="0" style="border-collapse:collapse;" >

<tr>
<td width="386px" valign="top">


</td >
<td width="214px" valign="top"><img src="images/side.jpg" > </td>



</tr>


</table>


</table>


</body>
</html>

Reply With Quote
  #3  
Old August 29th, 2012, 01:41 PM
AndrewSW's Avatar
AndrewSW AndrewSW is offline
JavaScript is not spelt java
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2011
Location: Landan, England
Posts: 743 AndrewSW User rank is First Lieutenant (10000 - 20000 Reputation Level)AndrewSW User rank is First Lieutenant (10000 - 20000 Reputation Level)AndrewSW User rank is First Lieutenant (10000 - 20000 Reputation Level)AndrewSW User rank is First Lieutenant (10000 - 20000 Reputation Level)AndrewSW User rank is First Lieutenant (10000 - 20000 Reputation Level)AndrewSW User rank is First Lieutenant (10000 - 20000 Reputation Level)AndrewSW User rank is First Lieutenant (10000 - 20000 Reputation Level)AndrewSW User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 2 Weeks 1 Day 23 h 1 m 13 sec
Reputation Power: 164
There are numerous errors in your code, including the spelling of border, an unmatched-closing table tag, use of deprecated (obsolete in HTML5) attributes (center, valign, bgcolor).

I suggest you fix these first. Validate!. Otherwise, you cannot expect it to behave.

Once you've fixed everything you should study CSS and probably remove the tables' margins.

Reply With Quote
  #4  
Old August 29th, 2012, 01:47 PM
Saulsabor Saulsabor is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2012
Posts: 3 Saulsabor User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 58 m
Reputation Power: 0
Thank you for your help and for hurting my feelings JK JK.
i corrected the errors and vailitated. thank you

so what your saying you can use table for html 5
i thought it was flexible? please elaberate

Reply With Quote
  #5  
Old August 29th, 2012, 02:03 PM
AndrewSW's Avatar
AndrewSW AndrewSW is offline
JavaScript is not spelt java
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2011
Location: Landan, England
Posts: 743 AndrewSW User rank is First Lieutenant (10000 - 20000 Reputation Level)AndrewSW User rank is First Lieutenant (10000 - 20000 Reputation Level)AndrewSW User rank is First Lieutenant (10000 - 20000 Reputation Level)AndrewSW User rank is First Lieutenant (10000 - 20000 Reputation Level)AndrewSW User rank is First Lieutenant (10000 - 20000 Reputation Level)AndrewSW User rank is First Lieutenant (10000 - 20000 Reputation Level)AndrewSW User rank is First Lieutenant (10000 - 20000 Reputation Level)AndrewSW User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 2 Weeks 1 Day 23 h 1 m 13 sec
Reputation Power: 164
Code:
<style type="text/css">
table {
    margin-top: 0;
}
</style>


is a starting point, as in this page: w3schools

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignHTML Programming > Table spacing issue

Developer Shed Advertisers and Affiliates



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 | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap