Quote:
Originally Posted by Fudge
Success. With some tweaking, I got it to work. The next step is making it repeat horizontally. I want to post a simple gradient like a sky and have that stretch/repeat across the entire screen regardless of the person's resolution. How does one do that?
|
You would need to apply that to the body so
Code:
body {
background:#000;
background-image:url(earth.jpg) center top no-repeat;
}
The red line.. this is your key.
Design whatever you want in your GFX program - if it is a simple top to bottom gradient then slice it at whatever height you want and make sure the width is no bigger than 5px (for optimal loading).
save it, then upload it and link it in the CSS above (red line).
you need to delete the CENTER code since you want it to repeat all the way from the left to right and also delete the TOP code since it will be at the top by default.
Also change "no-repeat" to "repeat-x" since you want to to repeat on the X-axis.
now save the file and you shall see a repeating gradient going across.
You might see that the bottom of that gradient image clips and doesn't match the rest of the body.. so what you do is you change the colour of your background to the EXACT same colour of the gradient images' bottom using the colour picker in your GFX program you can find out the HEX code.
Currently, the background is set at BLACK so if your gradient from TOP-down ends in black then this is a seamless integration otherwise if your gradient goes top down (green-blue) then you need to set the background to blue.
For IMAGE repeats and not simple gradients - you will need more precision.
A cloud background repeat will require a few graphical adjustments such as the very left of the cloud image being pure blue and the very right being pure blue so that when you set it as REPEAT-X.. they will connect and repeat seamlessly on your Widescreen Sony HD LED TV 
__________________
Freelance Graphic Designer not for hire
Last edited by StylaStyla; 09-26-2009 at 06:58 AM..
|