HTML Tutorial


 Forum HomeForum Home   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 Help!
Post new topic   Reply to topic    HTML Help Forum Index -> CSS
View previous topic :: View next topic  
Author Message
The Hunter



Joined: 13 Feb 2008
Posts: 7

PostPosted: Mon Mar 10, 2008 8:43 am     Background Help! Reply with quote

I'm having problems getting a background to apper, my code:

html code:
Code:
<table class="header" height="90" width="100%">
<tr height="71" valign="top">
<td align="center"></td>
</tr>


css code:
Code:
#header
  {
  background-image:url('http://lord-of-the-land.co.nr/V1/lordofthelandbanner.png');
  }


Can someone help me please!
sticks464



Joined: 31 Dec 2006
Posts: 1109

PostPosted: Mon Mar 10, 2008 12:47 pm     Reply with quote

You have applied a class
Code:
table class="header

but you are using the # for the style, which is for an id. Try
Code:
.header
  {
background-image:url('http://lord-of-the-land.co.nr/V1/lordofthelandbanner.png') no-repeat;
  }
The Hunter



Joined: 13 Feb 2008
Posts: 7

PostPosted: Mon Mar 10, 2008 3:11 pm     Reply with quote

Still doesn't work and i have changed the # to . but still comes up with a nothing there.
sticks464



Joined: 31 Dec 2006
Posts: 1109

PostPosted: Mon Mar 10, 2008 5:55 pm     Reply with quote

Since the link to the image is no good it's no wonder.
Give this a try
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Untitled Document</title>
<style type="text/css">
.header
  {
background:url('http://www.lordoftheland.x10hosting.com/V1/lordofthelandbanner.png') no-repeat;
height:60px;
width:468px;
margin:0 auto;
  }
</style>
</head>
<body>
<table class="header">
<tr>
<td ></td>
</tr>
</table>
</body>
</html>
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> CSS 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 

 
HOSTING / DESIGN
MAKE MONEY

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