|
User #95149 5746 posts
Whirlpool Forums Addict
|
I would like to know how they get background colors to fade to white, for example one might have a heading with black text and the background is darker at the bottom and it fades to white at the top. |
posted 2008-Feb-26, 2pm AEST
|
|
User #40555 322 posts
Forum Regular
|
Do you mean you want the background on a div to have a gradient or for the background to change colour over a period of time? For the gradient the best way is to use a thin image and have it repeat-x (done using CSS). For a colour that changes with time you need to use javascript. |
posted 2008-Feb-26, 5pm AEST
|
|
User #36572 3566 posts
Whirlpool Forums Addict
|
Also how do you get the background to fade from a darker color to a lighter color and then back to dark again ? |
posted 2008-Feb-26, 11pm AEST
|
|
User #95149 5746 posts
Whirlpool Forums Addict
|
Do you mean you want the background on a div to have a gradient or for the background to change colour over a period of time? For the gradient the best way is to use a thin image and have it repeat-x (done using CSS). For a colour that changes with time you need to use javascript. |
posted 2008-Feb-27, 6pm AEST
|
|
User #95149 5746 posts
Whirlpool Forums Addict
|
The previous poster gave you the answer already... this effect is achieved in the same way. |
posted 2008-Feb-27, 6pm AEST
|
|
User #36572 3566 posts
Whirlpool Forums Addict
|
<div><div id="header">Red Rose</div><div id="img"><img src="red_rose.jpg"></div> <div id="footer"><div id="price">$6</div><di v id="gst">#incl. 10% GST</div><div id="button"><img src="button_details.gif" border=0></div></div> </div> |
posted 2008-Feb-27, 8pm AEST
|
|
User #19303 2816 posts
Whirlpool Forums Addict
|
This is a good technique for gradients over text, it could be used over a block too: www.webdesignerwall.com/...ient-text-effect |
posted 2008-Feb-27, 8pm AEST
|
|
User #95149 5746 posts
Whirlpool Forums Addict
|
id is used to identify an html uniquely |
posted 2008-Feb-28, 4pm AEST
|
|
User #95149 5746 posts
Whirlpool Forums Addict
|
This is a good technique for gradients over text |
posted 2008-Feb-28, 4pm AEST
|