Need some help here!

datett23

New Member
Hi all,

I have a problem. Basically, I want to insert an image as a background for my webpage. The editor I use (third party) only lets me add background colors. And I have been struggling to insert the script within the textbox alloted for it.
Can anyone help me please? I have a certain level of understanding of basics of HTML. Yet, I seem to be unable to get this to work.
Any help more than welcome.
Datett
 

aaln

New Member
Use notepad (if Windows- I use Linux.)

In the html page:

<body id="homepage">

In the css page:

#homepage {
background: transparent url('path/to/image/pix.jpg') no-repeat 0 0;
}

That should do the trick.
 

PixelPusher

Super Moderator
Staff member
aaln's got it right...if you have a firm grasp of html just use a simple text editor like Notepad (PC) or Text Edit (Mac) to add the image. If you have an external stylesheet add the css (#homepage) to that. If you don't, create a "<style>" tag in the head.

HTML
HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Your Webpage Title</title>
<style type="text/css">
#homepage {
background: transparent url('path/to/image/pix.jpg') no-repeat 0 0;
}
</style>
</head>
 

bret

New Member
This should be a simple problem to fix. We can help if you can't get it worked out.
 
Top