...

View Full Version : Background image..One image file with mulitple images?



Bengal313
12-13-2007, 10:50 PM
Okay I am trying learn some web design technique and for the life of me I can't figure out how they are doing this. This website (http://www.adventnet.com/) has this file

http://image.adventnet.com/adventnethomepageimages.gif


as it's background image. But the one .gif file has all the images needed for the site. Where can I find a tutorial to learn this technique. It's kinda cool. I'm thinking advanced CSS has something to do with it.

Apostropartheid
12-13-2007, 10:52 PM
I'm thinking this has something to do with negative margins, which pull back the background image to display only the part needed

GO ILLINI
12-14-2007, 03:04 AM
you specify a width and a height, then the background-position
http://www.w3schools.com/css/pr_background-position.asp
or do it all in 1 description:


background: url("images/bg_tabs2.gif") no-repeat 100% -35px;

the -35px moves the image 35 pixels up so you cant see the top 35px.

-Adam



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum