html - Margin around set height and width -


as title says i'm looking add gap, know can setting different width want using margin. doesn't work, pushes div down (in jsfiddle doesn't add margin because of height:100%).

here's fiddle, https://jsfiddle.net/s31r2af4/

how can solve this? (no overflow:auto)

try this:

.chat-holder{   margin:10px;   height:calc(100% - 20px);   box-sizing:border-box; }  .sidebar{   width:50%;   height:500px;   background:purple;   overflow:overlay; } 

Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -