0
Good morning, I’m having trouble leaving this box below with the inline display, the div box is the div that encompasses everything, the div hentaiBox is the div of each box, atulamente are all cascading I don’t know why, and I would like them to stand next to each other, And when you can’t fit on the screen anymore, stay down. The css code is at the end.
.hentaiBox>a>img {
float: left;
width: 170px;
height: 220px;
margin-right: 12px;
}
.hentaiBox>a>img:hover {
width: 175px;
height: 225px;
}
.nota {
font-size: 15px;
}
.nomeAnime {
font-size: 19px;
}
.episodiosAnime {
font-size: 14px;
color: gray;
}
.comentario {
font-size: 16px;
text-align: justify
}
.genero {
font-size: 14px;
color: gray;
}
.p2 {
color: gray;
}
<div class="box">
<div class="hentaiBox">
<a href="#">
<img src="~/images.jpg" />
</a>
<p class="nomeAnime">Nome do anime</p>
<p class="nota">Nota:
<font color="light-green">98</font> pontos</p>
<p class="episodiosAnime">4 episódio - completo</p>
<p class="genero">Genero1, Genero2</p>
</div>
</div>
vlw man, it helped a lot, but when I pass the Hover is activated it pushes everything a little to the side, I would like only the image to be bigger.
– igor3k
@predo_json vc noticed that in your CSS when you put the
img:hover
your mind thewidth
from 170px to 175px, then end up shifting even what is around. If you want another option change your code and put awidth
only 170px, and inimg:hover
you can puttransform: scale(1.1)
Another thing, you can only mark an answer as accepted, when you mark another answer it is valid as the accepted answer. So consider which answer really answered your problem and mark it, you can’t mark two answer with ok– hugocsl