2017-11-02 2 views

Antwort

-1

Sie könnten dies mit einem Tabellenlayout einfach tun.

<table> 
    <tr> 
    <td></td> 
    <td>1</td> 
    <td>2</td> 
    <td>3</td> 
    <td>4</td> 
    </tr> 
    <tr> 
    <td>Bedrooms</td> 
    <td><input type="checkbox" /></td> 
    <td><input type="checkbox" /></td> 
    <td><input type="checkbox" /></td> 
    <td><input type="checkbox" /></td> 
    </tr> 
    <tr> 
    <td></td> 
    <td>1</td> 
    <td>2</td> 
    <td>3</td> 
    <td>4</td> 
    </tr> 
    <tr> 
    <td>Bathrooms</td> 
    <td><input type="checkbox" /></td> 
    <td><input type="checkbox" /></td> 
    <td><input type="checkbox" /></td> 
    <td><input type="checkbox" /></td> 
    </tr> 
</table> 

Und was das Styling geht, tun nur

td { 
    text-align: center; 
} 

, um es genau so aussehen, wie Sie es möchten.

+0

Nicht zugänglich freundlich. Das Hinzufügen von Labels, die jeder Eingabe zugeordnet sind, könnte helfen, aber ich denke nicht, dass eine Tabelle notwendig ist. – stealththeninja

Verwandte Themen