Click to See Complete Forum and Search --> : Can I Set the Zoom Level in IE?


sjwhiting
05-29-2008, 12:57 PM
Hi all,

This may be doable with other types of code, but I figured I'd start here. I have a converter that we use to convert a txt file to html. In order to convert correctly, the convert must use a good many <PRE> tags to preserve text alignment, etc.

Once the HTML file is created, in most resolutions we use, the file is about 5 columns to wide, and therefore makes the screen scroll. The simple solution is to change the zoom level in IE7 to 98% and bingo.

What I'd like to do is set that % when the page loads so the user doesn't have to. Is that possible?

I tried CSS with the following, but it didn't work. I know my css file works bc I can successfully change the colors, etc.

pre {zoom: 98%} was the css I tried for the pre tag, but nothing changed.

Any ideas would be greatly appreciated. I would prefer to do this via CSS if possible.

Thanks,
Shannon

Fang
05-29-2008, 01:49 PM
You can and that should work.
A 2% change is hardly visible. Try a larger change.

Why only change for IE? Change the font-size and it will work in all browsers.

sjwhiting
05-29-2008, 02:17 PM
Thanks for the reply. You're right, I simply wasn't adjusting enough. I was using 98% because if I adjusted the "Zoom" in IE7 on the bottom right, 98% fixed my width issue.



Thanks again!
Shannon