1
.citacao-bio {
background-color: #D9E5E3;
border: 10px solid #C2CCCA;
width: 250px;
box-sizing: border-box;
margin: 20px 40px;
float: left;
position: relative;
}
.citacao-bio:nth-child(2){
float: right;
}
<div class="citacao-bio">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec pulvinar dictum est, eget suscipit eros luctus blandit. Aliquam sodales nibh purus, vel aliquam nulla pretium et. Nunc pharetra tortor quis dolor viverra malesuada.
</div>
<div class="citacao-bio">
Integer bibendum est felis, sit amet tempor elit posuere tincidunt. Cras tempus pharetra velit sed aliquet. Vivamus blandit magna commodo facilisis accumsan. Sed vitae pretium augue.
</div>
I’m trying to put the second item to the right of the content, but without success, and I can’t find the error.
Post HTML to view...
– Diego Souza
are only two Ivs with lorem
– Murilo Melo
Here worked your code. There is nothing in the middle of these DIVS ?
– Diego Souza
@Withilogambôa only with this code worked perfectly. If it is breaking down it may be due to mathematical error, e.g.: you have a father div with 250px and this putting two daughters of 140px that would add 280px. Generating break error.
– Guilherme Lautert
but I’m just giving the float, the size is right, but it’s not going the right way
– Murilo Melo
Reading suggestion What does N mean in "Nth-Child" or "Nth-last-Child selectors"
– Bacco