Web Design Forum: Small problem - Web Design Forum

Jump to content

WDF
WDF Premium Memberships Reseller Hosting
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Small problem

#1 User is offline   Dynamo 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 19
  • Joined: 05-August 08
  • Reputation: 0
  • Experience:Intermediate
  • Area of Expertise:Designer

Posted 16 August 2008 - 01:34 PM

Hey, its a stupid problem. Ive just started to learn and code in CSS, i just started now, but my background is not showing, anyone know why, heres my code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<style type="text/css">
body {
      background-image: url("image/stripes.png");
	  background-repeat: repeat;
     }
.wrap {
       margin-left: auto;
	   mergin-right: auto;
	   width: 1000px;
	   }
.header {
         background-image: url("images/banner.png");
		 background-repeat: no-repeat;
		 background-position: center;
		 height: 120px;
		 width: 100%;
		 }


</style>
</head>
<body>
<div class="wrap">
<div class="header" align="center">
</div>
</div>
</body>
</html>


Ive hardly started and got into this lil problem haha, thanks
0

#2 User is offline   Helen 

  • Spam sniper.... watching from the rooftops
  • View gallery
  • Group: Moderators
  • Posts: 3,232
  • Joined: 15-April 08
  • Reputation: 39
  • Gender:Female
  • Location:Cheshire
  • Experience:Advanced
  • Area of Expertise:Designer

Posted 16 August 2008 - 01:39 PM

is your css linked to the html?
0

#3 User is offline   Dynamo 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 19
  • Joined: 05-August 08
  • Reputation: 0
  • Experience:Intermediate
  • Area of Expertise:Designer

Posted 16 August 2008 - 01:40 PM

My CSS is internal at the moment, just to make it slightly easier as its my first css site. My header is showing fine, but the background isn't.
0

#4 User is offline   Dynamo 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 19
  • Joined: 05-August 08
  • Reputation: 0
  • Experience:Intermediate
  • Area of Expertise:Designer

Posted 16 August 2008 - 01:42 PM

hhehe, i had it as image/stripes.png, instead of images/stripes.png. Hehe, sorted. :)
0

#5 User is offline   Helen 

  • Spam sniper.... watching from the rooftops
  • View gallery
  • Group: Moderators
  • Posts: 3,232
  • Joined: 15-April 08
  • Reputation: 39
  • Gender:Female
  • Location:Cheshire
  • Experience:Advanced
  • Area of Expertise:Designer

Posted 16 August 2008 - 01:47 PM

Sorry I can't help further, but I too am only intermediate, but there are a lot of very knowledgeable people on here who will be along soon.

I have spotted a little mistake in .wrap though, it says mergin instead of margin.

(Don't worry about finding problems..... I do all the time :rolleyes: )
0

#6 User is offline   Dynamo 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 19
  • Joined: 05-August 08
  • Reputation: 0
  • Experience:Intermediate
  • Area of Expertise:Designer

Posted 16 August 2008 - 01:55 PM

Ohhh yeah thanks hehe, i was literally this moment about to ask why is my banner not in the middle, hahaha the typo was the problem - Thanks =]
0

#7 User is offline   FLY3 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 23
  • Joined: 18-August 08
  • Reputation: 0
  • Location:West Yorkshire
  • Experience:Nothing
  • Area of Expertise:Designer

Posted 18 August 2008 - 05:25 PM

Yes, when you get an obvious problem like this you can be looking at your code for ages scratching your head, the first thing you should do is check for any spelling mistakes or syntax errors, as this usually tends to be the case! B)
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users