Как предотвратить перемещение контейнера div при сворачивании вкладкиCSS

Разбираемся в CSS
Ответить Пред. темаСлед. тема
Anonymous
 Как предотвратить перемещение контейнера div при сворачивании вкладки

Сообщение Anonymous »

Я создавал блог, но возникла проблема. Вы можете видеть в моем коде боковую панель (красного цвета), это контейнер div. Проблема в том, что когда я сворачиваю вкладку Chrome, боковая панель перекрывается с основным контентом. Пожалуйста, дайте мне решение.
Вы можете найти код здесь - https://jsfiddle.net/d4vr01sq/1/
Я пробовал все методы, но не решил.




Sports Blog


[*]






SB








Изображение




Home team has become the champion


Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.



27.07.2016
Imtiyaz Shah
Read 123
5 comments



Изображение




Home team has become the champion


Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.



27.07.2016
Imtiyaz Shah
Read 123
5 comments



Изображение




Home team has become the champion


Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.



27.07.2016
Imtiyaz Shah
Read 123
5 comments











body {
margin: 0px;
}

#logo {
width: 100px;
height: 100px;
background: red;
font-size: 64px;
text-align: center;
line-height: 100px;
border-radius: 50px;
float: left;
/**-webkit-border-radius: 30px;**/
}

a {
text-decoration: none;
color: black;
}

a:hover {
text-decoration: underline;
}

ul {
list-style: none;
}

header {
background: lightskyblue;
padding: 20px 0;
}

nav {
display: table;
height: 100px;
}

nav ul {
display: table-cell;
padding: 0 0 0 50px;
vertical-align: middle;
}

nav ul li {
float: left;
padding: 20px;
}

.content {
width: 980px;
margin: 0 auto;
}

.clearfix {
clear: both;
}

#main .articles .inner {
padding: 20px;
}

#main .articles h2 {
margin: 0 0 20px;
}

#main {
background: #ebebeb;
padding: 40px 0;
}

#main .articles {
float: left;
width: 786px;
background: white;
}

#main .articles .excerpt {
float: right;
width: 356px;
}

#main .sidebar {
float: right;
width: 260px;
min-height: 100px;
}

#main .articles .bottom .comments {
float: right;
}

.sidebar {
position: absolute;
top: 40px;
right: 319px;
background-color: red;
}

#main {
position: relative;
}

#main .articles .bottom {
border-top: 1px solid #999;
color: #999;
padding: 20px 0;
float: left;
width: 100%;
}

#main .articles .bottom > div {
float: left;
padding: 0 20px;
}

/*.bottom {
display: flex;
gap: 70px;
}*/


Подробнее здесь: https://stackoverflow.com/questions/791 ... ze-the-tab
Реклама
Ответить Пред. темаСлед. тема

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

  • Похожие темы
    Ответы
    Просмотры
    Последнее сообщение

Вернуться в «CSS»