CSS line-height funktioniert nicht

Habe ich in diesem div-Element, das ich bin versucht, line-height, wie so...

.social {
    background-color: #FFFFFF;
    float: left;
    font-size: 18px;
    height: 93px;
    line-height: 60px;
    padding-left: 20px;
    width: 190px;
}

aber die .social Klasse nicht mehr nach unten, was innerhalb des div-bleibt an der Spitze...hier ist der html..

<div class="social">
     <ul>
          <li class="facebook">
               <a href="http://www.facebook.com/SurfTheCurve" target="_blank"></a>
          </li>
          <li class="twitter">
               <a href="https://twitter.com/SurfCurveTutor" target="_blank"></a>
          </li>
          <li class="email">
               <a href="mailto:[email protected]?subject=Website Enquiry" target="_blank"></a>
          </li>
     </ul>
</div>

Hier ist einige andere CSS -

.social ul {
    list-style-type: none;
    margin: 0;
    padding: 0 0 0 15px;
}

.social li {
    float: left;
}

.social ul .facebook a {
    background-image: url("images/facebook.png");
    background-position: right center;
    background-repeat: no-repeat;
    color: #FFFFFF;
    display: block;
    height: 35px;
    text-decoration: none;
    width: 35px;
}

.social ul .twitter a {
    background-image: url("images/twitter.png");
    background-position: right center;
    background-repeat: no-repeat;
    color: #FFFFFF;
    display: block;
    height: 35px;
    padding: 0 10px;
    text-decoration: none;
    width: 35px;
}

.social ul .email a {
    background-image: url("images/email.png");
    background-position: right center;
    background-repeat: no-repeat;
    color: #FFFFFF;
    display: block;
    height: 35px;
    padding: 0 10px;
    text-decoration: none;
    width: 35px;
}

Hoffe, das hilft

Warum sollte es nach unten gehen?
Was meinst du mit "[go]"? Sie sind schwimmende LI. Sie kann sich selbst in ein paar DIV-clearing-Problem dort... Aber bitte besser erklären, was Sie versuchen zu erreichen.

InformationsquelleAutor user1269625 | 2012-09-30

Schreibe einen Kommentar