I have a circulo
class with several properties: font and shape, etc.
and I have another class circulo1
with the size and color property.
I have to make several circles of different sizes with the same color and in several different places on the page. However, I can not get the circle class to get all the properties of the class circle.
.circulo{
color:#fff;
line-height:300px;
vertical-align:middle;
text-align:center;
font-size:30px;
border-radius:50%;
-moz-border-radius:50%;
-webkit-border-radius:50%;
margin: 10px;
float: left;
}
.circulo1 .circulo{
background:red;
width:280px;
height:280px;
}
.circulo2 .circulo{
background:blue;
width:280px;
height:280px;
}
.circulo3.circulo{
background:red;
width:280px;
height:280px;
}
.circulo4.circulo{
background:blue;
width:280px;
height:280px;
}
.circulo5.circulo{
background:red;
width:280px;
height:280px;
}
.circulo6.circulo{
background:blue;
width:280px;
height:280px;
}
#bloco1{
margin-left: 0%;
}
#bloco2{
margin-left: 20%;
}
#bloco3{
margin-left: 40%;
}
<div id="bloco1">
<div id="1" class="circulo circulo1"> Tidbits1</div>
<div id="2" class="circulo circulo2">Tidbits2 </div>
</div>
<div id="bloco2">
<div id="3" class="circulo1"> Tidbits3</div>
<div id="4" class="circulo2">Tidbits4 </div>
</div>
<div id="bloco3">
<div id="5" class="circulo1"> Tidbits5</div>
<div id="6" class="circulo2">Tidbits6 </div>
</div>