View Full Version : Need help installing CSS Dynamicdrive code

06-01-2006, 03:26 AM
Hi all, another new kid on the block as far as CSS is concerned!

I downloaded this Image gallery to install on my IF site, but there were no clear instructions as to how to go about installing it.


Secondly: Could I get some assistance by way of advice as to how to go about creating a new document in my site code so as to be able to use the code above as a Photogallery for my members?

Any Help would be greatly appreciated.


06-01-2006, 03:53 AM
You need to put this topic under 'Dynamic Drive Scripts Help' or something like that. And remember to delete this topic

06-01-2006, 03:58 AM

You put this in under the <HEAD> tag of your page.

<!-- Source: Dynamic Drive CSS Library -->
<!-- URL: http://www.dynamicdrive.com/style/ -->

<style type="text/css">

position: relative;
z-index: 0;

background-color: transparent;
z-index: 50;

.thumbnail span{ /*CSS for enlarged image*/
position: absolute;
background-color: lightyellow;
padding: 5px;
left: -1000px;
border: 1px dashed gray;
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 */



And you put this under the <BODY> tag of the page.

<a class="thumbnail" href="#thumb"><img src="media/tree_thumb.jpg" width="100px" height="66px" border="0" /><span><img src="media/tree.jpg" /><br />Simply beautiful.</span></a>

<a class="thumbnail" href="#thumb"><img src="media/ocean_thumb.jpg" width="100px" height="66px" border="0" /><span><img src="media/ocean.jpg" /><br />So real, it's unreal. Or is it?</span></a>

<br />
<br />

<a class="thumbnail" href="#thumb">Dynamic Drive<span><img src="media/dynamicdrive.gif" /><br />Dynamic Drive</span></a><br />
<a class="thumbnail" href="#thumb">Zoka Coffee<span><img src="media/zoka.gif" /><br />Zoka Coffee</span></a>