There is a much better full page background image technique on this same site:
http://css-tricks.com/perfect-full-page-background-image/
This link has been bookmarked by 182 people . It was first bookmarked on 21 May 2008, by pjsabatini.
-
19 Apr 12
-
18 Apr 12
-
07 Feb 12
-
If we can get our hands on the exact pixel width of the browser window, we can use that number in the width attribute of the image and control its size while retaining the ratio.
-
-
25 Jan 12
-
21 Dec 11
-
04 Jun 11
-
03 Jun 11
-
12 May 11
-
11 May 11
-
05 May 11
-
27 Apr 11
-
28 Mar 11
-
17 Mar 11
-
08 Feb 11
-
31 Jan 11
-
25 Jan 11
-
28 Dec 10
-
08 Dec 10
-
01 Dec 10
-
30 Nov 10
-
22 Nov 10
Ralf HafnerIs there a way to make a background image resizeable? As in, fill the background of a web page edge-to-edge with an image, no matter the size of the browser window. Also, have it resize larger or smaller as the browser window changes. Also, make sure it r
-
14 Nov 10
laugharne.me ...Forget this javascript business! Thanks to Anders comment pointing out Stu Nicholls version, here is an even better way to handle this without the need for any javascript at all!
Since we already have a unique class on the image, the image is absolutely -
13 Nov 10
-
02 Nov 10
-
24 Oct 10
-
15 Oct 10
-
29 Aug 10
-
11 Aug 10
-
03 Aug 10
Tutorial on how to resize images/photos dynamically to fit browser screen resolution - Shannon recommended
recommended shannon tutorial screen-resolution dynamic resize
-
23 Jul 10
-
18 Jul 10
-
06 Jul 10
-
03 Jul 10
-
26 Jun 10
-
22 Jun 10
-
21 Jun 10
-
Third Attempt (best)
Forget this javascript business! Thanks to Anders comment pointing out Stu Nicholls version, here is an even better way to handle this without the need for any javascript at all!
Since we already have a unique class on the image, the image is absolutely positioned, and the scrollbars thing is already taken care of, let’s just set the width using a percentage directly in the CSS:
#img.source-image { width: 100%; position: absolute; top: 0; left: 0; }See a demo of this in action. This is the best solution yet, because the resizing happens on-the-fly for a nice fluid feel, and doesn’t rely on any javascript whatsoever.
-
-
10 Jun 10
-
29 May 10
-
28 May 10
Jesus LugoCSS-Tricks article, non-flash, live background resizing preserving proportions.
-
21 May 10
-
18 May 10
-
05 May 10
-
07 Apr 10
Brian PlaugerAre you tired of having to tile your nice background images in your modern flashy WEB 3.0 looking designs? Well... you don't have to!
css html Web webdesign background background images background fixed background scale image design
-
01 Apr 10
-
18 Mar 10
-
22 Feb 10
-
18 Feb 10
-
04 Feb 10
-
14 Jan 10
-
28 Dec 09
-
Add Sticky Note
-
-
-
23 Nov 09
-
11 Oct 09
-
07 Oct 09
-
13 Sep 09
-
10 Sep 09
-
31 Aug 09
-
28 Aug 09
-
25 Aug 09
James JohnstonHow to make a background automatically re size depending on the size of the screen
-
24 Aug 09
-
Thomaz Ciacomo fazer a imagem acompanhar o tamanho do navegador sm cortar
-
23 Aug 09
-
21 Aug 09
-
17 Jul 09
college webMy friend Richard recently came to me with a simple CSS question: Is there a way to make a background image resizeable? As in, fill the background of a web
-
16 Jul 09
-
13 Jul 09
-
04 Jul 09
tac labs there a way to make a background image resizeable? As in, fill the background of a web page edge-to-edge with an image, no matter the size of the browser window. Also, have it resize larger or smaller as the browser window changes. Also, make sure it re
-
27 Mar 09
-
16 Mar 09
-
23 Feb 09
-
16 Feb 09
-
05 Feb 09
-
29 Jan 09
-
27 Jan 09
-
23 Dec 08
-
22 Dec 08
-
20 Dec 08
-
26 Oct 08
-
17 Sep 08
-
25 Aug 08
-
16 Jul 08
-
07 Jun 08
-
06 Jun 08
Public Stiky Notes
http://css-tricks.com/perfect-full-page-background-image/
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.