Text-align center css et div
Résolu/Fermé
A voir également:
- Html input text align
- Editeur html - Télécharger - HTML
- Br html ✓ - Forum Webmastering
- No video input enter sleep mode ✓ - Forum Matériel & Système
- Input signal not found ✓ - Forum Matériel & Système
- Input not supported - Forum Ecran
5 réponses
Utilisateur anonyme
22 juin 2009 à 16:16
22 juin 2009 à 16:16
Essaye :
<style type="text/css">
.aucentre {text-align:center;}
</style>
<style type="text/css">
.aucentre {text-align:center;}
</style>
Yaninho
Messages postés
484
Date d'inscription
jeudi 19 mars 2009
Statut
Membre
Dernière intervention
30 août 2010
63
22 juin 2009 à 16:17
22 juin 2009 à 16:17
dans ton css, au lieu de mettre aucentre {text-align:center;} , essaye de mettre .aucentre {text-align:center;}
Try this:
<html>
<head>
<style type="text/css">
DIV.centered { text-align: center }
</style>
</head>
<body>
<div class="centered">
<p>
This is header 1
</p>
</div>
</body>
</html>
<html>
<head>
<style type="text/css">
DIV.centered { text-align: center }
</style>
</head>
<body>
<div class="centered">
<p>
This is header 1
</p>
</div>
</body>
</html>
Utilisateur anonyme
22 juin 2009 à 16:20
22 juin 2009 à 16:20
Quand tu as : <div class='balise'> </div>
Dans ton css: .balise {}
Et pour : <div id='balise'> </div>
Dans ton css : #balise {}
Dans ton css: .balise {}
Et pour : <div id='balise'> </div>
Dans ton css : #balise {}
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question