CSS position absolute and scroll issue -
im working on website template , want make photo on top. used position absolute set top -50px , left -50px. work have 1 issue scroll bar appear on bottom. css div :
#moon { background-image:url('img/moon.png'); width:289px; height:289px; position:absolute; top:-150px; left:-160px; overflow:hidden; }
give body overflow-x: hidden
also notice on small screens there no horizontal scrollbar(!), unless you'll handle responsive css.
Comments
Post a Comment