I am pretty new in HTML and CSS (2 weeks) and this is the first time iam using Stack overflow. i am trying to make position of a img on the bottom of the div and in the center of the bottom side and are not able to find solution. I would like to do it without using position: absolute because img will move when you open page on smaller/bigger screen
it is this image i would like to move:"
<img class="mnt" src="mountain.png" alt="mountain image">
body {
text-align: center;
margin:0;
}
h1 {
font-size: 5.6rem;
margin:0;
color: white;
line-height: 2;
font-family: 'Clicker Script', cursive;
}
h2 {
font-weight: normal;
font-family: 'Kavivanar', cursive;
}
.nav {
background-color: #87c6eb;
text-align: right;
padding-top: 50px;
}
.top {
background-color: #87c6eb;
height: 100vh;
}
.programer {
font-size: 150%;
color: white;
}
.top-cloud {
position:absolute;
top:100px;
right: 300px;
opacity: 70%;
}
.bottom-cloud {
position:absolute;
left: 350px;
opacity: 45%;
}
.mnt {
/* ???????? */
}
<div class="top">
<nav class="nav">
<a href="#About" class="navigation">About</a>
<a href="#Work" class="navigation">Work</a>
<a href="#contact" class="navigation">Contact</a>
</nav>
<img class="top-cloud" src="cloud.png" alt="cloud img">
<h1>I`m Veljko</h1>
<h2 class="programer"><em>future programmer</em></h2>
<img class="bottom-cloud" src="cloud.png" alt="cloud img">
<img class="mnt" src="mountain.png" alt="mountain img">
</div>