css - Scrollbar for parent containing absolutely positioned element -


i have following code jsbin. possible have vertical scroll when messages overflow wrapper? thanks!

replace css css demo

#wrapper {   position: relative;   height: 400px;   border: 1px solid #aaa;   margin-bottom: 20px; }  #list {   position: absolute;   bottom: 0;   width: 100%;   max-height:100%;   overflow-y: auto; }  .message {   background-color: orange;   padding: 10px;     border-bottom: 1px solid red; } 

Comments

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -