2012-11-22 3 views
0

Chaque fois que je fais glisser la fenêtre de mon navigateur pour l'ajuster automatiquement à la moitié de la taille du moniteur, un bloc vide apparaît sur le côté. J'ai essayé de changer la largeur en min-width: 100%, mais cela ne résout pas le problème. Des idées?Largeur du navigateur demi-écran CSS

site: http://andrewgu12.kodingen.com/graphicDesign/index.php

CSS:

div#bodyContent-container { 
    min-width:100%; 
    height: 100%; 
    min-height:1100px; 
    background:#f3f3f3; 
    margin: 0 auto; 
    padding: 0; 
} 
div#bodyContent { 
    width:960px; 
    height:100%; 
    min-height: 1024px; 
    margin: 0 auto; 
    padding: 0; 
    -webkit-box-shadow: 6px 0px 10px -7px #888, -6px 0px 10px -7px #888; 
    -moz-box-shadow: 6px 0px 10px -7px #888, -6px 0px 10px -7px #888; /* Firefox 3.6 and earlier */ 
    box-shadow: 6px 0px 10px -7px #888, -6px 0px 10px -7px #888; 
    padding-top: 200px; 
} 
footer { 
    min-width: 100%; 
    height:50px; 
    color:#ffffff; 
    text-align: center; 
    padding-top: 20px; 
    bottom: 0; 
    background: #161616; /* Old browsers */ 
    background: -moz-linear-gradient(top, #161616 0%, #202020 92%, #131313 100%); /* FF3.6+ */ 
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#161616), color-stop(92%,#202020), color-stop(100%,#131313)); /* Chrome,Safari4+ */ 
    background: -webkit-linear-gradient(top, #161616 0%,#202020 92%,#131313 100%); /* Chrome10+,Safari5.1+ */ 
    background: -o-linear-gradient(top, #161616 0%,#202020 92%,#131313 100%); /* Opera 11.10+ */ 
    background: -ms-linear-gradient(top, #161616 0%,#202020 92%,#131313 100%); /* IE10+ */ 
    background: linear-gradient(top, #161616 0%,#202020 92%,#131313 100%); /* W3C */ 
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#161616', endColorstr='#131313',GradientType=0); /* IE6-9 */ 
} 

Répondre

1

Salut maintenant Définir votrebodymin-width:960px; et fixe ce problème

comme comme celui-ci

body{ 
min-width:960px; 
} 

Le résultat est

enter image description here

+1

définissent mon corps? Comme dans l'étiquette du corps elle-même? – Andrew

+1

@Andrew oui vous pouvez définir dans votre feuille de style dans votre corps {min-width: 960px;} –

+0

merci! tout fonctionne – Andrew

Questions connexes