I am trying to add a minimum of 50px margin to the top of my footer tag using CSS, but I haven't been successful with the min() function. I'm not sure if I am overlooking something or if there is another correct approach to achieve this.
* {
--red: #f70000;
--gold: #caa866;
--blue: #004d96;
--BGblue: #004d96ef;
--white: rgb(230, 230, 230);
--traswhite: rgba(235, 235, 235, 0.5);
--black: rgb(20, 20, 20);
--trasblack: rgba(20, 20, 20, 0.6);
--warning: #CC3300;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
html {
scroll-behavior: smooth;
}
body {
min-height: 100vh;
background-color: var(--white);
display: flex;
flex-direction: column;
transition: all ease-in-out 0.3s;
}
footer {
display: flex;
flex-direction: row;
margin-top: 50px;
width: 100%;
height: 200px;
background-color: var(--black);
transition: all ease-in-out 0.3s;
}
<footer>
<p style="color: white">content in the footer</p>
</footer>