HighDots Forums  

space at top of form

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss space at top of form in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
coil
 
Posts: n/a

Default space at top of form - 06-01-2004 , 12:57 PM






created a pop up form with behaviors. however I am having trouble tweaking the
form so that there is no space all around it and it fits perfectly into the
browser window (450 px by 300 px). I have included the code in the body tag to
set everything to 0 but there is this space at the top that will not go away.
this only occurs when I use the form tag without it looks fine but it's not a
form without the tag. Any ideas?

coil


Reply With Quote
  #2  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: space at top of form - 06-01-2004 , 01:19 PM






Use CSS to control the <form> tag's margins -

<style>
form { margin:0; }
</style>

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================
news://forums.macromedia.com/macromedia.dreamweaver - THE BEST WAY TO GET
ANSWERS
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"coil" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
created a pop up form with behaviors. however I am having trouble
tweaking the
form so that there is no space all around it and it fits perfectly into
the
browser window (450 px by 300 px). I have included the code in the body
tag to
set everything to 0 but there is this space at the top that will not go
away.
this only occurs when I use the form tag without it looks fine but it's
not a
form without the tag. Any ideas?

coil




Reply With Quote
  #3  
Old   
mzanime.com
 
Posts: n/a

Default Re: space at top of form - 06-01-2004 , 01:21 PM



It really helps when we can see your code. But until you post it, try adding this to your header.

<style type="text/css">
form { margin:0; }
</style>

Reply With Quote
  #4  
Old   
mzanime.com
 
Posts: n/a

Default Re: space at top of form - 06-01-2004 , 01:43 PM



Murray... <style> is not valid without the TYPE attribute :P

Reply With Quote
  #5  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: space at top of form - 06-01-2004 , 01:46 PM



It's perfectly valid in an example, however! 8)

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================
news://forums.macromedia.com/macromedia.dreamweaver - THE BEST WAY TO GET
ANSWERS
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"mzanime.com" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Murray... <style> is not valid without the TYPE attribute :P



Reply With Quote
  #6  
Old   
pixeldigits
 
Posts: n/a

Default Re: space at top of form - 06-01-2004 , 04:38 PM



A little HTML trick you can do to get rid of that space...

instead of putting your form tag around a table... embed it in the table in a
non-standard way... put it after the TABLE tag, before the first TR... and
close the form table AFTER the last TR and before the end of the Table close
tag.

that seems to get rid of the extra mystery space!

;-)




Reply With Quote
  #7  
Old   
pixeldigits
 
Posts: n/a

Default Re: space at top of form - 06-01-2004 , 04:41 PM



move the form tags to nest into the Table like this...

<table>
<form><tr>
<Td></td>
</tr></form>
</table>

For some reason that works better than:

<form>
<table>
<tr>
<Td></td>
</tr>
</table>
</form>


Reply With Quote
  #8  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: space at top of form - 06-01-2004 , 08:51 PM



I wouldn't recommend that anyone do that. It's just too 'hacky' and
non-standard for me.

The reason is works is that the form tag cannot have a margin in a <tr> (I
think) since it isn't supposed to be there in the first place. You get the
same result with perfectly valid code by removing the margin with CSS.

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================
news://forums.macromedia.com/macromedia.dreamweaver - THE BEST WAY TO GET
ANSWERS
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"pixeldigits" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
move the form tags to nest into the Table like this...

table
form><tr
Td></td
/tr></form
/table

For some reason that works better than:

form
table
tr
Td></td
/tr
/table
/form




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.