Is there a way to add background when using css3 multiple backgrounds images? -


i using css3 multiple backgrounds images. wonder if possible add top layer background pseudo-classes :hover or :active?

yes, possible have pseudo-classes work background. users uncomfortable user experience :hover or :active.

you can apply css multiple div this:

.background1.background2{     background-image: url(background1.png), url(background2.png);     background-position: center, center;     background-repeat: no-repeat, no-repeat;     backgroun-size: 100%, 50% } 

or can apply css multiple div (depend how want image presented browser:

.background1{     background-image: url(background1.png);     background-position: center;     background-repeat: no-repeat;     background-size: 100%; }  .background2{     background-image: url(background2.png);     background-position: center;     background-repeat: no-repeat;     background-size: 50%; } 

if want change background randomly recommend using css3 animation or jquery change on refresh.

css3 animation
jquery change on refresh


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

python - Django-cities exits with "killed" -

python - How to get a widget position inside it's layout in Kivy? -