Dumb ass HTML question

  • Page

    of 1

    Previous Next
  • RedSparrows 1 May 2012 14:21:58 21,988 posts
    Seen 3 hours ago
    Registered 7 years ago
    HIII!

    I am building a site for myself, and I suck.

    I can view an image, entitled pp.jpg, fine locally - looking at the local HTML through Firefox, it appears.

    I put the index.html file, and pp.jpg, in the SAME directory on the FTP thingy.

    But when I go to the page online, everything but the image loads. What gives?

    I have the img stuff as thus (hope this works...):



    and pp.jpg is, as I say, in the same directory as the index.html file.

  • Lexx87 1 May 2012 14:23:47 20,869 posts
    Seen 42 minutes ago
    Registered 8 years ago
    You've not closed the img tag looking at that.



    Try that.

    Edited by Lexx87 at 14:27:31 01-05-2012

    Speak the truth hussy!

  • sport 1 May 2012 14:24:27 12,522 posts
    Seen 1 hour ago
    Registered 9 years ago
    When I view the source of the page I can't find "pp.jpg" anywhere.

    EDIT: Or is it a separate site you're talking about?
    EDIT 2: And Lexx is right.

    Edited by sport at 14:25:53 01-05-2012
  • RedSparrows 1 May 2012 14:27:29 21,988 posts
    Seen 3 hours ago
    Registered 7 years ago
    The source is on another page - not that blog page.
  • RedSparrows 1 May 2012 14:27:51 21,988 posts
    Seen 3 hours ago
    Registered 7 years ago
    fucking moron I am

    It's ALWAYS these little tags.

    Hmm, still not showing.

    Edited by RedSparrows at 14:29:48 01-05-2012
  • Lexx87 1 May 2012 14:27:59 20,869 posts
    Seen 42 minutes ago
    Registered 8 years ago
    Also try specifying the full image directory in src if that doesn't work.

    Speak the truth hussy!

  • RedSparrows 1 May 2012 14:30:53 21,988 posts
    Seen 3 hours ago
    Registered 7 years ago
    Yeah, here's my question. I realise it's stupid, but there we go:

    When defining the directory, I simply use pp.jpg, because it's in the SAME directory as the HTML in question - hence it's relative.

    So if I was to put it in a folder called 'images', would it simply be img src="images/pp.jpg"?
  • Deleted user 1 May 2012 14:32:54
    Have you checked that your extension is lowercase jpg and not uppercase JPG or even jpeg?

    Edited by HairyArse at 14:34:47 01-05-2012
  • sport 1 May 2012 14:34:03 12,522 posts
    Seen 1 hour ago
    Registered 9 years ago
    RedSparrows wrote:
    Yeah, here's my question. I realise it's stupid, but there we go:

    When defining the directory, I simply use pp.jpg, because it's in the SAME directory as the HTML in question - hence it's relative.

    So if I was to put it in a folder called 'images', would it simply be img src="images/pp.jpg"?
    You could use "/images/pp.jpg" - the first forward slash indicates the root, so that link should work on any page on the site.
  • Lexx87 1 May 2012 14:34:19 20,869 posts
    Seen 42 minutes ago
    Registered 8 years ago
    Yes Red.

    Speak the truth hussy!

  • RedSparrows 1 May 2012 14:43:17 21,988 posts
    Seen 3 hours ago
    Registered 7 years ago
    HairyArse wrote:
    Have you checked that your extension is lowercase jpg and not uppercase JPG or even jpeg?
    It was PP.jpg in the root, and pp.jpg in the source.

    /facedesk

    Call myself an editor.

    p.s check out my blog! lol

    Edited by RedSparrows at 14:43:39 01-05-2012
  • Mr-Brett 1 May 2012 14:48:00 12,723 posts
    Seen 21 hours ago
    Registered 8 years ago
    I see you care not for centre aligned images. Out of interest have you been doing any of the codecademy html/css lessons?

    Portable view - Never forget.

  • Lexx87 1 May 2012 14:49:43 20,869 posts
    Seen 42 minutes ago
    Registered 8 years ago
    Yeah actually align the images centrally, would look better.

    Speak the truth hussy!

  • RedSparrows 1 May 2012 14:50:08 21,988 posts
    Seen 3 hours ago
    Registered 7 years ago
    I've got an internal CSS jobby that has set margins to push everything to the middle. It works (incredibly)!

    No, I haven't. I think I will start - but will finish some more JS, I think.

    Need to get back to that, but have been doing this HTML as prep for possible work with someone.
  • Mr-Brett 1 May 2012 14:56:20 12,723 posts
    Seen 21 hours ago
    Registered 8 years ago
    Internal CSS? as in an inline style? looking at he source it looks like you do (well in page I can never remember if that's called inline), not something I'm a big fan of myself but I guess it's fine for tumblr since it's all one page anyway.

    I was just curious because I've let the JS stuff slide a bit too. I recently started doing it again and noticed there's a fair amount of html/css stuff on there now. If it's any good then I might use it to brush up and learn the proper ways of doing it rather than my own bodged methods.

    Portable view - Never forget.

  • RedSparrows 1 May 2012 14:59:18 21,988 posts
    Seen 3 hours ago
    Registered 7 years ago
    Nah that blog page isn't the site I've done HTML on - I've built myself a little site under my own name etc. Tumblr is too advanced for me atm.

    But you are right, that Goya etching should be centred. I'll do that in a minute - I normally fuck it up though :(

    Good to know HTML/CSS is there. I'll get back onto it after I have an interview tomorrow...
  • mal 1 May 2012 15:02:17 22,332 posts
    Seen 22 hours ago
    Registered 12 years ago
    Lexx87 wrote:
    You've not closed the img tag looking at that.



    Try that.
    Bear in mind you're using an XML-style tag there, so it'll be valid XHTML but not valid HTML 4, and I believe not valid HTML 5 either. Still, most browsers should render it fine, supporting XHTML as they do.

    Cubby didn't know how to turn off sigs!

  • RedSparrows 1 May 2012 15:03:58 21,988 posts
    Seen 3 hours ago
    Registered 7 years ago
    Mal, how would it be done in HTML 4/5? I'm using XHTML from a rather old source to double check bits and bobs.
  • Lexx87 1 May 2012 15:04:39 20,869 posts
    Seen 42 minutes ago
    Registered 8 years ago
    Well okay for mal :)

    Like that Red.

    Edited by Lexx87 at 15:05:19 01-05-2012

    Speak the truth hussy!

  • Page

    of 1

    Previous Next
Log in or register to reply