 |
|
|
| View previous topic :: View next topic |
| Author |
Message |
ak24_7
Joined: 23 Dec 2004 Posts: 3
|
Posted: Thu Dec 23, 2004 5:36 pm background |
|
|
|
I have a page on melodramatic.com and I'm trying to put a background on it. I've tried the codes
<style type="text/css" id="styleme">
body {
background-image: url(http://ourworld.compuserve.com/homepages/anduril/goth_004.gif);
background-repeat: no-repeat;
background-attachment: fixed;
background-position: bottom right;} </style>
-and-
<BODY BACKGROUND="http://ourworld.compuserve.com/homepages/anduril/goth_004.gif" TEXT=black LINK=black VLINK="white" >
...and they both gave me a back ground, but not how I wanted. I'm not sure how to explain what I'm trying to do, but I'll try.
This website is like an online journal kinda thing and I want the entire page to match the background. I don't want the white tables behind the words. I want the background to cover everything in the page except text and pictures. How do I do this?? |
|
Corey Bryant Site Admin

Joined: 15 May 2004 Posts: 8748 Location: Castle Pines North, CO USA
|
Posted: Fri Dec 24, 2004 7:01 am |
|
|
|
|
I am confused. Why add the background image twice? And you style sheet goes in the <HEAD> |
|
prabhu
Joined: 25 Dec 2004 Posts: 5
|
Posted: Sat Dec 25, 2004 3:36 am Re: background |
|
|
|
You have to use the following code only to slove your problem.
<BODY BACKGROUND="http://ourworld.compuserve.com/homepages/anduril/goth_004.gif" TEXT=black LINK=black VLINK="white">
| ak24_7 wrote: |
I have a page on melodramatic.com and I'm trying to put a background on it. I've tried the codes
<style type="text/css" id="styleme">
body {
background-image: url(http://ourworld.compuserve.com/homepages/anduril/goth_004.gif);
background-repeat: no-repeat;
background-attachment: fixed;
background-position: bottom right;} </style>
-and-
<BODY BACKGROUND="http://ourworld.compuserve.com/homepages/anduril/goth_004.gif" TEXT=black LINK=black VLINK="white" >
...and they both gave me a back ground, but not how I wanted. I'm not sure how to explain what I'm trying to do, but I'll try.
This website is like an online journal kinda thing and I want the entire page to match the background. I don't want the white tables behind the words. I want the background to cover everything in the page except text and pictures. How do I do this?? |
|
|
ak24_7
Joined: 23 Dec 2004 Posts: 3
|
Posted: Sat Dec 25, 2004 12:46 pm ... |
|
|
|
| I didn't use both at the same time. I tried the first one, and it didn't do what I wanted, so I deleted it and put in the second one. |
|
Corey Bryant Site Admin

Joined: 15 May 2004 Posts: 8748 Location: Castle Pines North, CO USA
|
Posted: Sun Dec 26, 2004 8:03 am |
|
|
|
Ah ok - well the code you provided showed you had it in there twice.
Get rid of the body background information in the opening <BODY> tag and use CSS.
Maybe you could supply a link to the offending page? It sounds like it is not the background image that is the problem |
|
ak24_7
Joined: 23 Dec 2004 Posts: 3
|
|
Corey Bryant Site Admin

Joined: 15 May 2004 Posts: 8748 Location: Castle Pines North, CO USA
|
Posted: Mon Dec 27, 2004 5:11 pm |
|
|
|
Just on a quick glance - you need to have your stylesheet in your <HEAD>. And you do not reference a DOCTYPE:
| Code: |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd"> |
This goes on the very first line (before <HTML>) |
|
|
|
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 vote in polls in this forum
|
|
|
|
|
 |
|
|
|
|
|
|
|