English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

For example, I used this to put the backround on...

2007-06-16 09:21:55 · 3 answers · asked by Kia 2 in Computers & Internet Programming & Design

3 answers

You could do that with JavaScript, because you need to know the size of the client window in order to know how large the background image should be.

Something like this:



Add this onload event to your BODY tag:

2007-06-16 10:01:38 · answer #1 · answered by Anonymous · 0 0

Well you can use script or CSS to autosize based upon the users window size... OR you can set your page size to "center" your page and use a fixed width for the main content. Then you aren't tiling the image.

Just set up a table to the width you want and center that table. It will appear much like this page does which doesn't fill the screen either but still looks very good. Use a textured or solid background for the boarders.

Just another thought.

2007-06-16 11:30:06 · answer #2 · answered by Tracy L 7 · 0 0

there's a CSS3 supplies referred to as historic past-length. in case you place this to a hundred%, a hundred% that is going to stretch a historic past to in good condition the present field. regrettably, because of the fact IE8 would not help CSS3, approximately 10% of the international won't have the skill to work out your historic past.

2016-10-17 11:55:11 · answer #3 · answered by finkle 4 · 0 0

fedest.com, questions and answers