Tagged: :hover
- This topic has 5 replies, 3 voices, and was last updated 8 years, 9 months ago by
nelissar.
Author | Posts |
---|---|
nelissar
July 17, 2016 at 9:02 am
|
Heads up! this post was created when Microthemer was at version 4. The current version is 7. Some references to the interface may be out of date. Hi, |
Abland
July 17, 2016 at 11:50 pm
|
Hi, Nimrod, If you create a selector for your link then add the pseudo-class hover to that selector. For example, if the selector on the link was: ** This is just a general answer. If you can provide a link for the site then the information can be more accurate. |
nelissar
July 18, 2016 at 8:36 am
|
hi, Thank you, |
Abland
July 18, 2016 at 11:40 am
|
For the first image try this:
What that does is add the image you want to show on hover as a background. The nice thing is it’s loaded so there will be no delay on hover. Your first image div has a unique id, #ma-osim, so the other two images will also need unique id’s to target them specifically. |
Sebastian
July 18, 2016 at 11:55 am
|
@Abland – hero, thanks for sharing your clever trick. I was just about to post a link to our how to article which explains an alternative technique for replacing HTML images with CSS background images via the GUI options: https://themeover.com/replace-existing-image-e-g-logo-new-one/ The point Abland makes about needing to add a unique id to the other image wrappers holds true with my suggestion too. Is that something you can add to your theme? Cheers, ps switching HTML images on hover is often achieved with JavaScript, which Microthemer now supports. But these CSS only approaches are simpler. |
nelissar
July 18, 2016 at 12:00 pm
|
hi, background-repeat: no-repeat; cheers and thank you for the help, |