PDA

View Full Version : CSS: form item tags, padding


Morgoth
03-14-2003, 04:21 PM
Hello,

I am having a problem with the space between my two form items. A Textarea, and a text box.


<textarea></textarea>
<br>
<input type="text">


If you add this code to a html document, you will see that there is a small gap between these two items.

Is it possible to remove that gap?

kansel
03-14-2003, 04:37 PM
Using the following style will get rid of the space. I don't know how widely negative margin values are supported though.

<style>
textarea { margin: -1px; }
input { margin: -1px; }
</style>

Morgoth
03-15-2003, 02:13 AM
Thank you.. it seems to be working quite well...