Solved

displaying blow-up image using only CSS

Posted on 2007-11-29
5
1,843 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 500 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Any business that wants to seriously grow needs to keep the needs and desires of an international audience of their websites in mind. Making a website friendly to international users isn’t prohibitively expensive and can provide an incredible return…
An enjoyable and seamless user experience can go a long way on an eCommerce site. While a cohesive layout and engaging copy play roles in creating a positive user experience, some sites neglect aspects that seem marginal but in actuality prove very …
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…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

792 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