Congratulations to AcaCandy on her 100,000th post!
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
acer black screen blue screen boot bsod computer connection crash css dell driver drivers email error ethernet excel firefox firefox 3 hard drive internet internet explorer itunes laptop linux malware monitor motherboard network networking outlook outlook 2003 outlook 2007 outlook express partition password printer problem router slow software sound spyware trojan usb video virus vista windows windows xp wireless
Web Design & Development
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Internet & Networking > Web Design & Development >
To much space?


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
cnelson04's Avatar
Senior Member with 898 posts.
 
Join Date: Dec 2003
09-Feb-2006, 06:30 AM #1
To much space?
hey guys, could someone help me out? if you look at www.visionstudios.be/pstuts.php there is to much space between "comments to date: xx" and the other words, how can i fix this? here the code;

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<table width="550" height="88" border="0" cellpadding="2" cellspacing="0">
<tr>
<td width="80" align="center" valign="middle"><div align="center"><a href="http://www.visionstudios.be/tracker/tracker.php?id=1"><img src="images/tuts/diagonal/thumb.gif" width="48" height="48" border="0" align="top"></a></div></td>
<td width="466" align="center" valign="middle"><div align="left">
Difficutly: Easy<br>
Time: 5 Minutes<br>
Author: Cnelson<br>
Description: Learn to make a nice diagonal pattern, and apply it to a image.<br>
<?
include ("tracker/connect.php");
$result = mysql_query("SELECT * FROM links where id=1");
while($row = mysql_fetch_array($result)) {
print 'This tutorial has been viewed '.$row[visits].' times. ';
}
?>
<?
$page_id = "2";
include("comments/comments_show1.php");
?>

</div></td>
</tr>
</table>
</body>
</html>

thanks. cnelson.
cnelson04's Avatar
Senior Member with 898 posts.
 
Join Date: Dec 2003
09-Feb-2006, 01:33 PM #2
can anyone help?
treydx's Avatar
Senior Member with 112 posts.
 
Join Date: Jan 2006
Experience: Intermediate
09-Feb-2006, 03:53 PM #3
take out the line breaks between your php tags.
Description: Learn to make a nice diagonal pattern, and apply it to a image.<br>
<?
include ("tracker/connect.php");
$result = mysql_query("SELECT * FROM links where id=1");
while($row = mysql_fetch_array($result)) {
print 'This tutorial has been viewed '.$row[visits].' times. ';
}

//this was a line break//

$page_id = "2";
include("comments/comments_show1.php");
?>

You can also eliminate the whitespace out of your include file if there is any

Oh, nevermind, it's not whitespace. It's the fact that your statement is in paragraph tags.
<p style=''>Comments to date: 1</p>
just decrease the margins in that blank style attribute.

By the way, your HTML is shot to hell. Do a view-source and you've got MULTIPLE <html> tags and doctypes in the middle of your pages and head tags where they shouldn't be and and and and...
what happened?!?!??

Last edited by treydx : 09-Feb-2006 04:03 PM.
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who help people like you solve computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 11:28 PM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.