Re: is there an alternative to this code?
| From: | Lowell Allen | Date: | Tue, 08 Oct 2002 13:49:00 +0000 |
| Subject: | Re: is there an alternative to this code? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-119257@lists.php.net to get a copy of this message | ||
> From: "Jeff Bluemel" <jeff@domintcom.com>
>
[snip]
>
> I have the following table... the button that originates from a form is out
> of alighnment, and sits higher then the rest. how do I solve this?
>
> <TD><a href="main.phtml" target="_top"><IMG
> SRC="images/home-bttn.jpg"
> border="0"></a></TD>
> <TD>
> <form action="<?=$PHP_SELF?><?if($QUERY_STRING){ echo"?".
> $QUERY_STRING;}?>" method="POST">
> <input type="image" src="images/cs-bttn.jpg" value="Customer
> Service"
> name="CS" >
> </form>
> </TD>
> <TD><IMG src="images/rating-bttn.jpg"></TD>
> <TD><IMG src="images/batch-bttn.jpg"></TD>
> <TD><IMG src="images/admin-bttn.jpg"></TD>
> <TD><a href="logoff.php" target="_top"><IMG
> src="images/logoff-bttn.jpg"
> border="0"></a></TD>
>
Forms are displayed as block elements by default, which adds top and bottom
space. To make a form display as an inline element, add this within the form
tag:
STYLE="display: inline;"
A previous post recommended doing something similar by setting HSPACE and
VSPACE to zero, but be aware that both HSPACE and VSPACE are deprecated in
HTML 4.
--
Lowell Allen