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 image help
Post new topic   Reply to topic    HTML Help Forum Index -> Images & Graphics
View previous topic :: View next topic  
Author Message
quartzy



Joined: 26 Dec 2007
Posts: 413

PostPosted: Tue Feb 05, 2008 3:11 pm     background image help Reply with quote

I am redesigning my header so it loads quicker. I got a small stripe image that I want to repeat for the header background. For some reason it is not working, so does anyone know why?
Code:
#header      {
background-image: url('stripe.gif');
background-repeat: repeat y;
height: 90px; width: 750px;
border-bottom: 10px solid #00CA00;
margin-bottom: 30px; }
it should be easy enough I think to do this, but I cant figure out where I am wrong. As it is a test page I have not added any text but here is the HTML.
Code:
<body>
<div id="container">
<div id="header">

</body>
sticks464



Joined: 31 Dec 2006
Posts: 1283

PostPosted: Tue Feb 05, 2008 4:12 pm     Reply with quote

Code:
#header      {
background-image: url('stripe.gif');
background-repeat: repeat y;
height: 90px; width: 750px;
border-bottom: 10px solid #00CA00;
margin-bottom: 30px; }

Will make the stripe repeat vertical not horizintal. Change the repeat-y to repeat-x

Add your ending div tags
Code:
<body>
<div id="container">
<div id="header"></div
</div>
</body>
quartzy



Joined: 26 Dec 2007
Posts: 413

PostPosted: Wed Feb 06, 2008 12:12 am     re background image Reply with quote

Tried the above, and it still did not work. FP was reporting I had a broken link. So I deleted it and linked again, it then repeated only across one line, I made the background-repeat: repeat; taking out the x, and y, and it now works.
Corey Bryant
Site Admin


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

PostPosted: Wed Feb 06, 2008 10:55 am     Reply with quote



CSS Background will help more. You need a dash in there
Code:
background-repeat: repeat-y;
so browsers can understand it.

_________________
Corey
Residential Office Solutions | Mile High Merchant Accounts | Expression Web Blog
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> Images & Graphics 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