HTML Tutorial


 /help/HTML Help Forum   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
New at slicing
Post new topic   Reply to topic    HTML Help Forum -> Images & Graphics
View previous topic :: View next topic  
Author Message
river



Joined: 01 Apr 2008
Posts: 4

PostPosted: Wed Apr 02, 2008 12:16 am     New at slicing Reply with quote

Hi,

I just joined, nice forum.

I've just started learning about slicing picture for web building. I started by coping some ready made templates, but would like to be more independent.

I've changed pictures the same size with-in the template and that has gone over fine.

The problem that I have not been able to over come over the last couple of hours is when I try from scratch, I am getting a space between pictures above and below. I can't seem to find the extra space in the code.




Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8748
Location: Castle Pines North, CO USA

PostPosted: Wed Apr 02, 2008 5:36 am     Reply with quote

See if adding
Code:
<style type="text/css">
table
{
   border-collapse:collapse
}
</style>
will help with those borders. Make sure you have cellpadding / cellspacing as well set to zero.

_________________
Corey
Toll Free Fax Numbers | Yahoo Merchant Account
river



Joined: 01 Apr 2008
Posts: 4

PostPosted: Wed Apr 02, 2008 10:40 am     Reply with quote

This is the the code for the page with the breaks in the picture. I tried fitting in the code that you showed, but, didn't see any change.
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
  <link href="css/styles.css" rel="stylesheet"
 type="text/css">
  <meta http-equiv="content-type"
 content="text/html; charset=ISO-8859-1">
  <title>slice test</title>
</head>
<body leftmargin="0" topmargin="0"
 onload="preloadImages();"
 style="background-color: rgb(255, 255, 255);" marginheight="0"
 marginwidth="0">
<center><!-- ImageReady Slices (index.psd) -->
<table border="0" cellpadding="0" cellspacing="0"
 width="775">
  <tbody>
    <tr>
      <td><img style="width: 776px; height: 165px;"
 alt="" src="../slice%20test/top_1.gif"></td>
    </tr>
    <tr>
      <td><img style="width: 775px; height: 171px;"
 alt="top 2"
 src=".../template063.ZIP_FILES/slice%20test/top_2.gif"></td>
    </tr>
    <tr>
      <td><img style="width: 775px; height: 48px;"
 alt="top3"
 src=".../template063.ZIP_FILES/slice%20test/top3.gif"></td>
    </tr>
    <tr>
      <td><img style="width: 775px; height: 36px;"
 alt="tt"
 src=".../template063.ZIP_FILES/slice%20test/top-3.gif"></td>
    </tr>
    <tr>
      <td><img style="width: 775px; height: 272px;"
 alt="top 4"
 src=".../template063.ZIP_FILES/slice%20test/top_4.gif"></td>
    </tr>
    <tr>
      <td></td>
    </tr>
  </tbody>
</table>
<br>
</center>
</body>
</html>
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8748
Location: Castle Pines North, CO USA

PostPosted: Wed Apr 02, 2008 1:54 pm     Reply with quote

You might also consider getting rid of the 'white space' if you are viewing in Internet Explorer.

For example, you have
Code:
      <td><img style="width: 775px; height: 171px;"
 alt="top 2"
 src=".../template063.ZIP_FILES/slice%20test/top_2.gif"></td>
    </tr>
try using
Code:
<td><img style="width: 775px; height: 171px;" alt="top 2" src=".../template063.ZIP_FILES/slice%20test/top_2.gif"></td>
Internet Explorer sometimes picks this up.

_________________
Corey
Payment Processing Forums | Mile High Merchant Accounts | Microsoft Expression Web Blog
river



Joined: 01 Apr 2008
Posts: 4

PostPosted: Wed Apr 02, 2008 10:06 pm     Reply with quote

Thanks,

I tried that, no change. I am viewing in Firefox. (Haven't even got to the stage where I'd check to see how it looks in IE).
river



Joined: 01 Apr 2008
Posts: 4

PostPosted: Tue Apr 22, 2008 4:17 am     Reply with quote

Still stuck with this.
Straystudio



Joined: 14 Apr 2008
Posts: 297
Location: Nord Italy

PostPosted: Tue Apr 22, 2008 1:28 pm     Reply with quote

I second Corey's advice about white spaces' when handling img tag.
If line has to get interrupted, better:

<td><img
src=""/></td>

than:

<td>
<img src=""/>
</td>


You could assign 'tightening' height="10" to the table element.
You colud enter border="0" with img tag.

You could send us an image's full URL so to verify if kind of margin/border/space would be alredy embeded in the image itself ....

But if You change the opening declaration into :

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

it will solve the problem ...

Enzo
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum -> Images & Graphics All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
DARFUR
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial