Resizing graphic to fit window

Resizing graphic to fit window

Post by Darrell Hughe » Tue, 06 Feb 2001 04:13:53



Hi all....

I want to have a "Cover Page" to a HTML project that I am working on with
Frontpage. I have created a jpg file which looks great, but if the browser
is opened in a window, or on a PC with a different resolution, half of the
graphic disappears, or it is tiled... either way it looks pretty dumb.

Is there an easy way to make the graphic automatically resize to fit the
size of the browser Window?

I'd be grateful if anyone could give me some tips.

Thanks
Darrell

 
 
 

Resizing graphic to fit window

Post by TPweb » Tue, 06 Feb 2001 05:44:57


nope,
you could use a javascript ( http://javascript.internet.com/ ) to detect the
monitors settings and have different pages served to fit the results of the
query.


Quote:> Hi all....

> I want to have a "Cover Page" to a HTML project that I am working on with
> Frontpage. I have created a jpg file which looks great, but if the browser
> is opened in a window, or on a PC with a different resolution, half of the
> graphic disappears, or it is tiled... either way it looks pretty dumb.

> Is there an easy way to make the graphic automatically resize to fit the
> size of the browser Window?

> I'd be grateful if anyone could give me some tips.

> Thanks
> Darrell


 
 
 

Resizing graphic to fit window

Post by TPweb » Tue, 06 Feb 2001 12:36:20


Learn something new every day, try here.

http://javascript.internet.com/page-details/dynamic-sized-image.html

8)


Quote:> Hi all....

> I want to have a "Cover Page" to a HTML project that I am working on with
> Frontpage. I have created a jpg file which looks great, but if the browser
> is opened in a window, or on a PC with a different resolution, half of the
> graphic disappears, or it is tiled... either way it looks pretty dumb.

> Is there an easy way to make the graphic automatically resize to fit the
> size of the browser Window?

> I'd be grateful if anyone could give me some tips.

> Thanks
> Darrell

 
 
 

Resizing graphic to fit window

Post by Bug » Wed, 07 Feb 2001 01:03:56


<img src="pic.jpg" style="position: absolute; top: 0; left: 0; z-order: 1;
width: 100%; height: 100%" />

Image will fit the window area, regardless of window size, screen
resolution, color depth, anything. It will ALWAYS fit the window area. Of
course, that means that it won't always be square. You can take out either
the Height or the Width settings to make sure it will always be the right
shape, but then it might not fit on the window right. Give or take - it
still works.


Quote:> Hi all....

> I want to have a "Cover Page" to a HTML project that I am working on with
> Frontpage. I have created a jpg file which looks great, but if the browser
> is opened in a window, or on a PC with a different resolution, half of the
> graphic disappears, or it is tiled... either way it looks pretty dumb.

> Is there an easy way to make the graphic automatically resize to fit the
> size of the browser Window?

> I'd be grateful if anyone could give me some tips.

> Thanks
> Darrell

 
 
 

Resizing graphic to fit window

Post by Tom Peppe » Wed, 07 Feb 2001 01:13:02


Unless, of course, you want it to also work in NS.
--
----------
Tom "Pepper" Willett
Microsoft MVP - FrontPage
& Grumpy Old Geezer ;-)
www.sharpcom.com/geezerland
----------

> <img src="pic.jpg" style="position: absolute; top: 0; left: 0; z-order: 1;
> width: 100%; height: 100%" />

> Image will fit the window area, regardless of window size, screen
> resolution, color depth, anything. It will ALWAYS fit the window area. Of
> course, that means that it won't always be square. You can take out either
> the Height or the Width settings to make sure it will always be the right
> shape, but then it might not fit on the window right. Give or take - it
> still works.



> > Hi all....

> > I want to have a "Cover Page" to a HTML project that I am working on
with
> > Frontpage. I have created a jpg file which looks great, but if the
browser
> > is opened in a window, or on a PC with a different resolution, half of
the
> > graphic disappears, or it is tiled... either way it looks pretty dumb.

> > Is there an easy way to make the graphic automatically resize to fit the
> > size of the browser Window?

> > I'd be grateful if anyone could give me some tips.

> > Thanks
> > Darrell

 
 
 

Resizing graphic to fit window

Post by Bug » Wed, 07 Feb 2001 01:46:46


If you take out the (XML-correct) / in the <img> tag, it will work in
Netscape 6. Prior versions may have problems with it. FWIW, Netscape 6
renders it better than IE5.5!


> Unless, of course, you want it to also work in NS.
> --
> ----------
> Tom "Pepper" Willett
> Microsoft MVP - FrontPage
> & Grumpy Old Geezer ;-)
> www.sharpcom.com/geezerland
> ----------


> > <img src="pic.jpg" style="position: absolute; top: 0; left: 0; z-order:
1;
> > width: 100%; height: 100%" />

> > Image will fit the window area, regardless of window size, screen
> > resolution, color depth, anything. It will ALWAYS fit the window area.
Of
> > course, that means that it won't always be square. You can take out
either
> > the Height or the Width settings to make sure it will always be the
right
> > shape, but then it might not fit on the window right. Give or take - it
> > still works.



> > > Hi all....

> > > I want to have a "Cover Page" to a HTML project that I am working on
> with
> > > Frontpage. I have created a jpg file which looks great, but if the
> browser
> > > is opened in a window, or on a PC with a different resolution, half of
> the
> > > graphic disappears, or it is tiled... either way it looks pretty dumb.

> > > Is there an easy way to make the graphic automatically resize to fit
the
> > > size of the browser Window?

> > > I'd be grateful if anyone could give me some tips.

> > > Thanks
> > > Darrell

 
 
 

1. Page Content Resize to Fit Browser Window Size?

I am a FrontPage 98 (3.0) newbie. How do I (globally, if possible) set
my page content throughout my site to shrink or expand to fit the
browser window accordingly? I know there is a way, as I have seen other
FrontPage sites that do it.
Thanks for any help!
Gary Fuller

2. Tornado 1.0.1, Raw Filesystems and Reading data...

3. image resizes to fit window

4. Set properties to document without having a new version.

5. resizing text to accomodate resizing window

6. Help About AVI INDEO Compression....

7. Powerpoint Graphics to FP 2000 & Resizing Graphics

8. resizing webpage to fit screen

9. stretching a graphic to fit

10. background to fit explorer/ navigator window

11. Need background image to fit full window

12. Background picture fit to window