Login | Register | FAQ
Anonymous

Image Confusion :3

+ Post a reply

8 posts Page 1 of 1


Image Confusion :3

by William » Sun Aug 05, 2012 1:05 am

Hi, Let me introduce my self. My name is William, I am New to all this computer coding and, I will be making a website. Here's my question; When I use the image code, for HTML, It apears as a small box, as if the image didn't load? The code I used for the image was this: <img src="html.net.png" alt="Logo" /> . As I am new, I am using your logo for a test to see if I do it right and it occurs every time I write the code. I used, Image hosting and the image apeared when it did the HTML code, but when I do it it doesn't work. :L Have I done something wrong? If you have a solution or comment, please do reply back to this. Thanks -William
User avatar

William

  • Posts: 18
  • Joined: Sun Aug 05, 2012 12:56 am

Re: Image Confusion :3

by William » Sun Aug 05, 2012 12:10 pm

NeverMind, Reading the problems everyone has with Images, I discoved my mistake. Thanks for helping :)
User avatar

William

  • Posts: 18
  • Joined: Sun Aug 05, 2012 12:56 am

Re: Image Confusion :3

by William » Sun Aug 05, 2012 6:29 pm

My mistake was as you said in a differnt thread that the image needs to be in the same file as HTML doc and CSS style sheet. Well, I do have other problems with Images too, Such as, Certain images I use when i do graphic design (Pixel Art) the image is small so it uses the page. Can I fix it by making the page the same colour as the Background-Color, Or is there a differnt way to fix the problem. :)
When it comes time I will make posts on PHP forum cause I got questions.. Bye for now! -William
User avatar

William

  • Posts: 18
  • Joined: Sun Aug 05, 2012 12:56 am

Re: Image Confusion :3

by William » Sun Aug 05, 2012 11:53 pm

Its ok, I solved the problem! :) New Problem** Heres the code I used: body {
background-color: #66FFCC;
background-image: url ("hawaiian.jpg");
background-repeat: no-repeat;
background-attachment: scroll;
background-position: right bottom;
}
For the CSS style sheet. The image was hawaiian.jpg and none of the code worked exept for "background-color: #66FFCC;". I don't understand why it isn't working for this picture, However it did work for the last picture that I used. Is something wrong in the code?
User avatar

William

  • Posts: 18
  • Joined: Sun Aug 05, 2012 12:56 am

Re: Image Confusion :3

by XainPro » Mon Aug 06, 2012 6:18 am

Please tell me is your CSS file and image file is in same directory ?
User avatar

XainPro

  • Posts: 3536
  • Joined: Fri Feb 17, 2012 8:10 pm

Re: Image Confusion :3

by William » Mon Aug 06, 2012 1:00 pm

They Are. Cause everything but the background-image, background-position and background-repeat, work. I don't understand why this doesn't work.
User avatar

William

  • Posts: 18
  • Joined: Sun Aug 05, 2012 12:56 am

Re: Image Confusion :3

by William » Mon Aug 06, 2012 4:20 pm

ok Thanks
User avatar

William

  • Posts: 18
  • Joined: Sun Aug 05, 2012 12:56 am

Re: Image Confusion :3

by William » Tue Aug 07, 2012 12:09 am

Thanks, So much for the help. :) I think I got it now :)
User avatar

William

  • Posts: 18
  • Joined: Sun Aug 05, 2012 12:56 am


+ Post a reply

Page 1 of 1