Erben CSS Breite

Hallo. Mein problem ist, dass ich gerne .mylargeframe zu strecth über die gesamte Breite des Browsers.

CSS

.mylargeframe {
  background: linear-gradient(top, #fff, #f8f8f8);
  border: 1px solid #d0d2d5;
  border-bottom: 1px solid #bebfc2;
  border-radius: 4px;
  margin: 0 0 20px 0;
  padding: 20px;
  width: 80%;
  overflow: auto;
}

fieldset {
  background:#ebeced;
  border: none;
  border-top: 1px solid #d0d2d5;
  border-radius: 0 0 4px 4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  margin: 5px 0 -20px -20px;  padding: 18px 20px;
  width: auto;
}

fieldset input {
  margin: 0;
  width: auto;
}

HTML

<html>
  <div class="mylargeframe">
   <fieldset>
     test
   </fieldset>
  </div>
</html>

Das problem ist, dass es nicht komplett gefüllt ist, aber es ist fast da. Ich bin mit Firefox und Chrome

Sie haben width: 80% auf .mylargeframe. Warum würden Sie erwarten, dass es gehen den ganzen Weg?

InformationsquelleAutor Badmiral | 2013-03-18

Schreibe einen Kommentar