html - Background attribute not working CSS3 -
on site, declaring .menu
tag. style in css, used
.menu { background:url('images/menu.svg'); background-repeat: no-repeat; background-size:cover; background-position:center center; height:50px; width:50px; position:absolute; top:7px; left:7px; transition: .5s cubic-bezier(.67,.99,.48,.96); z-index:2000; }
i expecting menu.svg
show up. isn't. why? ps have tried background-image
.
if css file , image inside in different folder must code
.menu { background:url('../images/menu.svg'); background-repeat: no-repeat; background-size:cover; background-position:center center; height:50px; width:50px; position:absolute; top:7px; left:7px; transition: .5s cubic-bezier(.67,.99,.48,.96); z-index:2000; }
Comments
Post a Comment