|
|
Subject:
HTML Freeze Frame
Category: Computers > Programming Asked by: jack50-ga List Price: $10.00 |
Posted:
14 Aug 2002 10:09 PDT
Expires: 13 Sep 2002 10:09 PDT Question ID: 54576 |
Is there an html tag I can use to prevent the user from resizing my web page, causing headlines and text to wrap differently as the window changes size? I know DreamWeaver and other html coders do this. --Jack Morris |
|
Subject:
Re: HTML Freeze Frame
Answered By: joseleon-ga on 14 Aug 2002 11:09 PDT |
Hello, jack50: There are several ways to get what you want, you can use javascript to create a new window in this way: window.open("http://yourpage.html","displayWindow","resizable=no"); In this way, you won't allow your user to resize your window, also you can specify the width and height attributes in this way: window.open("http://yourpage.html","displayWindow","resizable=no,width=30,height=400"); Check out all the attributes you can specify here: Window.Open method http://developer.netscape.com/docs/manuals/communicator/jsref/win1.htm#1152528 For more information check out this link: Javascript Window object http://developer.netscape.com/docs/manuals/communicator/jsref/win1.htm#1010280 The other way, which is the normal way, is to layout your content using tables. By using them you can get a lot of control over the behaviour of the contents of a page. Let's see this sample: <html> <table border=1 width=400> <tr> <td> This are your contents separated by a <hr> And even the user resizes the window, this table will always be 400 pixel width </td> </tr> </table> </html> The <hr> tag inside your content doesn't resize as the browser does, I have set border=1 to let you see where the table is, but you can use border=0 to don't let the user see your tables. You can also specify a percentage as the border width, check out this sample: <html> <table border=1 width=80%> <tr> <td> This are your contents separated by a <hr> And this table will render 80% of the browser's width </td> </tr> </table> </html> To get more information, follow these links: HTML 4.01 Specification http://www.w3.org/TR/html401/ Tables in HTML documents http://www.w3.org/TR/html401/struct/tables.html The table element http://www.w3.org/TR/html401/struct/tables.html#h-11.2.1 I hope this solves your problem, and don't hesitate to ask for any clarification, we are here to help you. Regards. |
|
Subject:
Re: HTML Freeze Frame
From: robbienewbie-ga on 14 Aug 2002 10:23 PDT |
You can either: Do the <table> trick. Making the contents fit within the table with no wrap. or, Do the CSS method. It said that CSS is better than the <table> trick and more precise. Hope this helped somehow. |
Subject:
Re: HTML Freeze Frame
From: lupo-ga on 14 Aug 2002 11:10 PDT |
You could have your page pop open a new window that is not resizable and have your page load in there ... like this: <html> <head> <script type="text/javascript"> function winPop() { window.open("http://www.cantalupo.org","whatevernameyouwant","toolbar=no,resizable=no,height=400,width=450"); } </script> </head> <body onload="winPop()"> Check it out, you can't resize the new window </body> </html> Hope this helps. There is no way that I know of to disallow people to resize the existing instance of the browser. The table method mentioned above can be used for the content of your page but still allows the browser/window to be resized. |
Subject:
Re: HTML Freeze Frame
From: cwrl-ga on 28 Aug 2002 08:33 PDT |
Observe that in general none of these schemes will work, since it is up to the user's browser to decide how to render your page, not you. Typically windows are resizeable regardless of the resizeable=... parameter to window.open. In addition, many users find it very irritating if the page opens new windows when they don't want it to do so. If I want a link to open in a new window, I will middle-click (or whatever) to make it do so; if I left-click on a link, it's a pretty good guess that I don't want a new window to open. Of the other techniques, I would recommend CSS above the <table> thing, but the best advice is probably to avoid tying your design to a particular browser width. |
Subject:
Re: HTML Freeze Frame
From: joseleon-ga on 29 Aug 2002 01:29 PDT |
Hello: >Of the other techniques, I would recommend CSS above the <table> >thing I posted the table method because is the only one which is fully compliant with all the browsers in the market (including NS 4). The CSS method only is useful to get a great headache ;-) Regards. |
If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you. |
Search Google Answers for |
Google Home - Answers FAQ - Terms of Service - Privacy Policy |