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?

[Webinar] Streamline your web hosting managementRegister Today

x
 
oubelkasConnect With a Mentor Commented:
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
 
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
All Courses

From novice to tech pro — start learning today.