Bonjour à tous !
J'apprends depuis quelques mois maintenant les joies de la programmation html/css.
J'ai décidé pour faire de plus beaux menus de mettre des images.
Bref, après quelques minutes de bidouillage sous firefox, je m’aperçois que sous ie, un le contenu de mon site est beaucoup plus bas que sous firefox.
Comme si le float de la div de droite ne fonctionnait pas...
Voici mon code 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
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="shortcut icon" href="favicon.png"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="keywords" content="Thomas, Rudel, CV"/>
<meta name="description" content="Le C.V en ligne de Thomas RUDEL"/>
<title>Le C.V en ligne de Thomas RUDEL</title>
<link rel="stylesheet" href="design.css" type="text/css"/>
</head>
<body>
<div id="logo"> <img src="logo.png" alt="CV de Thomas RUDEL"/> </div>
<div id="nav">
<ul>
<li><a href="index.html"><img src="home.png" alt="CV de Thomas RUDEL"/> </a></li>
<li><a href="formation.html"><img src="formation.png" alt="CV de Thomas RUDEL"/> </a></li>
<li><a href="pro.html"><img src="pro.png" alt="CV de Thomas RUDEL"/> </a></li>
<li><a href="plus.html"><img src="plus.png" alt="CV de Thomas RUDEL"/> </a></li>
<li><a href="pourquoi.html"><img src="pourquoi.png" alt="CV de Thomas RUDEL"/></a></li>
</ul>
</div>
<div id="right">
<ul>
<li> <a href="http://www.viadeo.com/fr/profile/thomas.rudel"><img src="viadeo.png" alt="CV de Thomas RUDEL"/></a></li>
<li> <a href="http://twitter.com/ThomasRudel"><img src="twitter.png" alt="CV de Thomas RUDEL"/></a></li>
<li> <a href="contact.html"><img src="contacts.png" alt="CV de Thomas RUDEL"/></a></li>
</ul>
</div>
<div id="content">
<h1>BIENVENUE</h1><br/>
<h2>Présentation</h2>
<p>blabla</p>
</div>
<div id="foot">
<a href="RUDEL_CV.pdf"target="_blank"><img src="cv.png" alt="CV de Thomas RUDEL"/></a>
</div>
</body>
</html> |
et le css
Code css :
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 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166
| img{
border: none;
}
body {
width: 85%;
margin: 0 auto;
font: 400 1.0em 'trebuchet ms',arial,sans-serif;
background-image: url(fond.png);
background-attachment:fixed;
}
#logo{
margin: 50px 0px 0px 0px;
}
#nav {
margin: 0 0;
width: 100%;
padding: 10px 0;
}
#nav ul {
list-style: none;
padding: 0;
margin: 0;
}
#nav li {
float: left;
clear: none;
}
#nav li a {
padding-right:20px;
padding-top: 0px;
display: block;
text-decoration: none;
}
#nav li a:hover {
background: #FFF url('arrow.gif') no-repeat top center;
color: #6C0;
}
#right {
width: 30%;
float: right;
padding-top: 40px;
text-align: right;
margin-bottom: 40px;
margin-right:2px;
}
#right ul {
list-style: none;
margin: 0 0 20px 0;
padding: 0;
}
#right li {
padding: 5px 0 5px 20px;
}
#right li a {
padding: 0 0 0 20px;
color: #999;
text-decoration: none;
font: 1.7em arial,sans-serif;
letter-spacing: -0.1em;
}
#right li a:hover {
background: #FFF url('bullet.gif') no-repeat left center;
color: #6C0;
}
#content {
width: 70%;
margin-right: 35%;
padding-top: 100px;
margin-bottom: 40px;
text-align: justify;
}
h1 {
font: 400 1.4em arial,sans-serif;
letter-spacing: -0.1em;
margin-bottom: 0;
color: #6C0;
}
h2 {
font: 400 1.2em 'trebuchet ms',arial,sans-serif;
margin-top: -0.4em;
padding-top: 0px;
letter-spacing: -1px;
color: #444;
}
h3 {
font: 400 1.2em arial,sans-serif;
color: #666;
letter-spacing: -0.1em;
margin-bottom: 10px;
}
p {
line-height: 1.5em;
margin: 10px 0 20px 0;
color: #777;
font-size: 1em;
}
#content a {
text-decoration: none;
color: #6C0;
}
#content a:hover {
border-bottom: none;
}
ol {
color: #AAA;
font: 600 1.0em arial,sans-serif;
padding: 10px;
}
ol span {
font: 400 1.0em 'trebuchet ms',arial,sans-serif;
color: #777;
font-style: normal;
}
ol li {
margin-left: 25px;
padding: 4px 0;
}
#content ul {
list-style-type: none;
padding: 10px;
color: #777;
font-size: 1em;
}
#content ul li {
padding-left: 35px;
background: url('bullet.gif') no-repeat left center;
margin-left: 10px;
}
#foot {
width: 100%;
border-top: 3px solid #ECECEC;
padding: 10px 0px 20px 0px;
margin-top: 15px;
font: 400 0.9em arial,sans-serif;
}
#foot a {
text-decoration: none;
color: #6C0;
} |
Voilà, vous avez une idée?
Merci!