Welcome to Dream.In.Code
Become an Expert!

Join 149,843 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 2,385 people online right now. Registration is fast and FREE... Join Now!




Graduated background color

 
Reply to this topicStart new topic

Graduated background color

megaquark
8 Feb, 2007 - 06:18 PM
Post #1

New D.I.C Head
*

Joined: 8 Feb, 2007
Posts: 4


My Contributions
I am trying to figure out how to create a graduated background color as you can see here:

http://www.beechwoodmortgage.com/home.html

I tried to figure it out looking at their source code, but it's done in XML with lots of SWF, javascript, and css. I don't know enough of any of these to sort out exactly what part applies to the background color or how it was done. I would appreciate any insight.
User is offlineProfile CardPM
+Quote Post

capty99
RE: Graduated Background Color
8 Feb, 2007 - 06:46 PM
Post #2

the real kya
Group Icon

Joined: 26 Apr, 2001
Posts: 9,253



Thanked: 16 times
Dream Kudos: 550
My Contributions


its just a big image 1 pixel wide that fades to white.IPB Image

This post has been edited by capty99: 8 Feb, 2007 - 06:47 PM
User is offlineProfile CardPM
+Quote Post

megaquark
RE: Graduated Background Color
8 Feb, 2007 - 09:10 PM
Post #3

New D.I.C Head
*

Joined: 8 Feb, 2007
Posts: 4


My Contributions
QUOTE(capty99 @ 8 Feb, 2007 - 07:46 PM) *

its just a big image 1 pixel wide that fades to white.IPB Image



Are you serious? And here I thought it was some elusive javascript. I don't suppose you know if a script that will do this?
User is offlineProfile CardPM
+Quote Post

capty99
RE: Graduated Background Color
8 Feb, 2007 - 10:36 PM
Post #4

the real kya
Group Icon

Joined: 26 Apr, 2001
Posts: 9,253



Thanked: 16 times
Dream Kudos: 550
My Contributions
ummm.... no....

i guess you could do it with css,
like a bagillion divs

but that would just seem like a waste of time.
User is offlineProfile CardPM
+Quote Post

Sneblot
RE: Graduated Background Color
9 Feb, 2007 - 06:17 PM
Post #5

D.I.C Head
**

Joined: 9 Feb, 2007
Posts: 245


My Contributions
QUOTE(megaquark @ 8 Feb, 2007 - 10:10 PM) *

QUOTE(capty99 @ 8 Feb, 2007 - 07:46 PM) *

its just a big image 1 pixel wide that fades to white.IPB Image



Are you serious? And here I thought it was some elusive javascript. I don't suppose you know if a script that will do this?



QUOTE(capty99 @ 8 Feb, 2007 - 11:36 PM) *

ummm.... no....

i guess you could do it with css,
like a bagillion divs

but that would just seem like a waste of time.


Surely just saving the 1 pixel image as a .jpg and using it as your background with y-repeat (i cant remeber weather y is up or sideways if i got it wrong i ment sideways repeat) on would do it? wouldn't it?

User is offlineProfile CardPM
+Quote Post

Arbitrator
RE: Graduated Background Color
10 Feb, 2007 - 03:07 PM
Post #6

D.I.C Regular
Group Icon

Joined: 26 Jan, 2005
Posts: 492



Thanked: 2 times
My Contributions
QUOTE(Sneblot @ 9 Feb, 2007 - 08:17 PM) *
Surely just saving the 1 pixel image as a .jpg and using it as your background with y-repeat (i cant remeber weather y is up or sideways if i got it wrong i ment sideways repeat) on would do it? wouldn't it?
In the Cartesian coordinate system, the x‐axis is horizontal.

This effect can be accomplished with pure, basic CSS supported by all modern browsers:
CODE
html { background: url("corporatebackground.jpg") repeat-x; }

User is offlineProfile CardPM
+Quote Post

Sneblot
RE: Graduated Background Color
11 Feb, 2007 - 04:29 PM
Post #7

D.I.C Head
**

Joined: 9 Feb, 2007
Posts: 245


My Contributions
Cheers dude i'll keep that in mind in the future.
User is offlineProfile CardPM
+Quote Post

capty99
RE: Graduated Background Color
11 Feb, 2007 - 07:03 PM
Post #8

the real kya
Group Icon

Joined: 26 Apr, 2001
Posts: 9,253



Thanked: 16 times
Dream Kudos: 550
My Contributions
yeah i misread your post earlier,
i thought you meant a css to recreate the effect.
nvm.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/8/09 10:07AM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month