Background image not working :(

  • mistaJussu
  • Born
  • Born
  • No Avatar
  • Joined: Mar 03, 2009
  • Posts: 1
  • Status: Offline

Post March 3rd, 2009, 7:45 am

Hi. Im making my first website ever, and I have a problem. I set an image as a background for the page but the image isn't showing up. :cry: Im using Microsoft FrontPage 2003 and I have tried both .bmp and .jpg but nothing works. PLEASE HELP! :cry:
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post March 3rd, 2009, 7:45 am

  • SB
  • Moderator
  • Genius
  • User avatar
  • Joined: Nov 16, 2004
  • Posts: 8685
  • Loc: Aberdeen, Scotland
  • Status: Offline

Post March 3rd, 2009, 5:54 pm

Your post appears to be very vague which will only make it more difficult for someone to find a solution to.

I understand that because you are new to designing websites it may not be so easy to explain the problem.

If possible could you explain what steps you took in order to get the image to display. Do you have a live website where you can show us the problem? By live i mean is the website currently online or is it just on your computer?

In Frontpage it should show you some html code, could you copy and paste the code in a reply to this thread and someone on Ozzu should be able to help you out as soon as is possible.
  • samuel5212
  • Newbie
  • Newbie
  • No Avatar
  • Joined: Mar 01, 2009
  • Posts: 5
  • Status: Offline

Post March 3rd, 2009, 7:57 pm

if possible, post your code here so someone could give their solutions.

good luck!
  • Bogey
  • Bogey
  • Genius
  • User avatar
  • Joined: Jul 14, 2005
  • Posts: 8212
  • Loc: USA
  • Status: Offline

Post March 4th, 2009, 5:02 pm

CSS for it:
CSS Code: [ Select ]
.class {
   background-image: url('path/to/image.jpg');
}
  1. .class {
  2.    background-image: url('path/to/image.jpg');
  3. }
I also don't recommend you use .bmp as not every browser supports it.
"Bring forth therefore fruits meet for repentance:" Matthew 3:8
  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Joined: Dec 20, 2002
  • Posts: 8934
  • Loc: Seattle, WA & Phoenix, AZ
  • Status: Offline

Post March 4th, 2009, 5:59 pm

Also .bmp files are rather large in file size and not good for transferring on the internet via web pages. I would always avoid using .bmp files with web pages.
Ozzu Hosting - Want your website on a fast server like Ozzu?
  • Bogey
  • Bogey
  • Genius
  • User avatar
  • Joined: Jul 14, 2005
  • Posts: 8212
  • Loc: USA
  • Status: Offline

Post March 4th, 2009, 6:02 pm

Bigwebmaster wrote:
Also .bmp files are rather large in file size and not good for transferring on the internet via web pages. I would always avoid using .bmp files with web pages.

Well... that too :P

GIF are pretty small in file size... (I think it's it though... may be jpg), but anyway... GIF or JPG is much more widely used in web sites.
"Bring forth therefore fruits meet for repentance:" Matthew 3:8
  • SB
  • Moderator
  • Genius
  • User avatar
  • Joined: Nov 16, 2004
  • Posts: 8685
  • Loc: Aberdeen, Scotland
  • Status: Offline

Post March 5th, 2009, 12:30 am

Use gif only if the file is a graphic and contains text on it somewhere. Use jpg only if it is a photo of some sort.
  • bishop_ian
  • Newbie
  • Newbie
  • No Avatar
  • Joined: Apr 27, 2010
  • Posts: 14
  • Status: Offline

Post April 27th, 2010, 2:56 am

For any html file you cant use an image which is stored on your computer ,you have to set your computer as a server so the image is directly accessed from internet.The images must be online.

Post Information

  • Total Posts in this topic: 8 posts
  • Users browsing this forum: No registered users and 130 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.