<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CV le nom</title>
<meta name="generator" content="Bluefish 1.0.7">
<meta name="author" content="José LOPEZ">
<meta name="date" content="2006-11-14T08:23:14+0100">
<meta name="copyright" content="">
<meta name="keywords" content="">
<meta name="description" content="">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8">
<meta http-equiv="content-style-type" content="text/css">
<meta http-equiv="expires" content="0">
<style type="text/css">
body {
margin: auto;
border: none;
background-color:black;
padding: 0cm;
text-align: center; /* Pour correction bugg IE */
}
#corps {
/*background-color: #5BA9A7;*/
background-color: white;
color: black;
display: table;
margin: auto;
border: solid 1px;
width: 70%;
text-align: left; /* Pour correction bugg IE */
}
#entete {
display: table-row;
}
#coords {
display: table-cell;
padding-left: 10px;
border: solid 1px;
vertical-align: top;
}
.nom{
font-size: 1.5em;
color: black;
font-weight: bold;
}
#titre{
display: table-cell;
vertical-align: bottom;
border: solid 1px;
text-align: center;
}
/* Ajouté pour essais */
#img_titre{
display: block;
}
/* pas encore en place
#photo{
display: table-cell;
border: solid 1px;
text-align: center;
}
</style>
</head>
<body>
<div id="corps">
<div id="entete">
<div id="coords">
<p>
<spam class="nom">Le nom</spam><br />
Le num et la rue<br />
Le CP et la ville
</p>
<p>
Tél. : 00 00 00 00 00<br />
GSM : 00 00 00 00 00<br />
e-mail : <a href="mailto:[email protected]">[email protected]</a>
</p>
</div>
<div id="titre"><img id="img_titre" src="titre1.gif" alt="Le contenu de l'image" width="470" height="102"/></div>
<div id="photo"></div>
</div>
</div>
</body>
</html>
Les border: solid 1px; sont là juste pour voir les tailles.Code : Tout sélectionner
<spam class="nom">Le nom</spam>Code : Tout sélectionner
<span class="nom">Le nom</span>Code : Tout sélectionner
<div id="corps">
<div id="entete">
<div id="coords">
<p>
<span class="nom">Le nom</span><br>
Le num et la rue<br>
Le CP et la ville
</p>
<p>
Tél. : 00 00 00 00 00<br>
GSM : 00 00 00 00 00<br>
e-mail : <a href="mailto:[email protected]">[email protected]</a>
</p>
</div>
<img id="img_titre" src="http://87.88.19.190/cv/titre1.gif" alt="Le contenu de l'image" title="message de roll-over sur l'image">
<div id="photo"></div>
</div>
</div>Code : Tout sélectionner
<style type="text/css">
body {
margin: auto;
border: none;
background-color:black;
padding: 0cm;
text-align: center; /* Pour correction bugg IE */
}
#corps {
/*background-color: #5BA9A7;*/
background-color: white;
color: black;
border: 1px solid #0f0;
text-align: left; /* Pour correction bugg IE */
width: 770px;
margin: auto;
}
#entete {
vertical-align: middle;
height: 150px;
}
#coords {
float: left;
width: 210px;
padding-left: 10px;
border: 1px solid #0f0;
vertical-align: bottom;
}
.nom{
font-size: 1.5em;
color: black;
font-weight: bold;
}
#img_titre {
border: 1px solid #0f0;
width: 470px;
height: 102px;
margin: auto;
}
#photo {
clear: both;
}
</style>
Code : Tout sélectionner
<style type="text/css">
body {
color: #fff;
background-color: #000;
}
#corps {
color: #000;
background-color: #fff;
position: relative;
width: 70%;
margin: auto;
}
#entete {
border: 1px solid #0f0;
vertical-align: 0;
text-align: center;
}
#coords {
float: left;
text-align: left;
}
#img_titre {
position: absolute;
right: 3em;
bottom: 0;
border: 1px solid #0f0;
width: 470px;
height: 102px;
}
.nom{
font-size: 1.5em;
color: black;
font-weight: bold;
}
#photo {
clear: both;
}
</style>
Je pense que c'est l'une des choses les + dificiles à réaliser en CSS et IE et comme tout bon sportif, il tente de faire des choses compliquées qu'il n'oserait jamais de faire en compétition, ça l'aide à métriser certaines choses.Simple curiosité personnelle : pourquoi vouloir créer un tableau sans utiliser la balise <table>...</table> alors que celle-ci est précisément conçue pour ça ? N'est-il pas plus correct d'utiliser un élément sémantiquement adapté ?
Mon héros !Simple curiosité personnelle : pourquoi vouloir créer un tableau sans utiliser la balise <table>...</table> alors que celle-ci est précisément conçue pour ça ? N'est-il pas plus correct d'utiliser un élément sémantiquement adapté ?