Hello there I try to move down some pixels an image I just centered, bhut it doesn’t seem to happen!
Here is the code I have used so far…
.fearless{
display: block;
margin-left: auto;
margin-right: auto;
}
<img src="/toKoritsi/images/fearlessgirl.jpg" alt="fearless Girl" class="fearless"/>
can anybody show me a proper way to move the image a bit closer to the bottom without changing anything else?
thanks in advance…
the top edge of an element which is displayed block can be moved down by using
margin-topFor example:
You can also condense these commands to:
As an alternative, although I would try the above method first, you may try relative positioning and the top styles: