On Oct 19, 2010, at 3:32 AM, Climis, Tim wrote: >> For instance, in the <img> tag, you are able to control the >> width and the height of the image. How do you do this in the CSS? > > For background images, you can't. You have to do it by opening the image > file and changing its size, and then saving it.
You can control the size of background images: that is what the background-size property is for. Supported by Gecko 1.9.2 (Fx 3.6). WebKit (Safari 5+, recent Chrome) Opera 10.5 +. Probably IE 9beta, although I can't test that one. http://www.w3.org/TR/css3-background/#the-background-size a couple of examples: http://dev.l-c-n.com/CSS3_border-background/background-size.html Philippe --- Philippe Wittenbergh http://l-c-n.com/ ______________________________________________________________________ css-discuss [cs...@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/