Posted by Barbara de Zoete on 11/19/90 11:46
On Tue, 02 May 2006 17:39:28 +0200, James O'Riley <James@O'Riley.com>
wrote:
> How does one properly size a background image? The problem is that
> this particular background image is one of the world that would go
> nicely with my Web Page *index.htm*. It appears 4 times as you scroll
> down the page. I've tried 4 different sizes and it doesn't change a bit.
>
> Possibly I've coded it wrong. The line of code is:
>
> <BODY BACKGROUND="aworld.gif" TEXT="#000000" LINK= "#0000FF"
> ALINK="#ff0000" VLINK= "0000A0">
You're looking in the wrong direction. First size the image to be the
dimensions you want it to be. Then look at CSS to style the body
background with an image and position it with:
<URL:http://www.w3.org/TR/REC-CSS2/colors.html#propdef-background>
Maybe this is how you would like the image to behave:
body {
background:#FFF url(aworld.gif) center center no-repeat;
}
--
______PretLetters:
| weblog | http://www.pretletters.net/weblog/weblog.html |
| webontwerp | http://www.pretletters.net/html/webontwerp.html |
|zweefvliegen | http://www.pretletters.net/html/vliegen.html |
[Back to original message]
|