background-repeat: repeat y not working properly

This is a discussion on "background-repeat: repeat y not working properly" within the Web Page Design section. This forum, and the thread "background-repeat: repeat y not working properly are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Feb 21st, 2007, 12:21
AdRock's Avatar
SuperMember

SuperMember
Join Date: Jul 2006
Location: Devon, England
Posts: 565
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to AdRock
background-repeat: repeat y not working properly

I have a background image which is a shadow either side of the page content.

At the moment I have it set so the height is 100% but when i scroll down the page, the background image is no longer there. If i delete the height property the nackground image dissappears altogether.

How can I repeat the image so that it repeats as long as there is page content?

Code: Select all
 
#content {
   position: relative;
   margin: 0 auto;
   width: 841px;
   height: 100%;
   background-image: url(bg1.gif);
   background-repeat: repeat-y;
   text-align: left;
}
Reply With Quote

  #2 (permalink)  
Old Feb 21st, 2007, 13:19
AdRock's Avatar
SuperMember

SuperMember
Join Date: Jul 2006
Location: Devon, England
Posts: 565
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to AdRock
Re: background-repeat: repeat y not working properly

I have fixed it now by moving to background image property to the body tag and positioning to image to center
Reply With Quote
  #3 (permalink)  
Old Feb 21st, 2007, 15:31
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,761
Blog Entries: 1
Thanks: 0
Thanked 18 Times in 18 Posts
Send a message via AIM to moojoo Send a message via MSN to moojoo Send a message via Yahoo to moojoo
Re: background-repeat: repeat y not working properly

background: #FFF url("foo.jpg") center top repeat-y;
__________________
The internet is just a fad.
http://www.mevans76.com
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Reply With Quote
  #4 (permalink)  
Old Feb 21st, 2007, 15:56
karinne's Avatar
SuperMember

SuperMember
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: background-repeat: repeat y not working properly

Actually it's more like

Code: Select all
background:color image repeat attachment position;
so...
Code: Select all
background: #FFF url("foo.jpg") repeat-y center top;
Proper CSS Shorthand
Efficient CSS with shorthand properties
Reply With Quote
  #5 (permalink)  
Old Feb 22nd, 2007, 02:05
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: background-repeat: repeat y not working properly

Haha, I have to add:

Code: Select all
background: #fff url(foo.jpg) repeat-y 50% 0;
Reply With Quote
  #6 (permalink)  
Old Feb 22nd, 2007, 15:40
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,761
Blog Entries: 1
Thanks: 0
Thanked 18 Times in 18 Posts
Send a message via AIM to moojoo Send a message via MSN to moojoo Send a message via Yahoo to moojoo
Re: background-repeat: repeat y not working properly

Oh it all works the same people! heh.
__________________
The internet is just a fad.
http://www.mevans76.com
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Reply With Quote
  #7 (permalink)  
Old Feb 22nd, 2007, 15:56
karinne's Avatar
SuperMember

SuperMember
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: background-repeat: repeat y not working properly

My version and Ryan's yes ... but not yours in certain browsers
Reply With Quote
  #8 (permalink)  
Old Feb 22nd, 2007, 22:50
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: background-repeat: repeat y not working properly

I believe Safari 1 had problems with it, but that's all history now.
Reply With Quote
  #9 (permalink)  
Old Feb 23rd, 2007, 11:43
karinne's Avatar
SuperMember

SuperMember
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: background-repeat: repeat y not working properly

I think it happened a few time that IE5.5 was wonky on me with that. But ... not all the time.
Reply With Quote
  #10 (permalink)  
Old Feb 23rd, 2007, 21:31
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,761
Blog Entries: 1
Thanks: 0
Thanked 18 Times in 18 Posts
Send a message via AIM to moojoo Send a message via MSN to moojoo Send a message via Yahoo to moojoo
Re: background-repeat: repeat y not working properly

I am flawless.
__________________
The internet is just a fad.
http://www.mevans76.com
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Reply With Quote
  #11 (permalink)  
Old Feb 23rd, 2007, 23:49
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: background-repeat: repeat y not working properly

*Hands moojoo a cookie.
Reply With Quote
  #12 (permalink)  
Old Feb 25th, 2007, 13:18
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,761
Blog Entries: 1
Thanks: 0
Thanked 18 Times in 18 Posts
Send a message via AIM to moojoo Send a message via MSN to moojoo Send a message via Yahoo to moojoo
Re: background-repeat: repeat y not working properly

Speaking of.. Girl Scout Cookies... So good but oh so evil.
__________________
The internet is just a fad.
http://www.mevans76.com
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Reply With Quote
  #13 (permalink)  
Old Feb 25th, 2007, 22:17
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: background-repeat: repeat y not working properly

I agree. The chocolate covered peanut butter cookies are more addicting than heroin.
Reply With Quote
Reply

Tags
background, image, repeat

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
image repeat snelll Web Page Design 9 May 26th, 2008 17:34
ie 6 background-repeat does not work AndrewChip Web Page Design 3 May 4th, 2008 10:19
[SOLVED] CSS Background Repeat Stuart Web Page Design 23 Sep 29th, 2007 22:36
repeat a horizontally centered background image Legacy_Staff Web Page Design 12 Jul 14th, 2006 20:23
repeat-x gradientation gwx03 Graphics and 3D 1 Jan 3rd, 2004 07:04


All times are GMT. The time now is 07:57.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43