0
I’m trying to center the logo on this panel by dragging it to the left.
Here’s my HTML code where I quote it
<div class="logoLogin">
<img src="images/perfil-black.png">
<div>
I’ve tried to use padding
and margin
in the css sheet and I still can’t drag the logo to the left.
.logoLogin {
padding-top: 5px;
/* margin-bottom: 5px;*/
}
How can I fix this?
And what CSS you’re using?
– Woss
@Andersoncarloswoss whole sheet or part of padding/margin?
– SHRIMP
It might just be what’s wrong, starting from the external div to the image
– Woss
If you use the
margin: 0 auto;
on div should leave it and its content centralized.– Hamurabi Araujo
@Hamurabiaraujo did not work.
– SHRIMP
@Andersoncarloswoss put the CSS part.
– SHRIMP
@acmobile the
margin: 0 auto;
only works if the image is not float. Try putting something likedisplay: block; margin: 0 auto; float: none;
. Another thing that can help is to leave the image withmax-width: 100%;
because it seems that she is bigger than the div "father".– tthaisnunes