?
Solved

displaying blow-up image using only CSS

Posted on 2007-11-29
5
Medium Priority
?
2,032 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

Question has a verified solution.

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

Does your audience prefer people in photos or no people? How can you best highlight what you’re selling? What are your competitors doing, and what can you do that is different and unique from them?  Continue reading to learn how to make your images …
Dramatic changes are revolutionizing how we build and use technology. Every company is automating, digitizing, and modernizing operations. We need a better, more connected way to work together as teams so we can harness the insights from our system…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
Suggested Courses

777 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