472,985 Members | 2,649 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,985 software developers and data experts.

window size ???

hi !

question is very simple: how can i have a window with 30% (width) and
100% (hieght) of my screen. its very important to have such dimension
becouse i want to have always the same propotion on the sreen even
when i change the screen resolution (640x480 >>> 800x600 >>>1024x756).

thanks for any ideas :)
hawk.
Jul 23 '05 #1
6 6722
pr********@poczta.fm (Thorn) writes:
question is very simple: how can i have a window with 30% (width) and
100% (hieght) of my screen. its very important to have such dimension
becouse i want to have always the same propotion on the sreen even
when i change the screen resolution (640x480 >>> 800x600 >>>1024x756).


I don't know of any browser that does this automatically, but if you
use a pencil to mark your monitor you should be able to line the edges
of the browser window up nicely using whatever your window system's
resize function is.

It might be possible (depending on the browser and the window system)
to write a little routine that did the resize automatically, but
unless you change resolution a lot it's probably more efficient just
to resize it manually with the mouse/keyboard.

Probably a group for windowing systems will give you better ideas than
a group for HTML authoring on the web, though.

--
Chris
Jul 23 '05 #2
Thorn wrote:
question is very simple: how can i have a window with 30% (width) and
100% (hieght) of my screen. its very important to have such dimension
becouse i want to have always the same propotion on the sreen even
when i change the screen resolution (640x480 >>> 800x600 >>>1024x756).


Nothing to do with HTML, I'm afraid, and thus off-topic for this group.
Some browsers may allow you to use Javascript to resize the window
appropriately: you could use a variant of the technique described here:

http://www.themaninblue.com/writing/...ve/2004/09/21/

Try comp.lang.javascript for futher advice.

--
Mark.
http://tranchant.plus.com/
Jul 23 '05 #3
"Thorn" <pr********@poczta.fm> wrote in
comp.infosystems.www.authoring.html:
question is very simple: how can i have a window with 30% (width) and
100% (hieght) of my screen. its very important to have such dimension


No, it's not. If you want to control aspect ratio then publish on
paper. The Web is a fluid medium. Leaving aside the fact that not
everyone who uses the Web can see, you cannot control the window
dimensions.

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2.1 spec: http://www.w3.org/TR/CSS21/
validator: http://jigsaw.w3.org/css-validator/
Jul 23 '05 #4
Mark Tranchant wrote:
question is very simple: how can i have a window with 30% (width) and
100% (hieght) of my screen. its very important to have such dimension
becouse i want to have always the same propotion on the sreen even
when i change the screen resolution (640x480 >>> 800x600 >>>1024x756).

If you use Mozilla or Firefox, then the Web Developer toolbar has a nice
resize window feature that lets you enter the exact size you want. It's
more accurate than just resizing the window manually, and doesn't
require you drawing on your screen with a pencil as Chris Morris suggested.
Nothing to do with HTML, I'm afraid, and thus off-topic for this group.
Some browsers may allow you to use Javascript to resize the window
appropriately: you could use a variant of the technique described here:

http://www.themaninblue.com/writing/...ve/2004/09/21/


Don't use JavaScript to resize a user's window, it's rude. I have my
browser configured so that is not allowed, but not all users know how to
do that, so you will just end up annoying those users.

--
Lachlan Hunt
http://lachy.id.au/
http://GetFirefox.com/ Rediscover the Web
http://SpreadFirefox.com/ Igniting the Web
Jul 23 '05 #5
Thorn wrote:
question is very simple: how can i have a window with 30% (width) and
100% (hieght) of my screen. its very important to have such dimension
becouse i want to have always the same propotion on the sreen even
when i change the screen resolution (640x480 >>> 800x600 >>>1024x756).


Really, really bad idea for the reasons other people mentioned. But
because I'm in an evil mood, here's a JavaScript snippet that'll do what
you want in some poorly-configured browsers:

window.resizeTo(screen.width * 0.3, screen.height);
Jul 23 '05 #6
Leif K-Brooks wrote:
because I'm in an evil mood, here's a JavaScript snippet that'll do what
you want in some poorly-configured browsers:
You evil, evil man!
window.resizeTo(screen.width * 0.3, screen.height);


Ah right, that's why I use Firefox! ;-)

--
Brian (remove "invalid" to email me)
Jul 23 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Randell D. | last post by:
HELP! Its taken me ages - I'm a newbie and I've compiled bits of code that I've read in this newsgroup over time to create one of my most intricate functions to date... Basically, the script...
8
by: alanstew | last post by:
With the body tag calling out 'window onload', a function with a 'window.open' fails at the 'window.open' line. If I cut out the body tag, the function executes as normal. At first I thought it...
6
by: David Hayes | last post by:
juglesh <juglesh@nospamRadioKDUG.com> wrote in "Re: how to maximize the browser window that fits the monitor size?" (Saturday, January 01, 2005 3:12 AM): > > >I want to maximize the browser...
26
by: yb | last post by:
Hi, Is there a standard for the global 'window' object in browsers? For example, it supports methods such as setInterval and clearInterval, and several others. I know that w3c standardized...
17
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I find the size of a browser window?...
2
by: tshad | last post by:
I have an aspx window that is going to open a window (javascript) and display a graphic. I want to resize the window to the size of the graphic before it actually displays - how do I do that? ...
9
by: tshad | last post by:
This was posted before but the message got messed up (all NLs were stripped out for some reason). I have 2 labels that hold the name of different images on my .aspx page. <asp:Label ID="Logo"...
2
by: wreed06 | last post by:
Hello, I have 2 problems. In my webpage, I have a dropdown list with a button that takes the user to a popup window specific to the option. I am using Firefox 2.0.0.13. I have successfully...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
4
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.