showing results for - "how to make color squares in angular"
Antonia
03 Feb 2020
1<div><div class='box red'></div>= Super Fast Trains</div>
2<br>
3<div><div class='box green'></div>= Mail/Express Trains</div>
4<br>
5<div><div class='box blue'></div>= Local/ Passenger Trains</div>
6
7
8// CSS
9
10.box {
11  float: left;
12  height: 20px;
13  width: 20px;
14  margin-bottom: 15px;
15  border: 1px solid black;
16  clear: both;
17}
18
19.red {
20  background-color: red;
21}
22
23.green {
24  background-color: green;
25}
26
27.blue {
28  background-color: blue;
29}