First Website - Problem with images

9 replies
  • WEB DESIGN
  • |
Obviously a newbie and trying to complete my first website from a WSO I purchased recently. Using Gator hosting and my images are located in the public_html directory in cpanel, but will not show up on my sales page. Any ideas?
#images #problem #website
  • Profile picture of the author sndrsndv
    what code are you using to display the image?
    {{ DiscussionBoard.errors[1594601].message }}
    • Profile picture of the author citadel73
      jpeg images on HTML site.
      {{ DiscussionBoard.errors[1594653].message }}
  • Profile picture of the author sndrsndv
    ok well if its in your public directory you should just be able to do this

    <img src="image.jpg" alt ="image"/>

    that should/will work ?
    {{ DiscussionBoard.errors[1594687].message }}
  • Profile picture of the author citadel73
    Thanks for your help, sndrsndv. Fixed.
    {{ DiscussionBoard.errors[1594908].message }}
    • Profile picture of the author tjs1954
      Check the source code and make sure it is not pointing to graphics in a directory on your computer, If so just edit the line of code and make sure it says your domain name dot whatever, I assume you did upload all the graphics to your server.
      {{ DiscussionBoard.errors[1594935].message }}
  • Profile picture of the author citadel73
    tjs1954,

    Thank you too. Checked code & it's correct. The graphics were in the rood directory. What a great site!

    Harold
    {{ DiscussionBoard.errors[1595116].message }}
  • Profile picture of the author citadel73
    Sorry, "root" directory. :p
    {{ DiscussionBoard.errors[1595126].message }}
  • Profile picture of the author CarloD.
    You should create an image folder, May keep your root directory a bit more tidy.
    <img src="/Folder Name/imageName.jpg" alt ="image"/>
    <img src="/images/image.jpg" alt ="image"/>
    Signature

    {{ DiscussionBoard.errors[1595350].message }}
  • Profile picture of the author mattalways
    Yes you should be placing all images within a directory. Things will get very confusing if they aren't within a directory. If you had a directory with the name "images", you would code the images in like this:

    <img src="images/image.jpg">

    On Hostgator especially confusing because if you have add on sites, they all sit within the public_html directory.
    Signature

    Quit wasting your money! If you need a website, get me to do it right! I'll probably even do it for less! Design/Development/Software, I'm your guy! matt@snidge.com
    {{ DiscussionBoard.errors[1595717].message }}

Trending Topics