-2
Personal what is the best way to center a responsive image within a responsive divtbm in % (in the case of a Row), that is to say that it has measures defined in pixels, with max-width: 100% for example. If anyone knows, wanted to know to align horizontally and vertically, I’ve tried all these below but the image does not center in the middle of Row.
.logo-rodape {
max-width: 100%;
align-items: center;
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: center;
top: 50%;
transform: translateY(-50%);
-webkit-transform: translateY( -50% );
-moz-transform: translateY( -50% );}
Put your full code including html and your style.
– Felipe Duarte
@felipeduarte my html has 400 lines and the css 900, is sure?
– Clayton Furlanetto
kkkk I say only the part you quoted the image and your container, and also the style of the same.
– Felipe Duarte
Possible duplicate of How best to center an element vertically and horizontally?
– nunks
@nunks.lol if you realize has nothing to do with one another, my question is to centralize without losing responsiveness, the other subject only comes to centralize element, if had.
– Clayton Furlanetto
@Claytonfurlanetto Putz guy, so specify a little better what you need. Judging from your comments on the answers, I’m not the only one who didn’t understand your question. Maybe present your problem with a minimum, complete and verifiable example help people provide you with an answer that suits you.
– nunks
Hello, The ideal is to use the image as the background of your div. .
– Neo
@nunks.lol I will specify: How to center an object horizontally and vertically within a div, leaving the div and the responsive image.
– Clayton Furlanetto