I have a very simple page with a fixed footer. On this footer, I would like to place 5 images with centers with equal distances between them.
Here is my HTML / CSS:
Footer:
div.fixed {
position: fixed;
bottom: 0;
right: 0;
width: 100%;
height: 9%;
background-color: pink;
}
And HTML:
<div class="fixed">
<img style="max-width: 80%; margin-left: auto; margin-right: auto; max-height: 80%;" src="images/icons/icon.png">
<img style="max-width: 80%; margin-left: auto; margin-right: auto; max-height: 80%;" src="images/icons/icon.png">
<img style="max-width: 80%; margin-left: auto; margin-right: auto; max-height: 80%;" src="images/icons/icon.png">
<img style="max-width: 80%; margin-left: auto; margin-right: auto; max-height: 80%;" src="images/icons/icon.png">
<img style="max-width: 80%; margin-left: auto; margin-right: auto; max-height: 80%;" src="images/icons/icon.png">
</div>
Here is what I get:

I would like to display red icons in the center. It should respond based on the resolution of the display using the "%" value. I was thinking about creating a mesh in the footer. But is there an easier way to do this? I can not find anything about this on the Internet, I hope that this is not a duplicate! Thank you in advance for your help!
source
share