Log in

View Full Version : Image requirements for CSS Image Gallery



Atom
05-27-2011, 02:29 AM
Link (http://www.dynamicdrive.com/style/csslibrary/item/css-image-gallery/#thumb)

In using the image gallery, I find that some images will appear but others do not even though I'm pointing to a valid jpg image file. Does this have to do the the format/size of the image? If so, how do I know what the format specifications are?

thanks.

Atom

traq
05-27-2011, 02:38 AM
if your markup is correct and you're using a valid image, then it should work fine. If you'd like further help,

Please post a link to the page on your site that contains the problematic script so we can check it out.

Atom
05-27-2011, 02:49 AM
if your markup is correct and you're using a valid image, then it should work fine. If you'd like further help,

Please post a link to the page on your site that contains the problematic script so we can check it out.


Here is the link (http://www.siftradingsystems.com/ChartGallery_02.html).

I've been putting up some new random images which I'm making with the W7 Snipping tool. They all seem to work, but other images do not display for reasons which I'm trying to understand.

traq
05-27-2011, 04:10 AM
I get a 404 page when I try to view /images/Badger.jpg. check to make sure the path is correct.

jscheuer1
05-27-2011, 04:49 AM
The path is correct, but the filename is:

Badger Logo.jpg

I just looked and it was a different image, Hannah.jpg. The actual filename is:

HannaH.jpg

Beverleyh
05-27-2011, 10:50 AM
Maybe part of your problem lies with working locally on a windows machine but using a web host with a unix environment?

Windows systems are not sensitive to case so a web page viewed locally will still display an image called "my-pic.jpg" even if the HTML uses "<img src="My-Pic.JPG" ... >" or "<img src="MY-PIC.jpg" ... >"

Unix systems are case sensitive, so the file names have to be exact - an image called "my-pic.jpg" needs the HTML to be "<img src="my-pic.jpg" ... >" otherwise it wont work.

Atom
05-27-2011, 11:12 AM
Thanks everyone. I was aware that file names are case sensitive, even though I was still making some mistakes in that area, but the big problem was that I was overelooking the case of the file name suffix. That's what was really causing most of my problems.

Atom

traq
05-27-2011, 12:50 PM
when I work in Windows I always "unhide" file extensions and usually explicitly define them when saving a file. Of course, I usually just work under linux instead, where common sense stuff like that is part of the default setup. :D