Results 1 to 3 of 3

Thread: HTML image elements mysteriously disappearing?

  1. #1
    Join Date
    Oct 2014
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default HTML image elements mysteriously disappearing?

    Please see https://www.princessly.com/ivory-lace-blush-pink-tulle-flower-girl-dress.html, scroll down to Product Gallery and there should be several large dress images but they are not displaying at all.

    When I check the HTML code and they are all there and the images are all correctly showing up if I access them directly in the browser. However, when I use Firebug to examine the <img> elements they seem to be faded out or hidden or something.

    I tried to add these CSS styles via Firebug to the <img> elements on .product_images_exhibit img:

    Code:
    display: inline !important;
    visibility: visible !important;
    But nothing happens. However if you go to the http://www.princessly.com/ivory-lace-blush-pink-tulle-flower-girl-dress.html - HTTP version (not HTTPS), the images are all displaying properly.

    This is really weird to my understanding. What is wrong and what's actually preventing the <img> elements to be rendered?

    Maybe Javascript? But I have no idea how to find out which JavaScript line is preventing these elements to be showing. How can I find them?

    Any help would be very much appreciated!
    Last edited by jscheuer1; 04-25-2016 at 08:35 PM. Reason: format

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    It's the width and height that's the problem. And it's inline in the served code, so either there was a typo, or some template or other server side code isn't working properly and/or not getting accessed on the secure page. Maybe a GD or similar server side script that gets the dimensions or calculates them in some way, might be unavailable on the secure side. Nothing definite anyone can see about that without access to the server though, even then it might be hard to figure out. But here's the evidence, on the working page we see in its source code:

    Code:
    <p><img src="http://www.princessly.com/me...lle-Flower-Girl-Dress-31.jpg" width="848" height="1272" alt="" title="" /></p>
    And non-working:

    Code:
    <p><img src="https://www.princessly.com/me...lle-Flower-Girl-Dress-31.jpg" width="" height="0" alt="" title="" /></p>
    You can use in css for images (img), and then you will see them:

    Code:
    height: auto;
    width: 100%;
    But it might mess up the presentation of other images on the site. Best to figure out where the erroneous source code is coming from and fix that.
    Last edited by jscheuer1; 04-25-2016 at 08:20 PM.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Jan 2009
    Location
    NH
    Posts
    675
    Thanks
    98
    Thanked 26 Times in 26 Posts

    Default

    You have a lot of code errors in the html file
    also, your css has 118 errors, it's 208 errors for the site overall. I would clean up your code with the tips from ths w3.org links I posted

Similar Threads

  1. Disappearing Image
    By DS928 in forum JavaScript
    Replies: 5
    Last Post: 06-03-2013, 04:14 PM
  2. HTML/CSS Help - Positioning Elements
    By ImplantedMind in forum CSS
    Replies: 4
    Last Post: 11-26-2010, 04:44 AM
  3. Replies: 3
    Last Post: 11-21-2008, 08:44 AM
  4. Is inner html elements can recognised by form or not ?
    By it_mohan2002 in forum JavaScript
    Replies: 1
    Last Post: 06-10-2008, 06:51 AM
  5. Mysteriously Vanishing Footer
    By kuau in forum PHP
    Replies: 6
    Last Post: 05-18-2008, 09:00 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •