Computing.Net > Forums > Web Development > Website Background Images

Website Background Images

Reply to Message Icon

Original Message
Name: Rider3
Date: April 15, 2005 at 10:55:07 Pacific
Subject: Website Background Images
OS: XP
CPU/Ram: 512
Comment:

A simple HTML problem I hope! I have a background image for my website which is 1024*768 in size. The problem is that the image becomes a tiled image. I just want it to be one image. can anyone help??

Thanks in advance Jason


Report Offensive Message For Removal

Response Number 1
Name: Jamie_McCoy
Date: April 15, 2005 at 12:21:21 Pacific
Subject: Website Background Images
Reply: (edit)

use javascript to detect screen resolution, and output da appropriate sized image


roamhosting.net


Report Offensive Follow Up For Removal

Response Number 2
Name: Michael J (by mjdamato)
Date: April 15, 2005 at 13:59:27 Pacific
Subject: Website Background Images
Reply: (edit)

Use CSS with the property for background-repeat like this:

body
{
background-image: url(image.jpg);
background-repeat: no-repeat
}

See this page for more info: http://www.w3schools.com/css/pr_background-repeat.asp

Michael J


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: Website Background Images

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software