Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using a background image

Status
Not open for further replies.

okpeery

Instructor
Dec 29, 2005
102
US
I would like to use a background image for the whole body area of my website. I want the foliage image to be slightly hazy but earth tone in color. I was wondering if I made the image fairly transparent could I still add a body background color using CSS and have the body color show through the image? I'm thinking this will result in a smaller file size rather than achieving the same result using only photoshop and then optimizing the image including the color effect?
 
The resolution of your image will have a bigger impact on file size. If you only want a translucent image as a background use a high compression jpg

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Drive a Steam Roller
 
To do this nicely you'd need to use a 24bit alpha channel. The only file format that supports this is a 24bit PNG and IE doesn't like them (not with transparency anyway).

That said, you'd almost certainly get a smaller file just making flat image with no transparency effect.

<honk>*:O)</honk>
Foamcow Heavy Industries - Web site design in Cheltenham and Gloucester
Ham and Jam - British & Commonwealth forces mod for Half Life 2
 
Thanks, I just made it look how I wanted in photoshop and then placed it as the background image. I wonder if there is a trick to putting an image as the background. I got my background image size down to 40K but plus the other content my page is 65-70K. I guess it's fine but I try to shoot for smaller file size.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top