Forum Moderators: open

Message Too Old, No Replies

Problems adding "site search" box to my masthead

IE adds pixels below text input box

         

mistah

1:30 pm on Mar 16, 2005 (gmt 0)

10+ Year Member



I'm designing a new masthead for a website and have left a space (42 x 352 pixels) to put a text entry box for a website search engine.

Whenever I add an input box for the search text Internet Explorer seems to add several pixels below the search box - which completely messes up my design.

The problem does not appear when the site is rendered using Firefox. In fact, a similar thing happens on the main page of Webmasterworld (try looking at the Webmasterworld weekly subscribe box in the top righthand corner in Firefox and Internet Explorer).

As 95% of people are going to view the site using IE, I need to sort the problem out.

I imagine that IE just adds some sort of padding by default. If so, is it possible to turn it off? e.g. using CSS?

tedster

4:41 am on Mar 17, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I assume this input is within a form element - I would try <form style="margin:0;padding;0}