Resize

Could someone tell me what tag to use to have the browser  detect what screen size the user is using.   So that no matter what screen size (800 x 600 or 1024 x 768) the user is using the browser will adjust the text vertically not horizontally.

Is this something double.

Thanks in advance

Maurice
Maurice072297Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

abragerCommented:
There is no HTML tag to do this.  However, if you run your own web server, you can get the information of the resolution from the logs or via a CGI script (via the header info given by the web browser)
0
oubelkasCommented:
Well, Maurice, I reckon you don't have much help with an answer like abrager gave. Here I have a script (javascript) which detects the resolution of the user.

<html>
<head>
<script language="javascript">
<!--
function resolution(){
  document.myForm.heightbox.value = screen.height;
  document.myForm.widthbox.value = screen.width;
}
//-->
</script>
</head>
<body>
<form name="myForm">
<input type="text" name="widthbox" value=""> <b>by
<input type="text" name="heightbox" value=""> pixels </b><br><br>
<input type="button" value="detect resolution" onClick="javascript:resolution()">
</form>
</body>
</html>

Just copy paste it and let me know what you think of it.

Joseph
0
Maurice072297Author Commented:
Joseph, so there isn't a HTML tag that I could use??  If you will answer that question first, I will be happy to give you the points.

Thanks for your help

Maurice
0
oubelkasCommented:
No, sorry, there isn't one. Therefore Javascript is a solution to this. Maybe in the future such a tag will be provided by the browsers, but I doubt that it's gonna happen on short notice...

No thanks for the help, I'm here for the help...(and a little for the points) ;)

Joseph
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
HTML

From novice to tech pro — start learning today.