Welcome to Dream.In.Code
Become an Expert!

Join 149,943 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,412 people online right now. Registration is fast and FREE... Join Now!




html resize window code works differently for IE and firefox

 
Reply to this topicStart new topic

html resize window code works differently for IE and firefox

fatnhappy
25 Aug, 2008 - 07:46 PM
Post #1

New D.I.C Head
*

Joined: 25 Aug, 2008
Posts: 2

A noob would like some help.

I am making a html page to autorun from a CD-ROM. I would like the
browser window on the users computer to open to a fixed size.
I tried the following html inserted into the body of my code.

CODE
onload="self.resizeTo(795,470)">


This works well in Internet Explorer but when I try it with Firefox 3.0.1 the script seems to make the toolbars and scrollbars be included in the size. That is, the interior of IE window displays the content at the right size (795 x 470) with no space between the content and the scroll bars etc., but the whole of the firefox browser program (toolbars, scrollbars etc shrink to 795 x 470). This makes it necessary to scroll the content in Firefox.

I would like to only use html for the solution as I am trying to keep the CD-ROM requirements to run to a minimum.

Also if there was someway to make the scroll bars and toolbars disappear from the browsers this would improve the professional look.

I am sure there is an easy answer, but just being a mere noob I can't find it. Thanks for any help.


User is offlineProfile CardPM
+Quote Post

BetaWar
RE: Html Resize Window Code Works Differently For IE And Firefox
25 Aug, 2008 - 08:21 PM
Post #2

#include <soul.h>
Group Icon

Joined: 7 Sep, 2006
Posts: 2,299



Thanked: 101 times
Dream Kudos: 1275
My Contributions
If you just want to get rid of scrollbars in a browse you could do something like so:

CODE

<style>
body{
  overflow: hidden;
}
</style>


That should make the overflow hidden in most browsers (meaning no scrollbars are visible)

If you are wanting tog et rid of toolbars as well I would look into javascript's functions for making popups.

HTH

This post has been edited by BetaWar: 25 Aug, 2008 - 08:21 PM
User is online!Profile CardPM
+Quote Post

fatnhappy
RE: Html Resize Window Code Works Differently For IE And Firefox
25 Aug, 2008 - 08:42 PM
Post #3

New D.I.C Head
*

Joined: 25 Aug, 2008
Posts: 2

Thanks BetaWar.
That helps a bit but I still have my main problem of the content size being different in IE and Firefox.
Cheers
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/8/09 04:51PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month