Form problem
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 posted this at 01:59 — 5th March 2004.
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
starter posted this at 04:42 — 5th March 2004.
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 posted this at 06:30 — 5th March 2004.
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.
andy206uk posted this at 09:14 — 5th March 2004.
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 posted this at 17:57 — 5th March 2004.
She has: 5,507 posts
Joined: Feb 2000
No!
form {
margin: 0;
padding: 0;
}
No units for zero value measures!
Mark Hensler posted this at 18:34 — 5th March 2004.
He has: 4,048 posts
Joined: Aug 2000
Really?
Suzanne posted this at 19:12 — 5th March 2004.
She has: 5,507 posts
Joined: Feb 2000
really! 0px == 0pt == 0% == 0em et cetera.
You need unit measures for all other values.
starter posted this at 14:55 — 5th March 2004.
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
starter posted this at 15:18 — 5th March 2004.
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
Mark Hensler posted this at 20:57 — 5th March 2004.
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 posted this at 21:06 — 5th March 2004.
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.
andy206uk posted this at 16:28 — 6th March 2004.
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.