View Full Version : HTML window size
rbgerman
08-17-2004, 03:16 PM
quick html question;;;;;
i have designed my page. when i link to that page, it comes up in its own window. This works fine. but I do not want it to fill the entire screen. i want it to be a pre-determined height and width. i also want it centered in the screen.
how can i do that?
rbg
Abaddon
08-17-2004, 06:04 PM
You should probably do a javascript popup window. Here's an example of what one looks like:
window.open('the_site_you_want_to_popup.html', '', 'height=500,width=450');
Be sure to search the internet for tutorials on how to make them. I think http://javascript.internet.com/ has them. :)
senshi
08-20-2004, 10:43 PM
pop up most definately, if you go messing with peoples window sizes, they wont like you because most people have set their browser up to appear same size, position everytime, for me IM not that bothered but people like my girlfriend scream everythime she comes across a site that changes her browser settings.
I would say it is better to use javascript to find the current windo fram size ans 'Size' your site to the window as best fit.
rbgerman
08-21-2004, 03:44 PM
i do not want to alter anyone's settings. I just want the page the comes up to be a certain height and width instead of filling the entire screen.
senshi
08-25-2004, 05:53 AM
Thats my point exactly, you ahve fallen into that age old trap that everyone falls into... you can only see the result from your point of view.
If a person has set their browser, it may not fill the screen like yourse does, yours fills the screen because you settings tell it to do so.
as for a pop up, fine, but dont go altering browser settings, if you do, ensure that you return the settings to their original before closing the page as any settings including a pop up will alter the method in which a browser window will open up to.
I recently visited a site that had a pop up, since then all my windows open up approx size 350 x 250. Although it doesnt bother me too much, it is still an annoyance when inconsidferate coders dont take into the fact that they may be producing nice fancy sites but at a cost of a once only visit because they alienate themselves because of the way the site is built and operates.
vBulletin® v3.6.7, Copyright ©2000-2009, Jelsoft Enterprises Ltd.