Asked
Updated
Viewed
144.4k times

hi guys,

is there any way to make an image of 1024x764 fit with screen size of 1152x864, 800x600 or other screen sizes?

0

13 Answers

  • Votes
  • Oldest
  • Latest
Answered

You mean on a web page, not a physical desktop, right? Just checking...

Yes, there is a way:
http://www.cssplay.co.uk/layouts/background.html

(View source to see how it's done.)

Or even:
http://www.htmlite.com/faq022.php

(If you don't feel like analysing someone else's source code.)

Keep in mind, of course, that this method will stretch your image to the dimensions of the browser window, so if you have something that needs its aspect ratio maintained, it's going to look mighty funny (the stretchy bunny is a good example).

Hth,
Gita

0
Answered

or you can just put in <img src="#" width="100%" height="100%"> thats another way...

0
Answered

or you can just put in <img src="#" width="100%" height="100%"> thats another way...

Not with the bg image.

0
Answered

imo use jscript to replace bg image with whichever resolution one you have.
Like bg800x600.jpg bg1024x768.jpg and use the standard one (of course browser viewable isn't the full 800x600 so adjust accordingly)

0
Answered

Thanks, this did help me too.

0
Answered

Use percentage paramaters inside the tags for the width and the height, it will then stay relative to the web browser size.

0
Answered

nice.. thanks to all your responses 😁

0
MB
0 0
Answered

I just did my first ever web page and I did background image that fit all screens (or at least I think it does).
It took only 3 lines of codes. Please, take a look at my new web page.

http://home.comcast.net/~milazinkova/Fogshadow.html

Please let me know, if somebody need to know what those 3 lines of code were.
[/url]

0
Answered

all right. what about tables? how can i fit the background-Image of a table?

0
Answered

I just did my first ever web page and I did background image that fit all screens (or at least I think it does).
It took only 3 lines of codes. Please, take a look at my new web page.

http://home.comcast.net/~milazinkova/Fogshadow.html

Please let me know, if somebody need to know what those 3 lines of code were.

It doesn't ... it's tiled and not stretched ...

0
Answered

So wait, you want visitors to dl a 1024x768 just to use as a bgimage, that seems like a big waste of load time.

0
BO
60 2
Answered

So wait, you want visitors to dl a 1024x768 just to use as a bgimage, that seems like a big waste of load time.

What do you mean dl?

Isn't there some CSS to make it stretch?

0
Answered

dl = download

sorry for the shorthand

0
This question is locked. New answers and comments are not permitted.