+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 15

Thread: Background color didn't show up

  1. #1
    Join Date
    Aug 2008
    Location
    Iowa
    Posts
    7

    Default Background color didn't show up

    Hi everyone!

    I am new here and I am getting my first website up and running. I also have a question for you guys already.

    I figured out how to upload my website via Nvu. Finally. I thought I did it right, but my background color did not upload. So, I went back and figured out how to get it to upload, but it is still not showing up on my website.

    Can you tell me how to make sure the next time I publish from Nvu it will upload my background color as well? ( I checked the upload images box ). Also, what file should that graphic be in on the server for it to show up on the website?

    I am a newbie to all of this, so if anyone can help me out here you will have to "spell it out" for me. As simple as possible. For now I am just trying to learn the basics in order to get up and running with simple websites.

    I look forward to participating in this forum, meeting new people and being part of the BlueHost family. Thanks.

    Gary

  2. #2
    Early Out's Avatar
    Early Out is offline Former Moderator, Still Respected
    Join Date
    Mar 2006
    Location
    Sector R
    Posts
    4,650

    Default

    You'll need to provide a link to your site. Without that, it's pretty much impossible to diagnose CSS problems like this.

  3. #3
    Join Date
    Apr 2008
    Location
    Morgan Hill, CA
    Posts
    361

    Default

    I'm a bit confused by your use of the term "background color" versus "background image".

    Does your background consist of an image file or is it a solid color? The two are coded differently.

    Does the background appear correctly when you view the web page locally from your hard drive with a browser?

  4. #4
    Join Date
    Aug 2008
    Location
    Iowa
    Posts
    7

    Default

    Here is the link, http://www.quantumphysicsofsuccess.com
    and when I view the web page locally the background color ( solid color ) does show.

    Thank you for your help guys.

    Gary

  5. #5
    Join Date
    Nov 2006
    Location
    Sydney, Australia
    Posts
    4,533

    Default

    You are using a background-color of white along with a background image which isn't showing up because it isn't in the location on my C drive where you are looking for it.

    background-image: url(file:///C:/Documents and Settings/Owner/My Documents/My Books/Books For Biz/Quantum Physics Of Success/Images/Ylwchalk.jpg);"

    I have no such directory as "Documents and Settings" on my C drive and so the search for that image fails as soon as it can't find that directory without even looking for the sub-directory called "owner" (which doesn't exist in my "E:\Documents and Settings\" either).

    Don't look for your background image on your visitor's hard drive, upload it to the web and look for it there.

  6. #6
    Early Out's Avatar
    Early Out is offline Former Moderator, Still Respected
    Join Date
    Mar 2006
    Location
    Sector R
    Posts
    4,650

    Default

    The background image file is in the same directory as the index.html, so just change this:

    background-image: url(file:///C:/Documents and Settings/Owner/My Documents/My Books/Books For Biz/Quantum Physics Of Success/Images/Ylwchalk.jpg)
    to:

    background-image: url(Ylwchalk.jpg)

  7. #7
    Join Date
    Apr 2008
    Posts
    407

    Default

    Quote Originally Posted by Early Out View Post
    The background image file is in the same directory as the index.html, so just change this:

    to:
    And make sure you upload the background image to the server.

  8. #8
    Early Out's Avatar
    Early Out is offline Former Moderator, Still Respected
    Join Date
    Mar 2006
    Location
    Sector R
    Posts
    4,650

    Default

    Oh, it's there, all right! I did a bit of poking around: http://www.quantumphysicsofsuccess.com/Ylwchalk.jpg

  9. #9
    Join Date
    Aug 2008
    Location
    Iowa
    Posts
    7

    Default

    Thanks for all of your help. I tried to fix it and I couldn't make it work. I also found that I have a link problem that has to be fixed. So, I am going to re-group and start over. I'll just make it simple, which my little one page website is anyway. I'll just go with what's in Nvu for colors, for now. Or just leave it white.

    That cPanel is a bit much for me right now also. Could you guys help me with one more thing? My file set-up? How do I set-up my files on my computer properly for uploading to the server? If I decide to use an image for my background, how do I file that so it will upload with my index page properly?

    Again, thanks for your help. I have been trying to learn a bunch of stuff lately and it has got my brain working overtime right now. But, I'll get it all figured out sooner or later.

    Gary

  10. #10
    Join Date
    Apr 2008
    Posts
    407

    Default

    Quote Originally Posted by Early Out View Post
    Oh, it's there, all right! I did a bit of poking around: http://www.quantumphysicsofsuccess.com/Ylwchalk.jpg
    404 not found? Just kidding, I bet he removed it.

    Quote Originally Posted by GAK
    Thanks for all of your help. I tried to fix it and I couldn't make it work. I also found that I have a link problem that has to be fixed. So, I am going to re-group and start over. I'll just make it simple, which my little one page website is anyway. I'll just go with what's in Nvu for colors, for now. Or just leave it white.
    If you just want a solid color for your background, put this in between the <head> and </head> tags in your HTML:

    HTML Code:
    <style type="text/css">
    <!--
    body {
    background-color: #66CCFF;
    }
    -->
    </style>
    Of course you'll want to substitute the "#66CCFF" with a HTML color code of your choice.

    Quote Originally Posted by GAK
    That cPanel is a bit much for me right now also. Could you guys help me with one more thing? My file set-up? How do I set-up my files on my computer properly for uploading to the server? If I decide to use an image for my background, how do I file that so it will upload with my index page properly?
    You don't have to change anything about the files to upload them correctly. The way you are uploading them now is fine. The problem is your HTML code and how it's referencing the image. You'll need to manually edit your HTML as Early Out describes. Then, if you upload both the HTML page and the image, it should work just fine.

    I would recommend using an FTP application like FileZilla to easily upload your files instead of cPanel's built in uploader.

+ Reply to Thread

Posting Permissions

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