
Originally Posted by
oscardd
Hello,
I am back to ask another question:
How to go about having only the image show? I ask this because some descriptions of an image are short, long and some done have, so then there is always a large empty space between post!
You could try it with CSS - it might not be a suitable method (depends on the circumstances) but then again it might be, so give it a try.
First set the parent container visibility to hidden;
Code:
#example1 div ul li { /* LI that surrounds each entry */
visibility: hidden;
height: 300px;
}
Set an explicit height so that when the images inside are made visible again, they'll occupy a uniform space.
Then make the image inside visible again;
Code:
#example1 div ul li img { /* image inside each li entry */
visibility: visible;
}
This is an untested suggestion and it really depends on the size of image and if there is only one per post.
Maybe it will provide a workable option though?
Bookmarks