Re: center images
by "Keif" <Keif(at)keifnet.com>
|
Date: |
Sun, 22 Aug 1999 08:47:59 +0100 |
To: |
<hwg-basics(at)hwg.org> |
References: |
abts |
|
todo: View
Thread,
Original
|
|
I kind of wanted to to use an image so I could use roll-overs etc. But
thanks, I will give it a go.
Keif
----------------------------------
Keif(at)keifnet.com
Keif(at)stones.com
ICQ:- 8378737
----------------------------------
----- Original Message -----
From: Shaun L. Sides <arch(at)abts.net>
To: <hwg-basics(at)hwg.org>
Sent: Sunday, August 22, 1999 1:29 AM
Subject: Re: center images
>
>
> On 21 Aug 99, at 17:20, Keif wrote:
>
> > I want to place an image in the center of the browser (top to
> > bottom as well as side to side) so it is there in all resolutions..
> > Can someone tell me how to do this. I don't want to use frames
> > unless I have to. Side to side is easy but I don't know about the
> > top to bottom bit.
>
> The following code is supposed to do what you are wanting,
> provided you don't mind using the bg image for the purpose:
>
> <style type="text/css">
> <!--
> body { background-image: url(filename.jpg);
> background-repeat: no-repeat;
> background-position: center center}
> -->
> </style>
>
> I tested it in both IE5 and NN4.61, which constitutes the sum total
> of my installed browsers (need to cough up the dough for Opera).
> It works flawlessly in IE5, but alas NN's crappy css support did not
> pan out in that browser. Rots o' ruck, though. ;-)
>
> Shaun L. Sides arch(at)abts.net
> UIN: 6654303
> arch(at)smoky3.dhr.state.nc.us
> arch(at)neverwinter.cas.nwu.edu
>
HTML: hwg-basics mailing list archives,
maintained by Webmasters @ IWA