two backgrounds! can it be done?

This is a discussion on "two backgrounds! can it be done?" within the Web Page Design section. This forum, and the thread "two backgrounds! can it be done? are both part of the Design Your Website category.



 Subscribe in a reader

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

Notices


Reply
 
LinkBack Thread Tools
  #1  
Old Mar 8th, 2008, 16:32
Reputable Member
Join Date: Jan 2006
Location: Spalding, Lincs
Posts: 160
Blog Entries: 2
Thanks: 2
Thanked 3 Times in 3 Posts
Question two backgrounds! can it be done?

Hi

i want two backgrounds on my document.

the first, a centered vertically repeating gradiented column background (transparent .png)

then UNDERNEATH it i want to put a stripe pattern on. (separate img)

this is so it will adapt to different resolutions.



anyone any ideas?


christopher
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Mar 8th, 2008, 17:21
Reputable Member
Join Date: Jan 2006
Location: Spalding, Lincs
Posts: 160
Blog Entries: 2
Thanks: 2
Thanked 3 Times in 3 Posts
Re: two backgrounds! can it be done?

if it helps then this is the link

http://www.vibrantcolour.co.uk/dev/

all css is inline atm so you can see it
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Mar 8th, 2008, 18:49
Aso's Avatar
Aso Aso is offline
Moderator

SuperMember
Join Date: Oct 2007
Location: UK
Posts: 1,322
Blog Entries: 2
Thanks: 9
Thanked 48 Times in 45 Posts
Re: two backgrounds! can it be done?

You can use the html and body elements of your HTML to create a layered background.

Since html appears before body in the semantic structure of your HTML, this will be the 'lower' layer of the two (any background you apply to body will mask over html)

An example CSS
Code: Select all
html {
background: #fff url('path/to/seperate/img.png') no-repeat 0 0;
}
body {
background: url('path/to/transparent.png') repeat-y 50% 0;
}
If you're having problems, upload the changes and I'll check it out
Last Blog Entry: The Google Misconception (Feb 3rd, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Mar 8th, 2008, 19:03
Reputable Member
Join Date: Jan 2006
Location: Spalding, Lincs
Posts: 160
Blog Entries: 2
Thanks: 2
Thanked 3 Times in 3 Posts
Re: two backgrounds! can it be done?

thanks aso, will try that now.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Mar 8th, 2008, 19:07
Reputable Member
Join Date: Jun 2007
Location: Bellevue, SK, Canada
Age: 29
Posts: 222
Thanks: 0
Thanked 0 Times in 0 Posts
Re: two backgrounds! can it be done?

Keep in mind that IE6 doesn't support transparent .png's..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Mar 8th, 2008, 19:29
Reputable Member
Join Date: Jan 2006
Location: Spalding, Lincs
Posts: 160
Blog Entries: 2
Thanks: 2
Thanked 3 Times in 3 Posts
Re: two backgrounds! can it be done?

yes, i will.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Mar 9th, 2008, 11:20
Reputable Member
Join Date: Jan 2006
Location: Spalding, Lincs
Posts: 160
Blog Entries: 2
Thanks: 2
Thanked 3 Times in 3 Posts
Re: two backgrounds! can it be done?

thanks, it works now!


http://www.vibrantcolour.co.uk/dev/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

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
web backgrounds danny322 Graphics and 3D 3 Mar 7th, 2008 09:38
Hmm I Need Two Backgrounds !! bruno89 Web Page Design 8 May 11th, 2007 14:26
Question about backgrounds Moonlilly Starting Out 1 Feb 2nd, 2007 18:16
Web Backgrounds jimz Graphics and 3D 12 Mar 8th, 2006 22:27
Stretching Backgrounds ed@thehaunting.net Flash & Multimedia Forum 1 Apr 7th, 2004 13:54


All times are GMT. The time now is 10:03.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization 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