HTML Tutorial


 /help/HTML Help Forum   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
background
Post new topic   Reply to topic    HTML Help Forum -> General HTML
View previous topic :: View next topic  
Author Message
ak24_7



Joined: 23 Dec 2004
Posts: 3

PostPosted: Thu Dec 23, 2004 5:36 pm     background Reply with quote

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

PostPosted: Fri Dec 24, 2004 7:01 am     Reply with quote

I am confused. Why add the background image twice? And you style sheet goes in the <HEAD>
prabhu



Joined: 25 Dec 2004
Posts: 5

PostPosted: Sat Dec 25, 2004 3:36 am     Re: background Reply with quote

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

PostPosted: Sat Dec 25, 2004 12:46 pm     ... Reply with quote

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

PostPosted: Sun Dec 26, 2004 8:03 am     Reply with quote

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

PostPosted: Mon Dec 27, 2004 4:58 pm     **the page** lol... Reply with quote

http://melodramatic.com/users/psychoticbitch there's the link to the page... I want the white tables with writing in them to match the background...
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8748
Location: Castle Pines North, CO USA

PostPosted: Mon Dec 27, 2004 5:11 pm     Reply with quote

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>)
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum -> General HTML All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
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
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
DARFUR
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial