Я собираюсь завершить свой первый веб-проект, и когда я проверяю браузеры, я обнаруживаю, что firefox вызывает у меня следующую ошибку в нижнем колонтитуле.
просмотреть Chrome:
просмотреть Firefox:
Как вы можете видеть в других браузерах, он работает и отлично выглядит в firefox, это единственный, который создает для меня это пространство, если вы можете мне помочь, я был бы признателен. Вот код:
footer
{
position: absolute;
top: 2050px;
height: 330px;
}
footer div#aboutme
{
width: 50%;
height: 300px;
margin: 0px;
padding-bottom: 0px;
}
footer div#aboutme h3
{
width: 80%;
margin-left: 10%;
padding-top: 20px;
}
footer div#aboutme p
{
width: 80%;
margin-left: 10%;
padding-top: 15px;
}
footer div.rrss
{
position: relative;
width: 50%;
height: 150px;
margin: 0px;
top: -300px;
left: 50%;
padding-bottom: 0px;
}
footer div.rrss p
{
padding-top: 30px;
}
footer div.rrss a
{
padding-top: 15px;
}
footer div.suscription
{
position: relative;
width: 50%;
height: 150px;
margin: 0px;
top: -300px;
margin-left: 50%;
padding-bottom: 0px;
text-align: center;
}
footer div.suscription p
{
display: block;
padding-top: 0px;
padding-bottom: 30px;
}
footer div.suscription input:nth-of-type(1)
{
max-width: 175px;
}
footer div.suscription input:nth-of-type(2)
{
max-width: 125px;
border: none;
border-bottom: 1px solid white;
}
footer div#derechos
{
position: relative;
top: -299px;
}
footer div#derechos p
{
position: relative;
top: 15px;
}<footer>
<div id = "aboutme">
<h3>Acerca de mí...</h3>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
</div>
<div class = "rrss">
<p><strong>Encuentrame en:</strong></p>
<a href = "#"></a>
<a href = "" target = "_blank"></a>
<a href = "" target = "_blank"></a>
<a href = "#"></a>
</div>
<div class = "suscription">
<p>Recibe nuestras publicaciones en tu email.</p>
<input type = "mail" name = "email" placeholder = "Ingresa tu email" id = "input_registro">
<input type = "button" id = "button_registro" name = "button_registro" value = "Registrar">
</div>
<div id = "derechos">
<p>© 2018 All rights reserved | Privacity Policy</p>
</div>
</footer>






вот откуда взялась ваша беда:
footer div.rrss
{
position: relative;
width: 50%;
height: 150px;
margin: 0px;
top: -300px;
left: 50%;
padding-bottom: 0px;
}
Firefox перемещает его вверх по экрану, но не освобождает это место.
добавьте overflow:hidden в нижний колонтитул, чтобы сохранить его высоту 300 пикселей
footer
{
position: absolute;
top: 2050px;
height: 330px;
overflow:hidden; /* will not keep space used by the relative element */
}
footer div#aboutme
{
width: 50%;
height: 300px;
margin: 0px;
padding-bottom: 0px;
}
footer div#aboutme h3
{
width: 80%;
margin-left: 10%;
padding-top: 20px;
}
footer div#aboutme p
{
width: 80%;
margin-left: 10%;
padding-top: 15px;
}
footer div.rrss
{
position: relative;
width: 50%;
height: 150px;
margin: 0px;
top: -300px;
left: 50%;
padding-bottom: 0px;
}
footer div.rrss p
{
padding-top: 30px;
}
footer div.rrss a
{
padding-top: 15px;
}
footer div.suscription
{
position: relative;
width: 50%;
height: 150px;
margin: 0px;
top: -300px;
margin-left: 50%;
padding-bottom: 0px;
text-align: center;
}
footer div.suscription p
{
display: block;
padding-top: 0px;
padding-bottom: 30px;
}
footer div.suscription input:nth-of-type(1)
{
max-width: 175px;
}
footer div.suscription input:nth-of-type(2)
{
max-width: 125px;
border: none;
border-bottom: 1px solid white;
}
footer div#derechos
{
position: relative;
top: -299px;
}
footer div#derechos p
{
position: relative;
top: 15px;
}<footer>
<div id = "aboutme">
<h3>Acerca de mí...</h3>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
</div>
<div class = "rrss">
<p><strong>Encuentrame en:</strong></p>
<a href = "#"></a>
<a href = "" target = "_blank"></a>
<a href = "" target = "_blank"></a>
<a href = "#"></a>
</div>
<div class = "suscription">
<p>Recibe nuestras publicaciones en tu email.</p>
<input type = "mail" name = "email" placeholder = "Ingresa tu email" id = "input_registro">
<input type = "button" id = "button_registro" name = "button_registro" value = "Registrar">
</div>
<div id = "derechos">
<p>© 2018 All rights reserved | Privacity Policy</p>
</div>
</footer>Вы также можете рассмотреть сетку для макета нижнего колонтитула:
footer {
position: absolute;
top: 2050px;
height: 350px;
display: grid;
grid-template-columns: 1fr 1fr;
background: #444;
color: white;
}
footer div#aboutme {
grid-column: 1;
grid-row: 1 / span 2;
}
footer div#aboutme h3 {
width: 80%;
margin-left: 10%;
padding-top: 20px;
}
footer div#aboutme p {
width: 80%;
margin-left: 10%;
padding-top: 15px;
}
footer div.rrss {
grid-column: 2;
grid-row: 1;
}
footer div.rrss p {
padding-top: 30px;
}
footer div.rrss a {
padding-top: 15px;
}
footer div.suscription {
grid-column: 2;
grid-row: 2;
}
footer div.suscription p {
display: block;
padding-top: 0px;
padding-bottom: 30px;
}
footer div.suscription input:nth-of-type(1) {
max-width: 175px;
}
footer div.suscription input:nth-of-type(2) {
max-width: 125px;
border: none;
border-bottom: 1px solid white;
}
footer div#derechos {
grid-row: 3;
grid-column: 1 / span 2;
margin: auto;
}
footer div#derechos p {}<footer>
<div id = "aboutme">
<h3>Acerca de mí...</h3>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure
dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
</div>
<div class = "rrss">
<p><strong>Encuentrame en:</strong></p>
<a href = "#"></a>
<a href = "" target = "_blank"></a>
<a href = "" target = "_blank"></a>
<a href = "#"></a>
</div>
<div class = "suscription">
<p>Recibe nuestras publicaciones en tu email.</p>
<input type = "mail" name = "email" placeholder = "Ingresa tu email" id = "input_registro">
<input type = "button" id = "button_registro" name = "button_registro" value = "Registrar">
</div>
<div id = "derechos">
<p>© 2018 All rights reserved | Privacity Policy</p>
</div>
</footer>
Фиксированный
topдля нижнего колонтитула мне кажется плохим, почему бы вам не сказатьbottom: 0илиbottom: <footer height>, это сделало бы его намного более динамичным