[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

displaying blow-up image using only CSS

Posted on 2007-11-29
5
Medium Priority
?
2,229 Views
Last Modified: 2013-11-19
Hello,

In the link I listed there is a black swatch rectangle. I am trying to use only CSS and XHTML to display a larger image when the mouse rolls over the swatch image. The swatch image you can see is 225px, and I want to also let the user see a larger image either with a popup or with a rollover, but I can't use javascript. Or if you have another idea that would be cool too.

Thanks!
0
Comment
Question by:weikelbob
  • 2
  • 2
5 Comments
 
LVL 7

Accepted Solution

by:
Wod earned 2000 total points
ID: 20377966
0
 
LVL 7

Author Comment

by:weikelbob
ID: 20378204
It's not working:

https://www.weddingmountain.com/pc-5577-546-satin-ribbon-edge-seans-test-2.aspx


<style type="text/css">
 
/*Credits: Dynamic Drive CSS Library */
/*URL: http://www.dynamicdrive.com/style/ */
 
.thumbnail{
position: relative;
z-index: 0;
}
 
.thumbnail:hover{
background-color: transparent;
z-index: 50;
}
 
.thumbnail span{ /*CSS for enlarged image*/
position: absolute;
background-color: white;
padding: 5px;
left: -1000px;
border: 1px solid black;
visibility: hidden;
color: black;
text-decoration: none;
}
 
.thumbnail span img{ /*CSS for enlarged image*/
border-width: 0;
padding: 2px;
}
 
.thumbnail:hover span{ /*CSS for enlarged image on hover*/
visibility: visible;
top: 0;
left: 60px; /*position where enlarged image should offset horizontally */
 
}
 
</style>
<a class="thumbnail" href="http://www.weddingmountain.com/skins/Skin_1/images/V70F-s_s225.jpg"><img src="http://www.weddingmountain.com/skins/Skin_1/images/V70F-s_s225.jpg" width="100px" height="66px" border="0" /><span><img src="http://www.weddingmountain.com/skins/Skin_1/images/V70F-s.jpg" /><br />Simply beautiful.</span></a>

Open in new window

0
 
LVL 7

Expert Comment

by:Wod
ID: 20378346
Did you change the HTML to use the CSS?
0
 
LVL 7

Author Comment

by:weikelbob
ID: 20378718
I'm using a shopping cart that supports CSS (aspdotnetstorefront). I don't think it supports your code. We aren't going to use a popup. Thank you for helping me out.

Good link though!

Thanks again,

Bob
0
 
LVL 4

Expert Comment

by:mandhjo
ID: 26470876
I'm sure this is long since closed and gone, but I was able to get the code at the link working in AspDotNetStorefront.  Brilliant!  Thanks, Wod!
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Australian government abolished Visa 457 earlier this April and this article describes how this decision might affect Australian IT scene and IT experts.
Strategic internal linking is often considered an SEO power technique, especially for content marketing. Do you need to hire an SEO agency to optimize you internal linking? No, this article will help you understand the basics of internal linking and…
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
Suggested Courses

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question