PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Graphisme & Infographie > macromedia.dreamweaver > with form
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
with form

Réponse
 
LinkBack Outils de la discussion
Vieux 01/06/2008, 05h51   #1
hulbert
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut with form

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



  Réponse avec citation
Vieux 01/06/2008, 08h05   #2
Walt F. Schaefer
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: with form

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



  Réponse avec citation
Vieux 01/06/2008, 13h07   #3
TC2112
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: with form

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



  Réponse avec citation
Vieux 01/06/2008, 14h07   #4
hulbert
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: with form

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!!!
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 19h16.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,09674 seconds with 12 queries