Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18

Thread: new member; coding question

  1. #11
    Join Date
    Mar 2007
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I opened yahoo and sent a request to you to become part of my buddy list.

  2. #12
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    Ok, for some reason, I did not recieve it. Did you send it to the right username?
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  3. #13
    Join Date
    Mar 2007
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    sorry for the delay, I'm working, and my daughter also just called me (she's having some throat problems and just wanted to talk), but I'm sending it to the correct address now.

  4. #14
    Join Date
    Feb 2007
    Location
    England
    Posts
    254
    Thanks
    0
    Thanked 5 Times in 5 Posts

    Default Just thought I would say

    You can use img close tags with strict xhtml
    Code:
    <img/>

  5. #15
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    Yea, but that is still not a closing tag for <img> (such as what the OP posted before)

    Code:
    <img ...></img>
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  6. #16
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Yea, but that is still not a closing tag for <img> (such as what the OP posted before)
    Yes it is. <img /> is directly equivalent to <img></img> in XHTML. It's just shorthand.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  7. #17
    Join Date
    Mar 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by wanderinon View Post
    Ok, to answer your question as best I can, because I don't quite understand the whole directory path issue completely yet; I'm working on that: The photographs have different names, but I'll start with the background image.

    I went outside and took a picture of the sky. When I uploaded it to my computer, I called it "background.jpeg", to keep it simple, and placed it in "my documents". The code I used was:
    <body background="background.jpeg">

    For the images, it was very much the same type of thing. The image is called "logo.jpeg", and it also is in "my documents". The html document is in "my documents" too, and the code is:
    <img src="logo" width="150" height="150Lori
    From what I see, I think that the others may have missed that you "don't quite understand the whole directory path issue completely yet;".
    It may be your whole problem.

    The directory structure issues are the same as they are for finding and using files on your computer.
    You could have dozens of files named background.jpg in any of thousands of directory locations on your computer.
    Your web page file could also be in any of those places on your computer.

    When you tell the web browser <body background="background.jpeg">, it makes an assumption that the background.jpeg file is in the same location as the HTML file. It will not go looking for it in the c:\[some path]\my documents directory.

    As a first attempt, try putting the background and logo files in the same directory as your HTML file.

    Hopefully that fixes things for this learning experiance.
    After that, a lot depends on what or how much style you want your programming (HTML is just a programming language for displays) to have.
    If you pile everything in your main directory, it becomes a mess where it is hard to determine what is current, what is old experiments, and what can be thrown out.
    You have to decide on what kind of structure you want.
    Frequently, people create a new directory for each project. Depending on how complicated the project is, it may have directories under it to contain the graphics or other sections of the project.

    Bill Fuhrmann

    P.S. I am also a relative newbie to web coding.

  8. #18
    Join Date
    Mar 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Tried this to see if I could get it to work with a jpg of my dog in the my documents folder and for the life of me couldnt do it. So i tried it with Dreamweaver and got this
    Code:
    <img src="file:///C|/Documents and Settings/User/My Documents/Kota.jpg" 
    width="500" height="400" />
    That | instead of the colon threw me. Hope that helps. And don't worry about getting in over your head thats how ya learn

Bookmarks

Posting Permissions

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