Hi Tim, Without see the actual page, only the screen grabs, my immediate thought is that the 1 pixel border, which is adding 2-pixels to the width of your thumbnail div/td, is causing the div to overflow. Also, if you don't want your images to visually "jump" you may want to include a 1-pixel "invisible" border around the non-selected images. Then, you'll need to compensate for 14 additional horizontal pixels (7 thumbnails x 2 pixels added to each for border) in the thumbnail container div/td.
...Rob -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Big Moxy Sent: Sunday, January 13, 2008 12:16 AM To: CSS Discussion Subject: [css-d] Problem adding border to selected image url - http://missioninternet.com/test/ I'm making changes to a site that I did not develop. It uses tables extensively and some CSS. The vbscript code below displays up to 7 thumbnails in one table cell. The row above the thumbnails displays a larger image of the first thumbnail by default (see url). One of the changes is to add a border to the currently selected thumbnail. Except for the initial display I have it working. The problem is that after selecting a thumbnail the margin between images increases and overflows the width of the cell. The gallerpic class had already been defined and is shown as is on the url. I added .gallerypic img and the .gallerypicSelected class. I thought about putting the thumbnails into a <ul> but then I don't know how to define the wrapper div. I'm open to any and all ideas!! Thanks, Tim <td width="400" height="42" align="center"> <% While ((Repeat2__numRows <> 0) AND (NOT Recordset4.EOF)) %> <a href="/gallery/gallery2.asp?galleryID=<%=(Recordset4.Fields.Item("galleryID" ).Value)%>" target="iframevideo" onclick="changeCls(this)"><img src="/images/uploads/<%=(Recordset4.Fields.Item("picturethumb").Value)%>" alt="" class="gallerypic"></a> <% Repeat2__index=Repeat2__index+1 Repeat2__numRows=Repeat2__numRows-1 Recordset4.MoveNext() Wend %> </td> ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
