Topic awaiting preservation: centering images automatically |
|
---|---|
Author | Thread |
Nervous Wreck (II) Inmate From: Salt Lake, Ut, USA |
posted 02-11-2003 00:40
is there a way to make an image align itself in the center of the browser window, regardless of size etc. . . |
Maniac (V) Inmate From: out of a sleepy funk |
posted 02-11-2003 01:04
you can use CSS to set the position:absolute and set top and left to 50% the set the margins of the image to negative half their real (edit: [height and width])attributes. Or you can slap it in a table valign="middle" align="center". |
Paranoid (IV) Inmate From: Dublin, Ireland |
posted 02-12-2003 20:38
There is also of course the <center> center tags </center> which might do for what you want as good as JKMabry's solution. |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 02-12-2003 21:14 |
Nervous Wreck (II) Inmate From: Salt Lake, Ut, USA |
posted 02-13-2003 00:50
Thanks, I haven't done any coding an quite a while and was stumped on an easy one. Now I'm ready to roll! Thanks again for the advice |