Welcome to WebmasterWorld Guest from 22.214.171.124
Forum Moderators: not2easy
I need to get irregular thumbnail gaps in my CSS gallery but when I remove a thumbnail I get the dreaded red cross.
Does anyone know if the red cross can be replaced by a css style with a no image tag to display nothing but also keep the orginal image dimensions?
red cross: I presume you mean it's what your browser shows for a broken image ?
Changing the token for the broken image itself isn't something that's part of the CSS spec as far as I know.
But perhaps taking a step back and preventing the image from not being found would be a much easier solution, why don't you show us some simple code what's causing your problem ?
My problem is that instead of creating a list in regular thumbnails say 3 columns by 4 rows containing 12 thumbnails. I would like to remove certain thumbnails so that row 2 has 2 thumbs (instead of 4) and row 2 has three thumbs but in different columns for a modern irregular staggered look.
I have a faded image background which makes it rather difficult to use an image that is just a colour. Please see demo example: <removed> the black squares are the thumbnails and the top of the image is what I'm getting at the moment, second half is what i would like to see.
I'm sure my question will be clear once you see the image. It would be great if you could help. thanks
[edited by: jatar_k at 3:30 am (utc) on April 9, 2008]
[edit reason] no urls thanks [/edit]
I see a number of ways: float your images in there and float a dummy class that's just a given size but displays nothing in there for the empty spots. This will however put layout in your html and as such isn;t the best approach in a purist book.
Or use absolute positioning to put the images exactly where you want them. This has as drawback that the layout will not flow when the browser window is changed, bt I guess it's closer to what you seek..
<img src="#" id="img1" alt="image" />
I typicaly don't use much absolute positioning, but this would be a good moment to use it.