detecting screen size and changing stuff to fit it
by "Raj Bhaskar" <9705228b(at)student.gla.ac.uk>
|
| Date: |
Sun, 23 Jul 2000 16:49:14 +0100 |
| To: |
hwg-basics(at)mail.hwg.org |
| |
todo: View
Thread,
Original
|
|
Hi all,
I've got several pages with quite a lot of text on them. I know that on
monitors with large resolutions, such text can be difficult to read if it isn't
wrapped so I decided to put in a javascript function to test the width of
the current window and if it's greater than 800px, then insert a little inline
stylesheet that should set the width of the table to about 600px wide, but
although the script looks right, it's not working in either NS or IE. The
script seems to run in NS, but it doesn't seem to support the CSS that
I'm using, and the script doesn't seem to run at all in IE, which does
support the CSS, so I'm in a bit of a quandry. If I remember to upload it,
you should be able to find the URL at:
http://www.dcs.gla.ac.uk/~bhaskarr/test/index.html
Thanks,
Raj.
------------------------------------------------------------------
__ __
| | | | Rajnish Bhaskar, University of Glasgow
|_ / |_ / E-Mail: rajy(at)i.am
| \ | \ Home Page: http://i.am/rajy
| \ |__/
Um, I tend to either agree or disagree with you
-- Kev - to Nick Abbot on Talk Radio
22nd September 1998
HTML: hwg-basics mailing list archives,
maintained by Webmasters @ IWA
This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.