Form problem

They have: 80 posts

Joined: Feb 2003

Hiya all

Having a bit of prob with adding form field, i have a layout and everytime i add the form tag in dreamweaver i get an extra line after it, this generally speaking will break up the layout, can any1 help me with this .

thx in advance

teammatt3's picture

He has: 2,102 posts

Joined: Sep 2003

Well, if I under stand you correctly, insert the form field before you add the layout, after it is in, then copy and paste the layout in the form field

They have: 80 posts

Joined: Feb 2003

thx team , its fine i ve done that already on the other parts of my site, but i have a layout that is set as a template and made a table of 100% width and 30pix in height within as an editable region, now this bit will crop up on varoius pages with different form elements, i just think it would not be economical to create a template for each of these pages, when ever i add the form tag in it just creates an extra line , is there anyway at all i can eliminate the extra unwanted line one way or any other ?

Mark Hensler's picture

He has: 4,048 posts

Joined: Aug 2000

I'm having a hard time visualizing what you have and what you want. Do you have a link we could look at?

You might try adding this to the element:
style="display: inline;"

Mark Hensler
If there is no answer on Google, then there is no question.

He has: 1,758 posts

Joined: Jul 2002

Hiya,

Forms are treated kinda like a paragraph, ie you get a line break at the end.

To get round it just do the following in your stylesheet:

form {

      margin: 0px;
      padding: 0px;

}
'

Andy

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

andy206uk wrote:

form {

      margin: 0px;
      padding: 0px;

}
'

No! Wink

form {
      margin: 0;
      padding: 0;
}
'

No units for zero value measures! Smiling

Mark Hensler's picture

He has: 4,048 posts

Joined: Aug 2000

Suzanne wrote: No units for zero value measures! Smiling

Really?

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

Mark Hensler wrote: Really?

really! 0px == 0pt == 0% == 0em et cetera.

You need unit measures for all other values.

They have: 80 posts

Joined: Feb 2003

Thx you very very very much andy !!!

you re a star, works a treat.

many many many thx

They have: 80 posts

Joined: Feb 2003

thx mark, yours works just as gr8 as well

lol , a bit quick with the solution i tried it out and didnt see urs at 1st Sticking out tongue

Mark Hensler's picture

He has: 4,048 posts

Joined: Aug 2000

But is it proper to omit the unit? Or is it just that it makes no difference?

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

It is proper to omit the unit, yes. It's invalid to include it when the value is zero. Of course not including it also saves you some infinitesimal bandwidth. Smiling

He has: 1,758 posts

Joined: Jul 2002

What you've said makes a lot of sense. Will keep it in mind for the future!

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.