.k-scrollview { margin: 0 auto; } .image-with-text { position: relative; } .demo-title { position: absolute; top: 0; left: 0; right: 0; margin: 0; padding: 15px; color: #fff; background-color: rgba(0, 0, 0, 0.4); text-align: center; font-size: 24px; }