Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:07

space when a form is included


Poster: noicenotea
Dated: Wednesday October 6 2004 - 8:09:45 BST

hello,
i have a form on main menu (defined itemheight=20) with a simple form wightin <input type=text size=10>. the problem is the form adds some unwanted linespaces(one simple line i think) and ive tried so much but i cant get rid of it.
i hope somone could help

thanks in advance

noice


Poster: Maz
Dated: Wednesday October 6 2004 - 9:06:09 BST

Forms usually do different things in different browsers, did you check another browser?

The only thing I can think of is the font size would change the size of it.

maz


Poster: Ruth
Dated: Wednesday October 6 2004 - 10:01:58 BST

A link to the page or a test page would help a lot so we can see what's happening and the coding.

Ruth


Poster: noicenotea
Dated: Wednesday October 6 2004 - 11:50:30 BST

ok, font size dindt help - i tried before
icreate some test stuff ;)
here you are :

the page should look like this:
http://home.arcor.de/philipp-trost/milo ... p_glas.gif

that it doestnt you can see here:
http://home.arcor.de/philipp-trost/milo ... t/menu.htm

the code:
http://home.arcor.de/philipp-trost/milo ... u_data.txt

regards noice


Poster: Andy
Dated: Wednesday October 6 2004 - 12:06:41 BST

Hi,

Try adding this to your <FORM> style.

margin:0px;

Stoopid IE keeps adding white space for the form object.

-- Andy


Poster: noicenotea
Dated: Wednesday October 6 2004 - 12:54:46 BST

it works

thankyou andy :)


Poster: perldev
Dated: Wednesday October 6 2004 - 20:55:04 BST

But when you set <FORM ... style=`margin:5px 0px 0px 5px`..>, it will affect the other menu items in FireFox or Mozilla.


Poster: perldev
Dated: Wednesday October 6 2004 - 20:58:46 BST

Opera 7.51 Build 3798 (win32) has same issue when margin-top > 0px; it seems that the rest menu items will inherit the top property.


Poster: Maz
Dated: Thursday October 7 2004 - 7:24:44 BST

Did you try putting margin in global style? Oops sorry, you have form with other menu items. How about 0 without px?

Now I'm confused, you don't want margin-top. margin:5px 0 0 5px;
I remember some confusion about browsers using px or not.

maz