Repeating an image along the bottom of the page without setting it as background.

This is a discussion on "Repeating an image along the bottom of the page without setting it as background." within the Web Page Design section. This forum, and the thread "Repeating an image along the bottom of the page without setting it as background. 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 Apr 26th, 2007, 01:46
New Member
Join Date: Apr 2007
Location: Boston, Ma
Age: 19
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Repeating an image along the bottom of the page without setting it as background.

(the original content of this post was different, I have edited it for clarity... I hope.)

I've found a better way to phrase my previous question in this thread and did not want to make a new thread about it. What I need to do is set a repeating image as a background for my main content div, my left nav div, and my footer. The image in each of these will be a different image. I also need to set one for the entire page background on which the other divs "sit". For example, lets say I want my blank page to be yellow, the whole thing. Now I create a div which has my nav in it, but I want the nav background to be blue, my footer to be green, and my content div to be purple. Now replace the colors with well designed patterns that need to repeat infinitely from a small seamless image so they load faster.

Hopefully this gives everyone a good idea of what I am trying to do.

(ps, I decided that I do need to do this after seeing my design complete without these things, sorry for being a pest.)

Last edited by imagius; Apr 26th, 2007 at 23:14.
Reply With Quote

  #2 (permalink)  
Old Apr 26th, 2007, 01:57
BGarner's Avatar
Reputable Member
Join Date: Oct 2006
Location: In front of the computer.
Posts: 213
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Repeating an image along the bottom of the page without setting it as background.

Like a footer?

You can do it with a background image. Just create a div and then add...

Code: Select all
position: absolute;
top: 100%;
background: #fff url(your image url) repeat-x;
Let me know if that's what your looking for.
Reply With Quote
  #3 (permalink)  
Old Apr 26th, 2007, 02:01
Reputable Member
Join Date: Jul 2006
Location: Scotland
Age: 22
Posts: 357
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to snow
Re: Repeating an image along the bottom of the page without setting it as background.

background-image is still the CSS you're after, only on another element such as a div...

So just create an empty (or not) div at the bottom of the page, such as:

<div id="footerImage"></id>

then in the CSS:

#footerImage {
height:55px; /* Or whatever your cloud image height is */
background:blue url("clouds.jpg") repeat-x;}

I haven't given this too much thought, so I hope it's something like, or at least helps!

Snow
Reply With Quote
  #4 (permalink)  
Old Apr 26th, 2007, 02:03
Reputable Member
Join Date: Jul 2006
Location: Scotland
Age: 22
Posts: 357
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to snow
Re: Repeating an image along the bottom of the page without setting it as background.

Ack, BGarner, you got in before me!

People are just far too willing to help on this site!
Reply With Quote
  #5 (permalink)  
Old Apr 26th, 2007, 02:10
New Member
Join Date: Apr 2007
Location: Boston, Ma
Age: 19
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Repeating an image along the bottom of the page without setting it as background.

What Snow posted almost works, it repeats but not to the edge of the page (it stops a few pixels before the end, i think it is because it did the maximum number of repeats without cutting the image off at all, I do not care if the image is cut off) and its right in the middle of the page, not on the bottom. I'm going to try to align it now but if someone gives me that info too I'll probably need it

Last edited by imagius; Apr 26th, 2007 at 02:14.
Reply With Quote
  #6 (permalink)  
Old Apr 26th, 2007, 02:18
Reputable Member
Join Date: Jul 2006
Location: Scotland
Age: 22
Posts: 357
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to snow
Re: Repeating an image along the bottom of the page without setting it as background.

have you got the site online at the moment? It'd be good to have a link as I'm a bit rusty with my CSS and a page to play around with would be handy!
Reply With Quote
  #7 (permalink)  
Old Apr 26th, 2007, 02:23
New Member
Join Date: Apr 2007
Location: Boston, Ma
Age: 19
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Repeating an image along the bottom of the page without setting it as background.

Actually, I just came back to post that it really doesn't matter as I decided to scrap the first background image entirely and with that being gone the second one is very easy to implement for me. Thank you all very much though!
Reply With Quote
  #8 (permalink)  
Old Apr 26th, 2007, 15:32
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,649
Thanks: 0
Thanked 7 Times in 7 Posts
Send a message via AIM to moojoo Send a message via MSN to moojoo Send a message via Yahoo to moojoo
Re: Repeating an image along the bottom of the page without setting it as background.

just a fyi because I suck like that

<div id="footerImage">&nbsp;</id> Would be correct tee hee
__________________
I've got <style> and .class
Reply With Quote
  #9 (permalink)  
Old Apr 26th, 2007, 23:10
New Member
Join Date: Apr 2007
Location: Boston, Ma
Age: 19
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Repeating an image along the bottom of the page without setting it as background.

I've found a better way to phrase my previous question in this thread and did not want to make a new thread about it. What I need to do is set a repeating image as a background for my main content div, my left nav div, and my footer. The image in each of these will be a different image. I also need to set one for the entire page background on which the other divs "sit". For example, lets say I want my blank page to be yellow, the whole thing. Now I create a div which has my nav in it, but I want the nav background to be blue, my footer to be green, and my content div to be purple. Now replace the colors with well designed patterns that need to repeat infinitely from a small seamless image so they load faster.

Hopefully this gives everyone a good idea of what I am trying to do.

(ps, I decided that I do need to do this after seeing my design complete without these things, sorry for being a pest.)
Reply With Quote
  #10 (permalink)  
Old Apr 27th, 2007, 08:35
Junior Member
Join Date: Apr 2007
Location: Notts, England
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Repeating an image along the bottom of the page without setting it as background.

Put the background image in your body{} tag and then using the background-image for your other divs you can set the background.

background { #FFFFFF url ('image.png') repeat;}

at a guess
Reply With Quote
Reply

Tags
css, tiling

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
Problem setting the left/right/top/bottom padding of a table to different values tonyb Web Page Design 2 May 2nd, 2008 20:30
[SOLVED] Background Image wont be at bottom defy Web Page Design 7 Nov 9th, 2007 20:33
repeating background issues. Therealmatt Starting Out 4 Sep 20th, 2007 22:54
Background image overlaping footer image at bottom of div lw_d Web Page Design 4 Mar 21st, 2006 00:27
Is it possible to have 2 repeating background images? dragonator Web Page Design 1 Dec 9th, 2005 00:09


All times are GMT. The time now is 13:39.


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