Précédent   Forum des professionnels en informatique > Webmasters - Développement Web > CSS
CSS Forum d'entraide sur l'utilisation des feuilles de style CSS. Avant de poster : Cours CSS, FAQ CSS, Galerie CSS
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse Proposer ce sujet en actualité
 
Outils de la discussion
Publicité
'
Vieux 19/09/2011, 16h28   #1
Membre habitué
 
Avatar de zebulon94
 
Inscription : juin 2008
Messages : 165
Détails du profil
Informations personnelles :
Localisation : France, Val de Marne (Île de France)

Informations forums :
Inscription : juin 2008
Messages : 165
Points : 142
Points : 142
Par défaut Id ne fonctionne pas avec table

bonjour j'ai un id dans un table et je n'arrive pas à l'utiliser dans mon css quelqu'un peut il m'expliquer pourquoi ..?

Merci
html :
Code html :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<form method="post" action="cible.php">
 
    <table id="formulaire">
    	<tr >
    		<td>Date de la convocation :</td>
    		<td><input type="text" name="jour" maxlength="2" style="width:30px"/>/
		    <input type="text" name="mois" maxlength="2" style="width:30px"/>/
		    <input type="text" name="année" maxlength="4" style="width:60px"/></td>
    	</tr> 
    	<tr>
    		<td>Type :</td>
    		<td>
    		<select name="type">
		    <option value="cérémonie">cérémonie</option>
		    <option value="cross">cross</option>
		    <option value="challenge natation">challenge natation</option>
		    <option value="concour d'athlétisme">concour d'athlétisme</option>
		    <option value="concour manoeuvre">concour manoeuvre</option>
		    <option value="autre">autre</option>
		    </select></td>
    	</tr> 
    	<tr>
    		<td>Lieu:</td>
    		<td>Rue:<input type="text" name="rue" style="width:300px"/>
		    <br/>CP:<input type="text" name="cp"  maxlength="5" style="width:75px" />
		    <br/>Ville:<input type="text" name="ville" /></td>
    	</tr> 
    	<tr>
    		<td>Rendez-vous</td>
    		<td><input type="radio" name="rdv" value="sur les lieux"\>Sur les lieux
    		<br/><input type="radio" name="rdv" value="À la caserne"\>À la caserne</td>
    	</tr> 
    	<tr>
    		<td>Heure de RDV :</td>
    		<td><input type="text" name="hrdv" maxlength="2" style="width:30px"/>h
   			 <input type="text" name="minrdv" maxlength="2" style="width:30px"/></td>
    	</tr> 
    	<tr>
    		<td>Heure de retour :</td>
    		<td><input type="text" name="hretour" maxlength="2" style="width:30px"/>h
    		<input type="text" name="minretour" maxlength="2" style="width:30px"/></td>
    	</tr> 
    	<tr>
    		<td>Description :</td>
    		<td><textarea name="message" rows="8" cols="45">
			Votre message ici.
			</textarea></td>
    	</tr> 
 
    </table>
 
</form>

CSS
Code :
1
2
3
4
5
6
#formulaire {
	font-size : 11px;
	}
#formulaire tr {
	border-top: 1px dashed gray;
	}
__________________
die($hard); // ok je sort ....
zebulon94 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 19/09/2011, 17h16   #2
Membre du Club
 
Avatar de Aquellito
 
Axel
Développeur informatique
Inscription : juin 2008
Messages : 192
Détails du profil
Informations personnelles :
Nom : Axel

Informations professionnelles :
Activité : Développeur informatique

Informations forums :
Inscription : juin 2008
Messages : 192
Points : 58
Points : 58
Bonjour,

Pour moi, ça ne marche pas sur les TR mais sur les TD uniquement (et tu auras le même résultat).
La police de 11px fonctionne bien par contre.

Cordialement.
Aquellito est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 19/09/2011, 17h54   #3
Membre habitué
 
Avatar de zebulon94
 
Inscription : juin 2008
Messages : 165
Détails du profil
Informations personnelles :
Localisation : France, Val de Marne (Île de France)

Informations forums :
Inscription : juin 2008
Messages : 165
Points : 142
Points : 142
effectivement mais y a t'il une raison ..?
__________________
die($hard); // ok je sort ....
zebulon94 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 19/09/2011, 18h08   #4
Membre du Club
 
Avatar de Aquellito
 
Axel
Développeur informatique
Inscription : juin 2008
Messages : 192
Détails du profil
Informations personnelles :
Nom : Axel

Informations professionnelles :
Activité : Développeur informatique

Informations forums :
Inscription : juin 2008
Messages : 192
Points : 58
Points : 58
ça je ne saurais te dire. Peut-être que ça marche sur certains navigateurs.
En tous cas, tout ce qui est 'border' sur les 'TR' ne marche pas sur IE, Opera et GC. Ce qui n'est pas le cas pour tous les attributs (background par exemple).
Aquellito est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité Cette discussion est résolue.
Outils de la discussion



Fuseau horaire GMT +2. Il est actuellement 03h22.


 
 
 
 
Partenaires

Hébergement Web