/    Sign up×
Community /Pin to ProfileBookmark

Form in a table, valign bottom problem

I have a form inside a part of a table. I want it to valign bottom, but there is a phantom space at the bottom.
Here is the code:

[QUOTE]

<?php
$name = “a name”;
$address = “an address”;
$city = “some city”;
$phone = “1 800 123 1234”
?>

<table border=”1″ width=”450″><tr><td>

<table border=”1″ width=”150″>
<tr><td><?php echo $name; ?> </td></tr>
<tr><td><?php echo $address; ?> </td></tr>
<tr><td><?php echo $city; ?> </td></tr>
<tr><td><?php echo $phone; ?> </td></tr>
</table>

</td><td width=”300″ valign=”bottom”>
<!– Edit Customer –>
<form method=”post” action=”<?php $_SERVER[PHP_SELF]; ?>”>

<input type=”hidden” name=”customer_selected” value=”1″>
<input type=”hidden” name=”sel_id” value=”<?php echo $_POST[sel_id]; ?>”>
<input type=”hidden” name=”edit_customer” value=”1″>

<input type=”submit” value=”Edit Customer”>

</form>

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

[/QUOTE]

Here’s what it looks like:
[URL=”http://www.2-jsconstruction.com/testfolder/align_prob.php”]valign_problem[/URL]

to post a comment
HTML

5 Comments(s)

Copy linkTweet thisAlerts:
@FangJan 24.2007 — &lt;form [COLOR="SeaGreen"]style="margin:0;"[/COLOR] method="post" action="&lt;?php $_SERVER[PHP_SELF]; ?&gt;"&gt;
Copy linkTweet thisAlerts:
@anothenauthorJan 24.2007 — Ahh, so it's a margin thing, thanks I'll give it a try.
Copy linkTweet thisAlerts:
@anothenauthorJan 24.2007 — YAAY! it works! Thanks.

I just started learning styles and stylesheets so I'm just now getting a grasp.

I didn't realize till this thread that you can put a style right in an element like that. Cool, now I'll quite probably go to town with it.
Copy linkTweet thisAlerts:
@FangJan 24.2007 — That is one way of adding styles, but using an external style sheet is better.

http://www.maxdesign.com.au/presentation/benefits/index07.htm
Copy linkTweet thisAlerts:
@anothenauthorJan 24.2007 — Yup, once I learned how I started using external stylesheets.
×

Success!

Help @anothen spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.21,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...