aligning CSS rollover images?
-
I’m trying to put some CSS rollovers on a page but they refuse to align properly, I want them to be two to a row, but they keep going either stacking on top of eachother or going all over the place. Any ideas on how I can fix this? It’s been driving me mad all day!
This is the custom CSS:
.roll .rollover, .roll:hover .regular {
display: none;}
.roll:hover .rollover {
display: block;}and this is the HTML:
<img class=”regular” alt=”” src=”https://www.ico-online.net/jportfolio/wp-content/uploads/2013/10/index01.png” /><img class=”rollover” alt=”” src=”https://www.ico-online.net/jportfolio/wp-content/uploads/2013/10/index01a.png” /><div class=”roll”><img class=”regular” alt=”” src=”https://www.ico-online.net/jportfolio/wp-content/uploads/2013/10/inddex02.png” /><img class=”rollover” alt=”” src=”https://www.ico-online.net/jportfolio/wp-content/uploads/2013/10/index02a.png” /></div>the page can be seen here:
https://www.ico-online.net/jportfolio/home-2/?preview=true&preview_id=711&preview_nonce=8b51a00f58
- The topic ‘aligning CSS rollover images?’ is closed to new replies.