Convertir du CSS en HTML

Fermé
Lapucedu56 - 17 juil. 2013 à 14:41
totodunet Messages postés 1377 Date d'inscription mercredi 18 mars 2009 Statut Membre Dernière intervention 5 mars 2020 - 17 juil. 2013 à 16:41
Bonjour,

Auriez-vous la possibilité de me convertir le CSS en HTML et de me l'intégrer sur ce code s'il vous plait ?
Code html :
<link href='http://fonts.googleapis.com/css?family=Dr+Sugiyama' rel='stylesheet' type='text/css'>

<center><div class="fichefond"><center><img src="http://image.noelshack.com/fichiers/2013/25/1371745810-sans-titre-2.png"><div class="titrefichepub">Forum</div><div class="citationsoustitre">« citation »</div></center>

<center><div class="blockcontextepub">
CONTEXTE</div>

<div class="deuxautrespetitblock" style="margin-top: -57px;">STATISTIQUES</div>

<div class="deuxautrespetitblock" style="margin-top: -30px;">RECRUTEMENT</div></center>

<center><img src="http://image.noelshack.com/fichiers/2013/25/1371746348-1.png">     <img src="http://image.noelshack.com/fichiers/2013/25/1371746348-2.png"></center>

</span></div></center>


CSS :
.fichefond{
width: 490px; 
height: 680px; 
border-right: 5px solid #CB56E0; 
border-left: 5px solid #CB56E0; 
border-radius: 20px 0px 20px 0px; 
padding: 20px; 
background-image:url('http://image.noelshack.com/fichiers/2013/25/1371746251-fond.png'); 
text-align: justify; 
margin-left: 20px;
}

.titrefichepub{
  font-size : 50px; 
 font-family: 'Dr Sugiyama', cursive; 
 color: #D584F4; 
 text-shadow: 1px 1px 0px #F5EBDC; 
 margin-top:-9px;
}

.citationsoustitre{
  font-size: 12px; 
 line-height: normal;
  color:#F8F8F4; 
 font-family: Times New Roman;
  text-align:center; 
 margin-top:10px; 
 letter-spacing: 2px;
}

.blockcontextepub{
  overflow:auto; 
 width: 230px; 
 height: 310px; 
 background:#EAE5E2;
  border-radius: 20px 0px 0px 20px;
  padding: 3px; 
 align: center; 
 font-size: 10px; 
 font-family: georgia;
  float:left; 
 margin-right:10px;
  margin-top: -20px;
}

.deuxautrespetitblock{
  overflow:auto; 
 width: 225px;  
  height: 150px; 
 background:#EAE5E2;
  border-radius: 0px 20px 20px 0px;
  padding: 3px; 
 align: center; 
 font-size: 10px; 
 font-family: georgia;
}


Merci !
A voir également:

1 réponse

totodunet Messages postés 1377 Date d'inscription mercredi 18 mars 2009 Statut Membre Dernière intervention 5 mars 2020 199
17 juil. 2013 à 16:41
salut! le CSS reste le CSS, et le HTML est le HTML. Ce sont deux langages très différent qui ont aucun rapport entre eux, il est donc impossible de convertir.

Néanmoins je crois comprendre ce que tu veux dire. Comment mettre mon code CSS dans ma page HTML ?

-tu l'as fait en important le fichier css à l'aide de la balise link
-sinon tu peux utiliser la balise style que tu places dans le head et tu y mets ton code dedans :
<style type="text/css">monCSS{...}</style>
-tu utilises comme tu as fait aussi l'attribut style et mettre le code CSS correspondant à l'élément
-1