www.webdeveloper.com
Results 1 to 2 of 2

Thread: Image wont display in website builder using html

  1. #1
    Join Date
    Apr 2012
    Posts
    110

    Image wont display in website builder using html

    Hi, can anyone help me, Im battling to put the image in the site builder software with the html code. I put <img style = "width: 184px; height: 200px; "alt="" src= "file:////C:/Users/spencer/Desktop/website% 20 TEMPLATES/webmodel.jpg/model3.jpg.jpg" align = "top"><br>
    </body>
    </html> but actual image wont display, only a block.

  2. #2
    Join Date
    May 2005
    Location
    Gold Coast (MS)
    Posts
    2,207
    HTML file and image should be in same directory or at least set up a site directory structure and put all images in their own folder. Paths to your hard drive are not going to work when you upload the files to the web.

    All files in same folder:

    Code:
    <img style="width: XXpx; height: YYpx; border: 0;" src="model3.jpg" alt="Text Description">
    Image file in own folder:

    Code:
    <img style="width: XXpx; height: YYpx; border: 0;" src="images/model3.jpg" alt="Text Description">
    You can use:

    Code:
    <img style="width: XXpx; height: YYpx; border: 0;" src="../model3.jpg" alt="Text Description">
    or

    Code:
    <img style="width: XXpx; height: YYpx; border: 0;" src="../images/model3.jpg" alt="Text Description">
    See relative/full paths.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles