Gradient BackGround Image (Full Version)

All Forums >> [Web Design] >> Web Graphics



Message


leatherlips -> Gradient BackGround Image (9/2/2003 12:06:55)

I know this is probably very simple, but I can't figure it out.

I want to have a background image on my website. However, I DO NOT want it to tile. What I would like to have is an image starting out dark on the left side of the page and as it appears toward the right, it fades away. I want it to be able to fill the whole screen regardless of the users monitor size.

An example of what I am talking about is at www.milonic.com . How do I go about doing this?

Thanks.




Mike54 -> RE: Gradient BackGround Image (9/2/2003 12:38:50)

[image]http://www.frontpagewebmaster.com/upfiles/2876/Mk27691.jpg[/image]
Of course it only works with IE[;)]




Nancy -> RE: Gradient BackGround Image (9/2/2003 12:45:13)

I took a look at the site you mentioned and found that their background image is a fairly large file size for a site. So the instructions I give won't be for making that image. *S*

The easiest way I've found to make a gradient background is to start with an image that is about 5 pixels tall, and 2000 wide. Yes that is the correct number of zeros. *S* With the wide variety of monitor sizes and resolutions, this will give you an image that won't tile for any or them, or at least won't for 99.9% of them.

Now that you have your image started, depending on which graphics program you are using, just flood fill it, or overlay it with a gradient, probably a two color gradient, using any colors you choose. You might need to play a bit as to where you want the graphic to start to fade, but probably around 300 pixels will work.

Then just save the image. The wide width will keep the image from tiling, and the small height makes for a small file size.

A word of caution though: it will look slightly different at different resolutions, but not enough to notice. If you make it fade from a light blue to white, those site visitors using something more than 800x600 will see more of the white.

An alternative approach is to make an image not as wide, use CSS to set the background image, and set it to tile only vertically, and also setting the background color to be the same as whatever color you used in the image on the right hand side. The background of your page then goes from the image to the plain color, and is invisible to your visitors. This probably gives you a little more control over how much of the gradient each visitor sees. However, and here comes another word of caution: not all browsers will accept the CSS methods regarding tiling. I do think though, that probably all the newer browsers are okay, just not NN4. *S*

If you'll let us know which graphics program you are using, we can probably fill you in on a little more detail of how to accomplish all this.

Nancy




leatherlips -> RE: Gradient BackGround Image (9/2/2003 15:08:08)

Thanks for the fast replies!

Nancy, thanks for moving my post to the appropriate forum.

I will be using PhotoShop 7 to make my graphic. Your idea of an image 5 x 2000 sounds easy enough. I was thinking along those lines already but was afraid that width would create UNWANTED horizontal bars. If it doesn't create the bars, then all will be well.

Thanks.




Nancy -> RE: Gradient BackGround Image (9/2/2003 15:42:44)

As a background image, there will be no horizontal scroll to the page.

In Photoshop, you might want to increase the navigation view to maybe 300 or 400% so you can get a better idea of where you want one color to end and the other to start. Just "draw" your gradient from left to right for part of the image and stop where you want the transition to be. The balance to the right will be the second color. On a guess, you should be able to go over to about 300 pixels or so.



Nancy




ilmare -> RE: Gradient BackGround Image (5/5/2005 7:36:27)

I'd like to create a background image in FrontPage XP for my (let's hope) CSS-style site.  I found the following image inspirational:

[image]http://www.seasaba.com/photos/dolphin.jpg[/image]
Can anyone recommend to me a way to create this effect in FP, starting with the darkest blue in the upper left corner and gradient to white, while encompassing several palettes of blue?  I have use of PS7.  Another thing I might mention is that with my background, I want it to resize with the browser window.  To date, I have yet to see a CSS-based site do this.  The image should also load quickly, I have no wish to bog down anyone.




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.078125