Jump to content
  • Advertisement
Sign in to follow this  
doctorhair1

[web] WHATIS UP WITH HTML FORMS!!!!!!

This topic is 4412 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Why is it everytime you enter a <form></form> tag it automatically expands your cell downward and breaks up your images, it makes me want to go insane. What idiot thought of that when programming the HTML language. O hey I know! let's expand the cells to add more hours of headaches! /rant Anyone know how to make forms not add height to a cell of a table? It's breaking up my images. Thanks.

Share this post


Link to post
Share on other sites
Advertisement
if you put the form tags inside of a table <td> element it doesn't add the extra padding. that's how we used to solve it when i was a web monkey. might be higher-tech ways to do it now.

-me

Share this post


Link to post
Share on other sites
try doing
<form action='form.html' method='post' style='display: inline;'>

Share this post


Link to post
Share on other sites
Most browsers give forms default paddings or margins. Just add this rule to your CSS file:

<style type="text/css">
form { margin: 0; padding: 0; }
</style>

Share this post


Link to post
Share on other sites
Quote:
Original post by konForce
Most browsers give forms default paddings or margins. Just add this rule to your CSS file:
*** Source Snippet Removed ***
0 what? Bananas? Elephants? Telephones? [wink] Always specify units!
form {
margin: 0px;
padding: 0px;
}

Share this post


Link to post
Share on other sites
Quote:
Original post by benryves
Quote:
Original post by konForce
Most browsers give forms default paddings or margins. Just add this rule to your CSS file:
*** Source Snippet Removed ***
0 what? Bananas? Elephants? Telephones?


yes we have 0 Bananas

Share this post


Link to post
Share on other sites
Quote:

<tr>
<form>
<td>
</td>
</form>
</tr>

That's bad HTML. Use CSS.

Quote:
Always specify units!

It is unnecessary when the value is 0.

Quote:
4.3.2 Lengths

Lengths refer to horizontal or vertical measurements.

The format of a length value (denoted by <length> in this specification) is a <number> (with or without a decimal point) immediately followed by a unit identifier (e.g., px, em, etc.). After a zero length, the unit identifier is optional.

Emphasis mine.

Share this post


Link to post
Share on other sites
Quote:
Original post by konForce
Quote:

<tr>
<form>
<td>
</td>
</form>
</tr>

That's bad HTML. Use CSS.


True, but I figure if he is building a page using tables then some of the more advanced CSS stuff (block vs. inline, etc) might currently be beyond his level of understanding.

Share this post


Link to post
Share on other sites
Quote:
Original post by konForce
Quote:
Always specify units!

It is unnecessary when the value is 0.

Quoted for truth.

0px == 0pt == 0% == 0 bananas.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!