Images not displaying on websites.

jampost
jampost used Ask the Experts™
on
Images not displaying on websites.
2 images side by side. Left image shows – right image does not show. (Same code on both except position)
Same code; replace the right image with another image; same problem. Replace the right image with the left image (the left image to show left and right); but, only the left shows. Combine two images in one using the code for the left image. Nothing shows except the html border.
To see the issue, go to www.jandmmfg.com  (the “about” page) The image is missing, but the html border is showing.

Positioning is done with class .i4
Code for the about web page:


<%@ Page Language="VB" AutoEventWireup="false" CodeFile="About.aspx.vb" Inherits="About" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">

    <link rel="stylesheet" type="text/css" href="Site_Styles.css" />
   
    <title>Consistent reliable quality apparel manufacturing since 1994 at J&M Mfg in Baltimore</title>

    <style type="text/css">



          body {
    background-color: #C0C0C0;
    color: #000000;
    height: 1500px;
    width: 85%;
    margin: 25px 0px 7px auto;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2em;
    font-weight: normal;
    font-style: italic;
    border-bottom: 10px solid gold;
    }


          a.LinkButton {
     
    font-family: Georgia, "Times New Roman", serif;
    font-size: small;
    text-align: center;
    position: absolute;
    z-index: 1;
    width: 80px;
    right: 1054px;
    border: medium ridge #66CCFF;
    background-color: #4682B4;
    color: #FFFFFF;
    top: 800px;
    left: 325px;
    height: 20px;
 
    }


        .i {
        position: absolute;
        left: 300px;
        top: 25px;
       
       
        }

    .i1 {
        position: absolute;
        left: 550px;
        top: 25px;
       
       
        }

    .i2 {
        position: absolute;
        left: 670px;
        top: 25px;
       
        }

    .i3 {
        font-family: Georgia, "Times New Roman", serif;
        font-size: .5em;
        font-weight: normal;
        font-style: italic;

        }


     .i4 {
        position: absolute;
        left: 325px;
        top: 500px;
        border: solid;
        }

      .i5 {
        position: absolute;
        left: 620px;
        top: 517px;
       
        }

      .i6 {
        position: absolute;
        left: 450px;
        top: 815px;
        border: solid;
        }


         </style>
</head>
<body>
    <form id="form1" runat="server">
   
       

       

            <img src="Images/J_M__Logo_12-14-2018.png" class="i" style="height: 128px; width: 225px" />
            <img src="Images/about.png"class="i1" style="height: 129px; width: 89px" />
            <img src="Images/baltimoremaryland_2.jpg"class="i2"style="height: 129px; width: 225px"/>
       
       
       
       
       
        <div  class="i3" style="position: absolute; top: 170px; left: 325px; width: 550px; height: 326px;">
   
         
         &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
   
         
         We have been here in Baltimore, Maryland since 1994. We love this city, the people, and what we do. Keeping a software agreement going with Gerber Technologies for their latest version of Accumark software for pattern design editing, keeps us current with the design technology.
              <br />
         &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
         Dancewear and sportswear have always been heavy on our WIP schedule. Cutting and sewing for companies that do dye sublimation (generally active wear) has become a growing part of our business. In most cases we turn the orders in one day which makes us very valuable to our customers in the dye sub business; making us part of their team.
              <br />
         &nbsp;&nbsp;&nbsp;&nbsp;
         We have screen printing (large print area), high capasity 8-head Tajima embroidery and heat press. Keeping all of this at the same address is a huge convenience for us and our customers. I attribute our abilities to the incredible talent and people skills of my wife Myong Tillery shown with me below, and the skill and hard work from our great employees whom are definitely the heart of our team. If you need more info, please call. 443-415-0631 Thank you for taking the time to look into J &amp; M Manufacturing, Inc. -- Joe Tillery</p>

         </div>
       
       
         <img src="Images/J&M_2016-Array.png"class="i4" style="height: 280px; width: 550px" />
       
         
       
         <img src="Images/new_tajima.jpg"class="i6" style="height: 260px; width: 260px" />
       
         <div>
         <a href="index.html" class="LinkButton">Home</a>
         </div>

       
         <div>
   
         </div>
         </form>
         </body>
         </html>
screen-shot_12-19-2018.docx
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Ryan ChongSoftware Team Lead

Commented:
you're getting an error of:

A potentially dangerous Request.Path value was detected from the client (&).

try rename the image of "J&M_2016-Array.png" by removing the "&" or replace it with other character.
David FavorFractional CTO
Distinguished Expert 2018

Commented:
Looks like your HTML is mangled, where image names have no spaces between image + attributes.

Fix all https://validator.w3.org/nu/?doc=http%3A%2F%2Fwww.jandmmfg.com%2Fabout.aspx HTML syntax errors + retest.
jampostGeneral Maanager

Author

Commented:
Ryan Chong

I changed the image file name to JM_2016_Array.png saved in VS2012 - uploaded to the verio server. It might take a little while to propagate.
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

jampostGeneral Maanager

Author

Commented:
David Favor
The new code line for the image is:  (new image name)  --  (Added the alt attribute)
<img src="Images/JM_2016_Array.png"alt="about"class="i4" style="height: 280px; width: 550px" />
jampostGeneral Maanager

Author

Commented:
Still waiting to see the changes...
Ryan ChongSoftware Team Lead
Commented:
I changed the image file name to JM_2016_Array.png saved in VS2012 - uploaded to the verio server. It might take a little while to propagate.

ok, so by changing the image's name, it seems working fine now to display on the "About" web page.
Fractional CTO
Distinguished Expert 2018
Commented:
Still appears wrong.

You must have a space between png"alt=... else the browser won't have a clue what to do because...

Browsers know what to do with .png files.

Browsers can do nothing with a *.png"alt="about"class="i4"* image as this is not a valid extension.

The correct line should be...

<img src="Images/JM_2016_Array.png" alt="about" class="i4" style="height: 280px; width: 550px;" />

Open in new window


Notice closely where the spaces are included.

Also good form to end your style with a ";" to avoid problems when you tack on other attributes + forget to add the ";" + end up in a similar situation again.
jampostGeneral Maanager

Author

Commented:
Thank you Ryan and David. I appreciate your help. It appears to be working now.  --  Joe

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial