Flexbox-Ausrichtung mit Bildern und text in den selben container

Ich mache eine flexbox-Mitarbeiter-ID-Karten-layout. Die Mitarbeiter-das Bild wird nach Links gehen und die Mitarbeiter-info (name, Mitarbeiter-id, Abteilung, etc) gehen an die rechts im Bild in Form einer Liste von oben nach unten.

Muss ich dies tun, mit flexbox.

Hier ist ein link zu mein JSFiddle mit dem, was ich bisher getan habe:

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>Flexbox Example 1</title>
    <style>
        .flex-container {
           display: -webkit-flex;
           display: flex;
           -webkit-flex-direction: row;
           flex-direction: row;
           -webkit-align-items: center;
           align-items: center;

           flex-wrap: wrap;
           min-width: 320px;
           max-width: 1220px;
        }
        .flex-item {
        height: 120px;
        width: 300px;
        background-color: #e46119;
        border: 1px solid #626262;
        margin: 3px;
        padding: 10px 0 0 10px;
        }
        span {
            padding-left: 5px;
        }
    </style>
</head>

<body>
    <div class="flex-container">
        <div class="flex-item"><img src="http://placehold.it/100x100">
          <span>Text fields will go here</span>
        </div>
        <div class="flex-item"><img src="http://placehold.it/100x100">
          <span>Text fields will go here</span>
        </div>
        <div class="flex-item"><img src="http://placehold.it/100x100">
          <span>Text fields will go here</span>
        </div>
        <div class="flex-item"><img src="http://placehold.it/100x100">
          <span>Text fields will go here</span>
        </div>
        <div class="flex-item"><img src="http://placehold.it/100x100">
          <span>Text fields will go here</span>
        </div>
        <div class="flex-item"><img src="http://placehold.it/100x100">
          <span>Text fields will go here</span>
        </div>
        <div class="flex-item"><img src="http://placehold.it/100x100">
          <span>Text fields will go here</span>
        </div>
        <div class="flex-item"><img src="http://placehold.it/100x100">
          <span>Text fields will go here</span>
        </div>
        <div class="flex-item"><img src="http://placehold.it/100x100">
          <span>Text fields will go here</span>
        </div>
    </div>
</body>
</html>

http://jsfiddle.net/Hopped_Up_Designs/3teLbqqf

Jegliche Hilfe würde sehr geschätzt werden. Danke, Jason

"Links zu jsfiddle.net beizufügen ist code" bedeutet nicht, sollten Sie konvertieren Sie den link in code. Es heißt, du muss den code in deiner Frage. Und was ist das problem mit dem aktuellen code?
Danke. Ich habe es behoben.

InformationsquelleAutor Jason Keith McCoy | 2015-01-01

Schreibe einen Kommentar