Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Styling Form elements in NS4

Status
Not open for further replies.

PaddyWho

Programmer
May 8, 2002
6
GB
I have created a search box in the top left area of my left nav bar. I have applied the following styles to the form to restrict its 'bulking' of height and breaking the design and this seems to do the trick in IE and NS6.
Code:
<style>form {margin:0;padding:0;}
</style>
However, in NS4 there is additional height forced at the end of the search box of about 20px. I had read that NS4 will add additonal space around form elements by default, but can be 'tricked' into not doing so by wrapping of form elements in <div> tags. I have yet to find an effective way of doing this. Any NS4 tamers in the house?
 
Why not wrap the whole form element (or form) in a <div></div> tag and call that div name in the <style>??
Like this:

<style>#formtags {margin:0;padding:0;}</style>

and call the form like this:

<div id=&quot;formtags&quot;>
<form name=&quot;form&quot;>
...
...
</form></div>

I have not failed; I merely found 100,000 different ways of not succeding...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top