|
|
|
#1 |
|
Messages: n/a
Hébergeur: |
when i put a form inside a table it adds a space underneath so the next table
won't butt underneath, need to get rid of the gap, tried the "0" margin thing, nothing seems to work, any , follow link to see code http://www.lamsystems.com/new_lam_5_08/home.asp thanks steve |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
You have some coding errors that may be causing your problem:
http://tinyurl.com/4smgjb -- Walt "hulbert" <webforumsuser@macromedia.com> wrote in message news:g1t9st$bdk$1@forums.macromedia.com... > when i put a form inside a table it adds a space underneath so the next > table > won't butt underneath, need to get rid of the gap, tried the "0" margin > thing, > nothing seems to work, any , follow link to see code > http://www.lamsystems.com/new_lam_5_08/home.asp > thanks > steve > > > |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
Hello,
In the CSS, change this: body { background-color: #EBEBEB; form1 { margin:0 auto; border-top-color: #0000FF; } To this: body { background-color: #EBEBEB; } It's just incorrect formatting, and you don't need the "form1" styling. If you really needed to add a form1 style (which you don't in this case), you would first have to decide whether "form1" is an ID name or a class name. You would have to use a # or a period in front of it in the CSS: #form1 for ID ..form1 for class. You would then have to assign the form itself this ID or class: <form ID="form1" or <form class="form1"... You would then need to move it out of the middle of the body CSS rule. But, like I said, you don't need to do this. Once you correct your other piece of "form" CSS, it will work fine. Change this: ..form { margin: 0px; padding: 0px; } To this: form { margin: 0px; padding: 0px; } Note the period before form is gone, changing it from a class into a tag. To use the class .form, you would have had to assigned that class to the form: <form class="form".... it doesn't work because there is no class named "form" assigned to the form. If you aren't going to have other forms on the page that you do want a margin around, just use: form { margin: 0px; padding: 0px; } which say's "for all form tags, make the margin and padding 0px" So, the CSS on the page would simply be this: body { background-color: #EBEBEB; } form { margin: 0px; padding: 0px; } On a side note, you may also want to combine all of your stylesheets into just 1. Take care, Tim "hulbert" <webforumsuser@macromedia.com> wrote in message news:g1t9st$bdk$1@forums.macromedia.com... > when i put a form inside a table it adds a space underneath so the next > table > won't butt underneath, need to get rid of the gap, tried the "0" margin > thing, > nothing seems to work, any , follow link to see code > http://www.lamsystems.com/new_lam_5_08/home.asp > thanks > steve > > > |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
TC2112 - you are awesome, thanks for the excellent explanation, it made it easy to see my mistake and thanks for the style sheet tip, best, steve!!!
|
|
![]() |
| Outils de la discussion | |
|
|