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

Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

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) ;)

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)
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.

<script language="javascript">
function resolution(){
  document.myForm.heightbox.value = screen.height;
  document.myForm.widthbox.value = screen.width;
<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()">

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

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

All Courses

From novice to tech pro — start learning today.