dorichcss
04-03-2008, 04:43 AM
1) Script Title:
Pop up image viewer
2) Script URL (on DD):
http://www.dynamicdrive.com/style/csslibrary/item/css-popup-image-viewer/
3) Describe problem:
This question has to do with variants of the original css. I have only rudimentary knowledge of CSS and so would appreciate some pointers.
I was interested in controlling the size of the image so I experimented with adding a simple class to the two image elements.
In the case of the smaller image this appeared to work as with the following:
html
img src="{filedir_1}thbnail.jpg" class="dim" border="0" alt="image" name="image"/>
css
img.dim {
height: 37px;
width: 60px;
}
This appears to work as expected, although whether its by luck or design I'm not sure.
Then I tried the same trick for the hover image, thus:
html
<span><img src="{filedir_1}LV_sales.jpg" class="large" border="0" alt="image" name="image" />
<br />US market is Shrinking</span></a>
css
img.large {
height: 124px;
width: 200px;
}
However, this doesn't work and the larger image appears in the original size.
I'd appreciate it if anyone can point out why this is not working, if there is a way to fix it, OR if there are some bad practices here that I should avoid.
Thx.
RB
Pop up image viewer
2) Script URL (on DD):
http://www.dynamicdrive.com/style/csslibrary/item/css-popup-image-viewer/
3) Describe problem:
This question has to do with variants of the original css. I have only rudimentary knowledge of CSS and so would appreciate some pointers.
I was interested in controlling the size of the image so I experimented with adding a simple class to the two image elements.
In the case of the smaller image this appeared to work as with the following:
html
img src="{filedir_1}thbnail.jpg" class="dim" border="0" alt="image" name="image"/>
css
img.dim {
height: 37px;
width: 60px;
}
This appears to work as expected, although whether its by luck or design I'm not sure.
Then I tried the same trick for the hover image, thus:
html
<span><img src="{filedir_1}LV_sales.jpg" class="large" border="0" alt="image" name="image" />
<br />US market is Shrinking</span></a>
css
img.large {
height: 124px;
width: 200px;
}
However, this doesn't work and the larger image appears in the original size.
I'd appreciate it if anyone can point out why this is not working, if there is a way to fix it, OR if there are some bad practices here that I should avoid.
Thx.
RB