Как вы можете видеть, дети [обновление] выходят из родительского элемента [feeds]. Как я могу это исправить?
#updates {
background: #B8C1C2;
box-shadow: inset 0 0 5px;
height: 100%;
float: right;
position: fixed;
top: 0;
right: 0;
z-index: 100;
overflow: auto;
}
#feeds {
width: auto;
height: 300px;
}
.update {
border-bottom: 1px solid #929493;
width: auto;
height: auto;
padding-bottom: 20px;
margin-top: 10px;
}
Благодарю!
Вы можете использовать overflow-x: hidden; если вы хотите, чтобы фид содержался и прокручивался. Просмотр здесь: jsfiddle.net/MathiasaurusRex/zP49Z/2
#feeds {
width: auto;
height: 300px;
overflow-x: hidden;
}