Hoe OM - Lys Groep
Leer hoe om 'n basiese lys te omskep in 'n "lysgroep" met CSS.
Lys Groep
- Adele
- Agnes
- Billy
- Bob
- Calvyn
- Christina
- Cindy
Hoe om 'n lysgroep te skep
Stap 1) Voeg HTML by:
Voorbeeld
<ul>
<li>Adele</li>
<li>Agnes</li>
<li>Billy</li>
<li>Bob</li>
<li>Calvin</li>
<li>Christina</li>
<li>Cindy</li>
</ul>
Stap 2) Voeg CSS by:
Voorbeeld
ul {
list-style-type: none; /* Remove bullets */
padding:
0; /* Remove padding */
margin: 0; /* Remove margins */
}
ul li {
border: 1px solid #ddd; /* Add a thin border
to each list item */
margin-top: -1px; /* Prevent double borders */
background-color: #f6f6f6; /* Add a grey background color */
padding: 12px; /* Add some padding */
}
Wenk: Gaan na ons CSS-lyshandleiding om meer te wete te kom oor HTML-lyste en hoe om dit te stileer.