Soucis CSS Div

Résolu
Needhelp -  
Castial Messages postés 66 Date d'inscription   Statut Membre Dernière intervention   - 20 oct. 2011 à 17:26
Bonjour,
j'ai un problème :
sur mon futur site --> http://199.180.133.26/~briocom/
j'ai retiré le menu, donc j'ai retiré quelques lignes de code avec des div.
Malheureusement, quand je rétrécis la fenêtre il reste toujours un écart sur la gauche comme si le menu étais vide mais toujours là.
est ce que c'est dans le .html ou le .css que je dois effacer quelque chose? si oui, quoi?

code CSS :
/**
* CSS
*
*/
* {
margin: 0;
padding: 0;
}

body {
font-size: 10px;
font-family: Verdana, sans-serif;
background: #fff;
}

body.section-1 { }
body.section-2 { }
body.section-3 { }

a:link { text-decoration: none; }
a:active { text-decoration: none; }
a:visited { text-decoration: none; color: #666; }
a:hover { text-decoration: underline; }

a img { border: none; }

#menu {
width: 5px;
overflow: auto;
top: 0;
bottom: 0;
left: 0;
position: fixed;
height: 100%;
background-color: #fff;
}

#menu ul {
list-style: none;
margin: 0 0 12px 0;
}

#menu ul li.section-title { }

#content {
height: 100%;
margin: 0 0 0 215px;
top: 0;
}

.container {
position: relative;
margin: 0 auto;
width: 1024px;
text-align: left;
}

#content p { width: 400px; margin-bottom: 9px; }

p {
margin: 0 0 9px 0;
}

h1 { font-size: 32px; }
h2 { font-size: 24px; }
h3 { font-size: 16px; }
h4 { font-size: 12px; }

#img-container { margin: 0; padding: 0; }
#img-container p { width: 400px; margin: 0; padding: 0 0 12px 0; }

#once { clear: left; }




2 réponses

Castial Messages postés 66 Date d'inscription   Statut Membre Dernière intervention   5
 
La largeur de ton menu, qui est encore a 5px . Ça vient probablement de la.
0
Needhelp
 
Oh génial c'était ca!!!!!!!
Merci 1000 fois!!
0
Castial Messages postés 66 Date d'inscription   Statut Membre Dernière intervention   5
 
De rien ^^
0
arthezius Messages postés 3538 Date d'inscription   Statut Membre Dernière intervention   475
 
Ton div content à un margin-left à 215px.
Ou plus précisement:
#content {
    height: 100%;
    margin: 0 0 0 215px;
    top: 0;
}
0