phild
10-29-2005, 12:53 PM
Bonjour,
I need some help !
I'm building a pixelpost blog there :
http://frompariswithlove.philippedurand.com
I would like to center the main picture, so that it stays centered as you change the width of the browser. I also want to keep the left column on the left. Whatever I try, the main picture remains on the left. What am I doing wrong ?
Any idea ?
Merci
phild
from paris with love
css code :
/* CSS Document */
body {
/* dans le fichier html, marges mises ? z?ro*/
margin:0;
padding:0;
color:#000000;
font-family: Georgia, "Times New Roman", Times, serif;
background-color: #ffffff;
background-image: url(images/airmail-frise.gif);
background-repeat:repeat-x;
}
/* pour le logo du site, inutile car valeurs idem body
.index {
margin: 0px;
padding: 0px;
}
*/
/*le tableau*/
#container {
float: left;
margin: 2px auto 10px;
padding: 2px 10px 10px 5px;
}
/*les lignes*/
#principal {
}
#legende {
}
#vignettes {
}
#commentaires {
}
/*les colonnes*/
.menu {
width: 80px;
text-align: left;
vertical-align: top;
padding-top: 10px;
padding-left: 15px;
}
.menu a:link, .menu a:visited {
font-weight: bold;
text-decoration: none;
color: navy;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
text-transform: uppercase;
}
.menu a:link#current, .menu a:hover {
color: #cc0000;
}
.content {
text-align: center;
padding-left: 10px;
}
/*image principale*/
.shadow {
background: url(images/shadowAlpha.png) no-repeat right bottom!important;
background: url(images/shadowlarge.gif) no-repeat bottom right;
float: left;
margin: 10px 0 0 10px!important;
margin: 10px 0 0 5px;
}
.shadow img {
display: block;
position: relative;
background-color: #ffffff;
border: solid 1px #a9a9a9;
margin: -6px 6px 6px -6px;
padding: 25px;
}
/*pied de page*/
#footer {
clear: both;
padding: 5px;
margin-top: 5px;
text-align: justify;
color: #705048;
}
#footer a:link, #footer a:visited {
font-weight: bold;
text-decoration: none;
color: #000000;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px; text-transform: uppercase;
}
#footer a:link#current, #footer a:visited#current, #footer a:hover {
color: #cc0000;
}
.title {
font-size: 12px;
font-weight: bold;
text-transform: uppercase;
}
.exif {
color: gray;
}
I need some help !
I'm building a pixelpost blog there :
http://frompariswithlove.philippedurand.com
I would like to center the main picture, so that it stays centered as you change the width of the browser. I also want to keep the left column on the left. Whatever I try, the main picture remains on the left. What am I doing wrong ?
Any idea ?
Merci
phild
from paris with love
css code :
/* CSS Document */
body {
/* dans le fichier html, marges mises ? z?ro*/
margin:0;
padding:0;
color:#000000;
font-family: Georgia, "Times New Roman", Times, serif;
background-color: #ffffff;
background-image: url(images/airmail-frise.gif);
background-repeat:repeat-x;
}
/* pour le logo du site, inutile car valeurs idem body
.index {
margin: 0px;
padding: 0px;
}
*/
/*le tableau*/
#container {
float: left;
margin: 2px auto 10px;
padding: 2px 10px 10px 5px;
}
/*les lignes*/
#principal {
}
#legende {
}
#vignettes {
}
#commentaires {
}
/*les colonnes*/
.menu {
width: 80px;
text-align: left;
vertical-align: top;
padding-top: 10px;
padding-left: 15px;
}
.menu a:link, .menu a:visited {
font-weight: bold;
text-decoration: none;
color: navy;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
text-transform: uppercase;
}
.menu a:link#current, .menu a:hover {
color: #cc0000;
}
.content {
text-align: center;
padding-left: 10px;
}
/*image principale*/
.shadow {
background: url(images/shadowAlpha.png) no-repeat right bottom!important;
background: url(images/shadowlarge.gif) no-repeat bottom right;
float: left;
margin: 10px 0 0 10px!important;
margin: 10px 0 0 5px;
}
.shadow img {
display: block;
position: relative;
background-color: #ffffff;
border: solid 1px #a9a9a9;
margin: -6px 6px 6px -6px;
padding: 25px;
}
/*pied de page*/
#footer {
clear: both;
padding: 5px;
margin-top: 5px;
text-align: justify;
color: #705048;
}
#footer a:link, #footer a:visited {
font-weight: bold;
text-decoration: none;
color: #000000;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px; text-transform: uppercase;
}
#footer a:link#current, #footer a:visited#current, #footer a:hover {
color: #cc0000;
}
.title {
font-size: 12px;
font-weight: bold;
text-transform: uppercase;
}
.exif {
color: gray;
}