Legende tag-und Chrome

Ich habe überall gesucht, aber ohne Erfolg.

Bekam ich einen <legend> in eine form, die zeigt, wie ich will, in jedem Browser, außer Chrome. Es ist wie es sitzt außerhalb des fieldset, oder es ist, wie es geht oben auf das nächste element. Und es ist sehr ärgerlich. Ich kann nicht einmal mehr die Margen auf.

Warum es zeigt, wie auf diese Weise?

Und gibt es eine Abhilfe?

HTML:

  <fieldset class="col-12-box-bottom add-extras">
    <legend class="plus">Add Promotion Code</legend>
    <ul id="promo-fields">
      <li><input class="field-small" type="text" /></li> 
      <li><button class="but-sec" type="submit">Apply</button></li>
    </ul>
  </fieldset>

CSS:

.add-extras legend{
    width: 260px;
    height: 0px;
    border: 1px solid red;
    display: block;
    margin-top: 10px;
}
.add-extras fieldset{
    position: relative;
}
.add-extras ul{
    padding: 0 0 20px 0 !important;
    overflow: hidden;
}
.add-extras li{
    list-style-type: none;
    float: left;
    margin: 0 18px 0 0;
}
.add-extras li:last-child a{
    color: #afafaf;
    display: block;
    margin: 27px 0px 0 0;
}
fieldset.add-extras{
    margin: 0px 0 23px 0;
}
.add-extras label{
    float: none;
    display: block;
    text-align: left;
    width: 110px;
    font-weight: bold;
    margin: 0 0 5px 0;
}
  • Was ist der rest von deinem css?
  • Sevenoaks: ich habe noch die restlichen css
  • Dies ist eine wirklich lästige kleine layout-Macke, ich hatte das gleiche Problem ein paar Monate zurück: stackoverflow.com/questions/2568591/...
InformationsquelleAutor Shaoz | 2011-03-17
Schreibe einen Kommentar