EDit
I have found out that the issue is related to my previous question here: Responsive difference between mobile view display vs browser view, even though same size
So it works as expected in regular desktop view. But when I switch on devtools and mobile view, Chrome acts buggy. Something about an overflow behavior, like I described on that question. Like I don't even know how responsiveness supposed to be implemented.
Original
I have something like this:
Hello World Fixed .main { height: 2000px; } header { position: relative; } nav { display: flex; flex-flow: row wrap; background: red; position: fixed; top: 0; left: 0; bottom: 0; } nav span { flex: 0 0 100%; } I've setup this on codepen, and the nav element with position fixed bottom: 0, extends up to the height of the screen area.
But in my real example the same setup, the nav element extends the the bottom of the page content which in this case '.main' which has a height of 2000px or something.
I can't figure out any other difference I have, maybe some media query issue I don't know.
So could you find a simple solution to reproduce my issue that somehow make it that this nav element extends to the bottom of the page, what could be causing that?
Источник: https://stackoverflow.com/questions/781 ... m-of-the-s
Позиция фиксированная внизу: 0, перемещается в низ страницы, а не в низ экрана. ⇐ CSS
Разбираемся в CSS
1709722074
Anonymous
EDit
I have found out that the issue is related to my previous question here: Responsive difference between mobile view display vs browser view, even though same size
So it works as expected in regular desktop view. But when I switch on devtools and mobile view, Chrome acts buggy. Something about an overflow behavior, like I described on that question. Like I don't even know how responsiveness supposed to be implemented.
Original
I have something like this:
Hello World Fixed .main { height: 2000px; } header { position: relative; } nav { display: flex; flex-flow: row wrap; background: red; position: fixed; top: 0; left: 0; bottom: 0; } nav span { flex: 0 0 100%; } I've setup this on codepen, and the nav element with position fixed bottom: 0, extends up to the height of the screen area.
But in my real example the same setup, the nav element extends the the bottom of the page content which in this case '.main' which has a height of 2000px or something.
I can't figure out any other difference I have, maybe some media query issue I don't know.
So could you find a simple solution to reproduce my issue that somehow make it that this nav element extends to the bottom of the page, what could be causing that?
Источник: [url]https://stackoverflow.com/questions/78111334/position-fixed-bottom-0-goes-to-the-bottom-of-the-page-instead-bottom-of-the-s[/url]
Ответить
1 сообщение
• Страница 1 из 1
Перейти
- Кемерово-IT
- ↳ Javascript
- ↳ C#
- ↳ JAVA
- ↳ Elasticsearch aggregation
- ↳ Python
- ↳ Php
- ↳ Android
- ↳ Html
- ↳ Jquery
- ↳ C++
- ↳ IOS
- ↳ CSS
- ↳ Excel
- ↳ Linux
- ↳ Apache
- ↳ MySql
- Детский мир
- Для души
- ↳ Музыкальные инструменты даром
- ↳ Печатная продукция даром
- Внешняя красота и здоровье
- ↳ Одежда и обувь для взрослых даром
- ↳ Товары для здоровья
- ↳ Физкультура и спорт
- Техника - даром!
- ↳ Автомобилистам
- ↳ Компьютерная техника
- ↳ Плиты: газовые и электрические
- ↳ Холодильники
- ↳ Стиральные машины
- ↳ Телевизоры
- ↳ Телефоны, смартфоны, плашеты
- ↳ Швейные машинки
- ↳ Прочая электроника и техника
- ↳ Фототехника
- Ремонт и интерьер
- ↳ Стройматериалы, инструмент
- ↳ Мебель и предметы интерьера даром
- ↳ Cантехника
- Другие темы
- ↳ Разное даром
- ↳ Давай меняться!
- ↳ Отдам\возьму за копеечку
- ↳ Работа и подработка в Кемерове
- ↳ Давай с тобой поговорим...
Мобильная версия