Solved

displaying blow-up image using only CSS

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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
manage footer size 4 54
Problem with spacing columns on a row in a table 10 25
Create CSS Animation for Page Transitions 4 26
Add box and text color changing for everything 1 26
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
The viewer will learn how to dynamically set the form action using jQuery.
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…

809 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