2
I’m doing div’s and I’m having a hard time lining up div’s the way I need to, like in the following picture :
But it’s getting like this :
#total {
background-color: red;
width: 300px;
height: 400px;
}
#pequeno {
background-color: yellow;
float: right;
width: 50px;
height: 60px;
}
#maior {
background-color: blue;
float: right;
width: 50px;
height: 100px;
}
<div id="total">
<div id="pequeno"> </div>
<div id="maior"></div>
</div>
Can you help me??
Currently, there are better techniques for element positioning. I would say for you to use
float
in very specific cases.– Renan Gomes