1) Script Title:
Pop up image viewer
2) Script URL (on DD):
http://www.dynamicdrive.com/style/cs...-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
cssCode:img src="{filedir_1}thbnail.jpg" class="dim" border="0" alt="image" name="image"/>
This appears to work as expected, although whether its by luck or design I'm not sure.Code:img.dim { height: 37px; width: 60px; }
Then I tried the same trick for the hover image, thus:
html
cssCode:<span><img src="{filedir_1}LV_sales.jpg" class="large" border="0" alt="image" name="image" /> <br />US market is Shrinking</span></a>
However, this doesn't work and the larger image appears in the original size.Code:img.large { height: 124px; width: 200px; }
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



Reply With Quote




Bookmarks