www.webdeveloper.com
Results 1 to 5 of 5

Thread: could it be the webeditor. Because no image will show.

  1. #1
    Join Date
    Apr 2012
    Posts
    110

    could it be the webeditor. Because no image will show.

    Hi, I typed in <img id="model3.jpg alt="model3 src="../spencer/pictures/Mywebsites/MyGraphics.co.za/model3.jpg" style="height:173px; width:130px: border-width:0px;"/>

    The editor changes it to <img id="model3.jpg" alt="model3" src="../spencer/pictures/Mywebsites/MyGraphics.co.za/model3.jpg" style="border-width:0px; height;173px width:130px;">

    Ive typed this code straight after the <body> tag. CSS wont work on this computer, I dont know why.

    THE IMAGE IS DEFINITELY IN THAT FILE. Im using html strict, or thats what the editor is using. Its Kompozer. do you think, I must try change the webeditor now, as Ive been trying to get images on for weeks now, or is it my program. Its windows vista, and I think its internet explorer7, not sure, the computer is over 5 years old now.

  2. #2
    Join Date
    Aug 2006
    Posts
    1,908
    ../spencer/pictures/Mywebsites/MyGraphics.co.za/model3.jpg is quite the interesting file path, are you sure that's correct?

    We have no way to check your work without seeing the actual site.

    Dave

    By the way, "model3.jpg" is not a legal ID. Not sure that has anything to do with the issue though.

    Dave

  3. #3
    Join Date
    Aug 2011
    Location
    Worthing, West Sussex
    Posts
    96
    Sounds like you're trying to add an image that exists on your computer and if you're adding this to the web, it's not going to be on the server.

    As tracknut says, we can't do much diagnostics as we don't have a clue what's going on your end.
    Titanium Web Designs Ltd - Bespoke websites and online systems

  4. #4
    Join Date
    Feb 2011
    Location
    Chuluota, Florida
    Posts
    144
    you should be doing
    Code:
    <img id="whatever" src="path/to/image.jpg" alt="Alternative text" />
    You should not be using html or css to resize the image. It will not really reduce the size of the file just the way it looks in the browser. Thus you can have a bunch of 4mb pictures on one page that you resized to 240px by 200px and they are each going to still load the full size of the file slowing down the computer. Resize the images and link them to the full size image but never resize the full size image with HTML or CSS. You can use infranview to batch resize images or something like gimp or fireworks.
    ----------------------------------------------------------------------------------------------
    WYSIWYG editors will never beat my hand written code!!!! Learn to do it in notepad and learn how to actually control your website! Current Project http://www.jmcanineservices.com

  5. #5
    Join Date
    Nov 2002
    Posts
    2,632
    Please keep posting in the same thread covering the same topic. This is the third thread covering this issue. I handled the CSS aspect in the 2nd one.

    EDIT: You really need to simplify your file structure. If there is no web server, simply make a base folder for all of your sites and then add a folder for each site within it.

    Local Path:
    Code:
    c:\sites\domain\images\
    Since your HTML files should already be inside the domain folder, this makes the path to your images easy.
    Code:
    src="images\image.jpg"
    This way when you upload your files online, the path to the images is still ok.
    Last edited by spufi; 04-22-2012 at 08:18 PM.

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