ik ben bezig met css
ik wil deze aan de hand van classes rood wit blauw maken maar als ik td background color probeer in de class aan te roepen dan gebeurt er niks?
Kun je classes ook in een extern css aanroepen?
graag advies
ik wil deze aan de hand van classes rood wit blauw maken maar als ik td background color probeer in de class aan te roepen dan gebeurt er niks?
Kun je classes ook in een extern css aanroepen?
graag advies
Code:
<!DOCTYPE html>
<html>
<head>
<style>
.nl {
background-color: black;
color: white;
margin: 20px;
padding: 20px;
td background-color:#FF0004;
}
.be {
background-color: black;
color: white;
margin: 20px;
padding: 20px;
td background-color:white;
}
.de {
background-color: black;
color: white;
margin: 20px;
padding: 20px;
td background-color:blue;
}
</style>
</head>
<body>
<div class="nl">
<h2>NL</h2>
<p>Nederland</p>
<td align="center">Nederland staat bekend om zijn kaas</td>
</div>
<div class="be">
<h2>BE</h2>
<p>België</p>
<td align="center">België staat bekent om zijn chocola</td>
</div>
<div class="de">
<h2>DE</h2>
<p>Duitsland</p>
<td align="center">Duitsers drinken veel bier</td>
</div>
</body>
</html>