Centrage site suivant résolution
Bonjour à tous! j'ai un site à rendre pour demain, pour un entretien et j'ai un gros bug d'affichage quand je change de résolution. Je vous donne le code de l'index, si quelqu'un peut me sauver la vie :)
Code:
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
| <!DOCTYPE html>
<html>
<head>
<link type="text/css" rel="stylesheet" href="Site/Stylesheet3.css"/>
<link rel="stylesheet" href="Site/font-awesome-4.2.0\css\font-awesome.min.css">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
<div class="wrapper">
<header class="header">
<a href = "indexTest.html" class="header__logo">
<img width="90px" height="90px" src = "Site/4058879-tache-d-39-encre-noire-et-plume-sur-fond-blanc-isol.jpg" />
<h1>Feather</h1>
<nav class = "menu">
<a href = "indexTest.html">Accueil</a>
<a href = "Site/suscribeTest.html">S'inscrire</a>
<a href = "Site/readTest.html">Lecture</a>
<a href = "Site/writeTest.html">Ecriture</a>
</nav>
</header>
<div class="container">
<div class="present">
<h2><span><strong>Feather</strong></span>: site d'écriture communautaire</h2>
<p>Lire, c'est se raconter une histoire, imaginée par d'autres.<br></br>
Ecrire, c'est faire rêver, conter un monde dans lequel l'esprit est seul maître.<br></br>
Et si, d'aventure, vous deveniez le maître? Si, vous deveniez acteur de la littérature, que vous abandonniez votre fauteuil douillet pour la douceur de la plume? Ne laissez pas les autres rêver pour vous, imaginez, créez, lisez, écrivez.<br></br>
Partagez!</p>
<div class="slide">
</div>
<i id="pencil" class="fa fa-pencil-square fa-2x"></i>
<i id="book" class="fa fa-book fa-2x"></i>
</div>
<div class="boutTon">
<form method="link" action="Site/readTest.html"> <input id="butRead" type="submit" value="Commencer la lecture"></form>
<form method="link" action="Site/writeTest.html"> <input id="butWrite" type="submit" value="Commencer l'écriture"></form>
</div>
</div>
</div>
<div class="footer">
<span id="social" class="fa-stack fa-3x">
<i class="fa fa-square-o fa-stack-2x"></i>
<i class="fa fa-twitter fa-stack-1x"></i>
</span>
<span id="social" class="fa-stack fa-3x">
<i class="fa fa-square-o fa-stack-2x"></i>
<i class="fa fa-facebook fa-stack-1x"></i>
</span>
<span id="social" class="fa-stack fa-3x">
<i class="fa fa-square-o fa-stack-2x"></i>
<i class="fa fa-google-plus fa-stack-1x"></i>
</span>
<span id="social" class="fa-stack fa-3x">
<i class="fa fa-square-o fa-stack-2x"></i>
<i class="fa fa-pinterest fa-stack-1x"></i>
</span>
<span id="social" class="fa-stack fa-3x">
<i class="fa fa-square-o fa-stack-2x"></i>
<i class="fa fa-tumblr fa-stack-1x"></i>
</span>
</div>
</div>
</body>
</html> |
Code:
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 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190
| body {
margin: 0;
padding: 0;
filter:alpha(opacity=90);/*IE*/
-moz-opacity:0.9; /*autres nav*/
opacity: 0.9;
background-image:url('bg%20plume.jpeg')
}
.wrapper {
margin: auto;
padding:inherit;
}
a {
text-decoration: none;
}
.header {
z-index: 1;
position: fixed;
left: 0;
right: 0;
height: 100px;
line-height: 100px;
color: white;
background-color: black;
border-radius: 5px;
margin-top: 10px;
display: block;
overflow: hidden;
filter:alpha(opacity=80);/*IE*/
-moz-opacity:0.8; /*autres nav*/
opacity: 0.8;
margin-right: 7px;
margin-left: 7px;
}
.header__logo {
font-weight: bold;
padding: 0 25px;
float: left;
}
h1 {
float:left;
color: #ffffff;
text-transform: uppercase;
font-family: "DejaVu Sans";
display: block;
margin-left: 15px;
margin-top: 3px;
font-size: 40px;
text-shadow: 1px 1px 2px black, 0 0 1em white, 0 0 0.2em white;
}
.menu {
float: right;
}
.menu > a {
padding: 0 40px;
color: white;
font-family: "DejaVu Sans";
font-size: 25px;
}
.header > a >img {
border: none;
margin-left: 10px;
margin-top: 5px;
border-radius: 100%;
float:left;
}
.footer {
height: 158px;
width: 78%;
clear: left;
background-color:#5C5757;
border-radius: 10px;
margin-left: 170px;
}
.container {
height: 800px;
width: 70%;
float: left;
background-color:#5C5757;
margin-bottom: 10px;
margin-left: 235px;
border-radius: 10px;
margin-top: 120px;
}
@font-face {
font-family: "OpenSans";
src: url('Site/OpenSans-CondLightItalic.ttf');
}
.present > p {
font-family: OpenSans;
font-size: 20px;
text-align: center;
color: #F0E8D8;
padding: 50px 20px 0px 20px;
}
h2 {
font-family: "DejaVu Sans";
font-size: 35px;
text-align: center;
color:#F0E8D8;
padding-top: 17px;
}
span {
color: #ffffff;
text-transform: uppercase;
font-family: "DejaVu Sans";
font-size: 40px;
text-shadow: 1px 1px 2px black, 0 0 1em white, 0 0 0.2em white;
font-size: 40px;
text-align: center;
color:#F0E8D8;
}
.present {
height: 400px;
width: 100%;
background-color:#5C5757;
margin-top: -29px;
border-radius: 10px;
}
.slide {
height: 1px;
width: 40%;
background-color: #F0E8D8;
border-radius: 10px;
margin-left: 335px;
margin-top: 40px;
}
.boutTon {
height: 50px;
width: 50%;
background-color:#5C5757;
border-radius: 10px;
margin-top: 120px;
margin-left: 280px;
}
#butRead {
border-radius: 5px;
color: #5C5757;
width: auto;
height: 30px;
margin-left: 70px;
font-family: DejaVu Sans;
border-color: #F0E8D8;
float: left;
}
#butWrite {
border-radius: 5px;
background-color: #F0E8D8;
width: auto;
height: 30px;
margin-right: 70px;
font-family: DejaVu Sans;
border-color: #5C5757;
float: right;
}
#pencil {
margin-left: 570px;
padding-top: 153px;
color: #ffffff;
}
#book {
margin-left: -289px;
color: #ffffff;
}
#social {
padding-left: 147px;
padding-top: 37px;
} |