Reply to Re: Sizing background images

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация