Reply to Re: Sizing background images

Your name:

Reply:


Posted by Nik Coughlin on 05/03/06 01:56

James O'Riley 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">

Hi James,

Do some research on CSS, it can't help you to size the background image, but
it can help you to control it in such a way that it doesn't repeat itself.

This is the quick and dirty way to do it using what is known as "inline
CSS", which is the closest to the way that you are used to doing it with
attributes:

<body style="background: url( 'aworld.gif' ) center center no-repeat;">

Once you know more about CSS you will know to put that in an external
stylesheet, but for now that should at least get you started.

Cheers

[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

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