# Xhtml/css mettre du css pour une liste numérotée

**URL:** <https://www.debian-fr.org/t/xhtml-css-mettre-du-css-pour-une-liste-numerotee/15571>\
**Category:** Programmation\
**Created:** [Février 20, 2016, 6:10 UTC](https://www.debian-fr.org/t/xhtml-css-mettre-du-css-pour-une-liste-numerotee/15571 "2016-02-20T18:10:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sidell](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/s/90ced4/32.png) [@sidell](https://www.debian-fr.org/u/sidell)\
**Post date:** [Février 20, 2016, 6:10 UTC](https://www.debian-fr.org/t/xhtml-css-mettre-du-css-pour-une-liste-numerotee/15571/1 "2016-02-20T18:10:28Z")

</div>

Bonjour,  
voici mon code ` <blockquote>
	<p>	
		<ol>			
			<li>A robot must protect its own existence as long as such protection does not conflict with the First or Second Law.</li>
			<li>A robot must obey orders given to it by human beings, except where such orders would conflict with the First Law.</li>
			<li>A robot may not injure a human being or, through inaction, allow a human being to come to harm.</li>
		</ol>
		The Zeroth Law : A robot may not harm humanity, or, by inaction, allow humanity to come to harm.
	</p>
	<p class="author"><a href="http://en.wikipedia.org/wiki/Isaac_Asimov">Isaac Asimov</a> The Three Laws of Robotics<br /><br /> </p>
     </blockquote>`et la partie du fichier css le concernant : [code]blockquote p ol  
{  
text-align : right;  
font-size : small;  
font-style : italic;  
}

.author  
{  
text-align : right;  
font-style : normal;  
font-family : “LMRoman10”, serif;  
}[/code]Mais ça ne marche pas, mon texte n’est pas aligné à droite, ni en italique ni en small??? Par contre pas de problème pour .author

---

<div class="post-metadata">

**Author:** ![MisterFreez](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/m/bb73d2/32.png) [@MisterFreez](https://www.debian-fr.org/u/MisterFreez)\
**Post date:** [Février 20, 2016, 6:10 UTC](https://www.debian-fr.org/t/xhtml-css-mettre-du-css-pour-une-liste-numerotee/15571/2 "2016-02-20T18:10:29Z")

</div>

Il faut pas mettre une virgule entre blockquote, p et ol ?

---

<div class="post-metadata">

**Author:** ![Desintegr](https://www.debian-fr.org/user_avatar/www.debian-fr.org/desintegr/32/3771_2.png) [@Desintegr](https://www.debian-fr.org/u/Desintegr)\
**Post date:** [Février 20, 2016, 6:10 UTC](https://www.debian-fr.org/t/xhtml-css-mettre-du-css-pour-une-liste-numerotee/15571/3 "2016-02-20T18:10:29Z")

</div>

> [@](#):
>
> Il faut pas mettre une virgule entre blockquote, p et ol ?

Non. Ça ne correspond pas vraiment à ce qu’il souhaite faire.  
Si tu mets une virgule entre blockquote, p et ol, tu appliques les mêmes paramètres à tous les blockquote, tous les p et tous les ol.

Sinon

`blockquote {
  text-align: right;
  font-size : small;
  font-style : italic;
}`  
ça marche. Mais il faudrait peut-être redéfinir des classes CSS plutôt que de changer les paramètres de tous les blockquote.
