good morning, I want to know how to put the footer down to the main, that is, when the page is too big that the footer does not appear until you go through the bar, I tried everything I searched but nothing , this is the css that I put:
css:
.footer{
background-image: url("../img/swirlStripes.jpg");
color: white;
width: 100%;
height: 100px;
position: fixed;
bottom: 0;
}
html:
<?php $refa = base_url('assets'); ?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="<?= $refa ?>/css/header.css" type="text/css">
</head>
<body>
<div class="header">
<div class="logo">
<img src="<?= $refa ?>/img/HeaderV3_T1_Carta.png">
</div>
</div>
<hr class="hr">
<div class="main">
<div>
<div class="footer">
<h5>Página creada por Macx®. Todos los derechos reservados.</h5>
</div>
</body>
</html>
and it appears to me like this:
As you can see the footer shows me over the contingency that I put.