View Full Version : Height attribute for CSS image gallery;

07-29-2007, 04:39 AM
1) Script Title: CSS Image Gallery

2) Script URL (http://www.dynamicdrive.com/style/csslibrary/item/css-image-gallery):

3) Describe problem: Can someone help me with how to add a height attribute to .gallerycounter in the css please?

07-29-2007, 05:13 AM
There are no attributes in css (the instructions are misleading). They are called properties, and they are given values. There is no .gallerycounter selector in the CSS Image Gallery.

I think you meant (for example):

position: relative;
/*Add a height property and set its value to the largest image's height to prevent overlaying*/

I've corrected the instructions (red).

07-29-2007, 02:16 PM
Thank you John. Much appreciated.

Is there also something else missing in the instructions? Does one not need a line like

<link rel="stylesheet" href="css/imagelibrary.css" type="text/css" media="screen" />

in the head of the html page?