css3 - CSS height: (x)vh viewport not scrollable -
this general css question height: vh variable. have page split 2 columns, column on left needs fixed (i.e doesn't scroll or move when page moves) , column on right needs scroll indefinitely (i.e normal page would. here's screenshot illustration:
presuming start both sides of page being scrollable have given left column id #profilecol
added following css in order fix left section of page height of browser window:
#profilecol { z-index: 999!important; height: 100vh!important; }
update: have page scrolling both sides scroll, attempt add position:fixed
either column fries structure of page places 1 container on top of other.
does know why isn't working?
you can achive requirement
.left-col{ position:fixed; height:100vh; } .right-col{ height:100vh; overflow:auto; }
Comments
Post a Comment