background stretch |
Author: |
Message: |
DJKAL
Senior Member
Posts: 800 Reputation: 14
34 / / –
Joined: Oct 2005
|
O.P. background stretch
im coding another website and would like to know if it is possable to use a background image and have it to stretch to the size of the veiwes monitor
so if you have a 15" monitor it will be the image in a smaller size
but if you have a 22" monitor you will see the same image but fittingyour screen
is this possable and with what codes?
thanks!
"You don't sleep, you defragment!"
|
|
03-05-2006 03:59 PM |
|
|
John Anderton
Elite Member
Posts: 3908 Reputation: 80
37 / /
Joined: Nov 2004
Status: Away
|
RE: background stretch
Correct me if im wrong but i dont think it makes a difference if its a 15 inch monitor or a 22 inch one. Its the resolution that matters. But then again i could be wrong
I think cookie knows what im talking about ... i remember him saying something similar once
[
KarunAB.com]
[img]http://gamercards.exophase.com/459422.png[
/img]
|
|
03-05-2006 06:35 PM |
|
|
DJKAL
Senior Member
Posts: 800 Reputation: 14
34 / / –
Joined: Oct 2005
|
O.P. RE: background stretch
the size's were just ideas not actual sizes - ANY size i want.
i just want the image to resize its self to the size of the browser window when the page is loaded
"You don't sleep, you defragment!"
|
|
03-05-2006 06:55 PM |
|
|
Jhrono
Veteran Member
Posts: 1791 Reputation: 25
33 / /
Joined: Jun 2004
|
RE: background stretch
JA is almost right... The size of the monitor doesnt matter, but each monitor has a maximum resolution, per example, mine is a 17" one, and it can go from 640x480 to 1280x1024..
Back on topic, iirc, there isnt anything you can identify a viewers resolution with.
|
|
03-05-2006 06:55 PM |
|
|
DJKAL
Senior Member
Posts: 800 Reputation: 14
34 / / –
Joined: Oct 2005
|
O.P. RE: background stretch
so it isnt possible to get the image to auto. resize when the page loads?
"You don't sleep, you defragment!"
|
|
03-05-2006 06:56 PM |
|
|
albert
Veteran Member
Posts: 2247 Reputation: 42
– / /
Joined: Feb 2005
|
RE: background stretch
quote: Originally posted by DJKAL
so it isnt possible to get the image to auto. resize when the page loads?
My advice would be to use a small picture that is symetric. Therefore if it is bigger, it will strech and still look good.
An example of a background I use : http://www.lp15.com/alby/bg.png
You can see it's quite small, but most of all symetric.
How it looks on the page :
http://www.lp15.com/alby
|
|
03-05-2006 06:59 PM |
|
|
Plik
Veteran Member
Posts: 1489 Reputation: 46
35 / / –
Joined: Jun 2004
|
RE: background stretch
quote: Originally posted by alby
quote: Originally posted by DJKAL
so it isnt possible to get the image to auto. resize when the page loads?
My advice would be to use a small picture that is symetric. Therefore if it is bigger, it will strech and still look good.
An example of a background I use : http://www.lp15.com/alby/bg.png
You can see it's quite small, but most of all symetric.
How it looks on the page :
http://www.lp15.com/alby
Thats tileing the image, not making it stretch to fit
You can't stretch a background image, the only time you can set the size of an image is when its used in the <img> tag
Which isn't a bad thing because if you stretch your background it will always look mis-shapen and pixelated with someones resolution.
Stretching != cool
This post was edited on 03-05-2006 at 07:07 PM by Plik.
|
|
03-05-2006 07:03 PM |
|
|
DJKAL
Senior Member
Posts: 800 Reputation: 14
34 / / –
Joined: Oct 2005
|
O.P. RE: background stretch
no - my image isnt like that.
my image is made in photoshop
and is a dark to light blue fade with the text at the top in an effect and then another image is sunken into the background
it looks realyl effective but i need it to fill the screen always and to not half fill it or be too big
"You don't sleep, you defragment!"
|
|
03-05-2006 07:05 PM |
|
|
Kryptonate
Veteran Member
Posts: 2874 Reputation: 23
38 / / –
Joined: Jun 2003
|
RE: background stretch
quote: Originally posted by Johny
Back on topic, iirc, there isnt anything you can identify a viewers resolution with.
yes there is. It's called Javascript .
|
|
03-05-2006 07:21 PM |
|
|
DJKAL
Senior Member
Posts: 800 Reputation: 14
34 / / –
Joined: Oct 2005
|
O.P. RE: background stretch
quote: Originally posted by Kryptonate
yes there is. It's called Javascript
.... can you explain how to do this then?
* DJKAL asks nicely
"You don't sleep, you defragment!"
|
|
03-05-2006 07:23 PM |
|
|
Pages: (2):
« First
[ 1 ]
2
»
Last »
|
|