- This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
Viewing 6 posts - 1 through 6 (of 6 total)
- The forum ‘JavaScript’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › JavaScript › Hiding Blank Space
http://codepen.io/anon/pen/xcutF
I am attempting to use the above code to hide broken images within an image slider.
It works perfectly, but there is still blank space where the images *should* be. I believe it is because the images are within a list..what can I add to the JS code that will hide everything rather than just the images?
http://codepen.io/anon/pen/ngujp
Thank you in advance for your help!
Dude…the HTML in your second Codepen is fubar.
You have closing `` without corresponding `
And there is no CSS so we can’t see the styling.
Try correcting all of that and make one SINGLE Codepen with HTML/CSS & JS.
Is this better?
http://codepen.io/anon/pen/rDuwJ
I forgot to clarify that it is mainly the thumbnails I am trying to correct.. we are using template tags to pull in the image location, yet they are not all used in every application. I am hoping to find a solution that would hide the broken/unused images & re-align the thumbnails if possible.
Hopefully this is a much better message than the one I originally posted..
…bump?
> we are using template tags to pull in the image location, yet they are not all used in every application.
This is going to be used for thousands of different “pages” where specific information can be populated using template tags. The images are just one of the many things that can be pulled in using the tags, as they are different each time this gallery will be used.
Unless someone knows a good way to do this, even if JS isn’t required that’s fine, then I won’t be using the image gallery..
To hide broken image, I guess the easiest way would be to run a curl request to check the header. Depending on the amount of images you got, it can become very heavy.