space when a form is included

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
noicenotea
Advanced
Advanced
Posts: 25
Joined: Wed Oct 06, 2004 7:55 am
Contact:

space when a form is included

Post by noicenotea »

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
User avatar
Maz
Milonic God
Milonic God
Posts: 1717
Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:

Post by Maz »

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
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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

Ruth
noicenotea
Advanced
Advanced
Posts: 25
Joined: Wed Oct 06, 2004 7:55 am
Contact:

Post by noicenotea »

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
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

Hi,

Try adding this to your <FORM> style.

margin:0px;

Stoopid IE keeps adding white space for the form object.

-- Andy
noicenotea
Advanced
Advanced
Posts: 25
Joined: Wed Oct 06, 2004 7:55 am
Contact:

Post by noicenotea »

it works

thankyou andy :)
perldev
Mega User
Mega User
Posts: 115
Joined: Thu Aug 26, 2004 5:23 pm
Location: Chicago

Post by perldev »

But when you set <FORM ... style=`margin:5px 0px 0px 5px`..>, it will affect the other menu items in FireFox or Mozilla.
perldev
Mega User
Mega User
Posts: 115
Joined: Thu Aug 26, 2004 5:23 pm
Location: Chicago

Post by perldev »

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.
User avatar
Maz
Milonic God
Milonic God
Posts: 1717
Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:

Post by Maz »

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
Post Reply