Web Hosting Talk







View Full Version : Coding problems


smoove.
03-09-2005, 10:20 AM
Hi, im having 3 slight problems with alignment & positioning.
http://www.image-upload.org/pics/jpg/79dhOW
As you can see the author bit goes to the right and i cant spot anything to make it do that.

Problem Two -
The page number bit seems to be flush at the bottom of the page and i cant get it to stay in the middle.
Here's the code I've got:

<table border="0" width="600" cellspacing="4" cellpadding="4">
<tr>
<td width="100%" style="text-align:justify">
<b><font style="font-family:Verdana,Helvetica; color:#5a7edc; font-size:15;"><u>{title}</u></font></b>
</td>
</tr>
<tr>
<td width="100%" style="text-align:justify"><font style="font-family:Verdana,Helvetica; color:#000; font-size:10;"> {short-story}</font></td>
</tr>
<tr>
<td width="100%">
<table border="0" style="border-top: 1px dotted #f2f3f3" width="600" cellspacing="0">
<tr>
<td width="600"><i><font style="font-family:Verdana,Helvetica; font-size:11; color:black;">{date} by {author}</font></i> </td><td width="600" ><div align=right>
<font style="font-family:Verdana,Helvetica; font-size:11; style="text-align:justify">[full-link]Read More ...[/full-link] [com-link]comments ({comments-num})[/com-link]</font>
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br />
<hr size="5">


Problem three -
http://www.image-upload.org/pics/jpg/vFJdwY
The name field again appears to go to the right and Im not sure why.
Heres Page Comment code-

<center><table border="0" width="342" cellspacing="0" cellpadding="0">
<tr>
<td width="49" height="1">
Name:
</td>
<td width="289" height="1"><input type="text" name="name" tabindex="1"></td>
</tr>
<tr>
<td width="49" height="1">
Email:
</td>
<td width="289" height="1"> <input type="text" name="mail" tabindex="2"> (optional)</td>
</tr>
</center>
<tr>
<td width="51" height="1">

</td>
<center>
<td width="291" height="1" >
</td>
</tr>
<tr>
<td width="340" height="1" colspan="2"> <textarea cols="45" rows="7" name="comments" tabindex="3"></textarea><br />
<input type="submit" name="submit" value="Add My Comment" accesskey="s">
<input type=checkbox name=CNremember id=CNremember value=1> <label for=CNremember>Remember Me</label> |
<a href="javascript:CNforget();">Forget Me</a>
</td>
</tr>
</table>
</center>

Everything appears fine in Firefox, so its an IE problem? Any help is appreciated. Im using the cutephp blog system. My site url is http://www.stand-alone.co.uk if u need to check anything.

adaml
03-09-2005, 09:15 PM
Problem 1:
You just went straight to number 2 :eek:

Problem 2:
The code for showing the page number you didnt give us, so cant help you there.

Solved Problem 3! Works for me anyway! You have loads of invalid <center> tags!

Problem 3:

<table width="342" border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<td width="49" height="1">
<center>Name:
</td>
<td width="289" height="1"><input type="text" name="name" tabindex="1"></td>
</tr>
<tr>
<td width="49" height="1">
Email:
</td>
<td width="289" height="1"> <input type="text" name="mail" tabindex="2"> (optional)</td>
</tr>

<tr><td width="51" height="1">

</td>

<center>
<td width="291" height="1" >
</td>
</tr>
<tr>
<td width="340" height="1" colspan="2"> <textarea cols="45" rows="7" name="comments" tabindex="3"></textarea><br />
<input type="submit" name="submit" value="Add My Comment" accesskey="s">
<input type=checkbox name=CNremember id=CNremember value=1> <label for=CNremember>Remember Me</label> |
<a href="java script:CNforget();">Forget Me</a>

</td>
</tr>
</table>

smoove.
03-13-2005, 11:23 AM
Bump, anyone? Problem 3 still exists.