You are here: Re: Sizing background images « HTML « IT news, forums, messages
Re: Sizing background images

Posted by Andy Dingley on 09/29/09 11:46

James O'Riley wrote:
> How does one properly size a background image?

Assuming you're going to tile it (repeat it for any page size) then you
hardly need to "size" it. Just make it big enough to look OK, small
enough to download quickly.

Then use CSS to attach the background image to the page, because this
works in all important browsers and gives you more control over the
positioning and tiling behaviour. Also set the background color to
something that "works" with the image, as an alternative or as a filler
while it's downloading.

> The problem is that
> this particular background image is one of the world that would go
> nicely with my Web Page

Watch out for big images in backgrounds. Big files take time to
download and that's not a good thing.


> I've tried 4 different sizes and it doesn't change a bit.

Probably a caching issue. Try hitting <Control-Refresh>, not just
Refresh.

> <BODY BACKGROUND="aworld.gif" TEXT="#000000" LINK= "#0000FF"
> ALINK="#ff0000" VLINK= "0000A0">

Dump all these old HTML 3.2 attributes on <body> CSS is much easier,
especially for replacing these.

> I've not put it on the Web yet because if I can't get this to work
> there's no sense to put it up.

Yes there is - we can't help you if we can't see it.

 

Navigation:

[Reply to this 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

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