pseudo class - CSS. ::-webkit-scrollbar style in modal window is visible only after window resize -


i have defined css class

.my-scroll-hrz::-webkit-scrollbar {     height: 12px;     background-color: rgb(205, 205, 205);     border-top: 3px solid #fff; }  .my-scroll-hrz::-webkit-scrollbar-thumb {     box-shadow: inset 0 0 0 1px hsl(0, 0%, 80%);     background-color: rgb(102, 102, 102);     border-top: 3px solid #fff; } 

this css works on page (non modal content).

when use bootstrap modal window display content -> see standard scroll bar. custom class ('my-scroll-hrz') assigned div via js on data load. after window resize event (chrome developer tools open) styled scrollbar appears instead of standard one...

maybe 1 knows kind of black magic that?


Comments

Popular posts from this blog

PHP and MySQL WP -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

go - golang pprof for c library code -