Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > HTML > HTML Code Clinic
|
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 27th, 2006, 01:58 AM
Authorized User
 
Join Date: Sep 2003
Posts: 73
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to prabodh_mishra
Default HTML forms AND Screen resolution

Hi all,

I've a HTML form for Screen size 800x600. My problem is I dont know what size clients are going to use. It just goes haywire if client has a different screen size. I want all my buttons and text boxes to occupy same area regardless of the screen resolution.

Is there a way?

In hope
Prabodh

__________________
Prabodh
 
Old March 8th, 2006, 05:04 PM
Friend of Wrox
 
Join Date: Nov 2005
Posts: 223
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

you could use javascript to catch the resolution of a client and then
redirect the user to the page with the right resolution.
Code:
<script type=javascript>
alert('Your resolution is '+screen.width+'x'+screen.height)
</script>
__________________________________________________ ________
This is my junk I'm gona eat it
 
Old March 8th, 2006, 07:41 PM
Wrox Technical Editor
 
Join Date: Dec 2005
Posts: 271
Thanks: 0
Thanked 0 Times in 0 Posts
Default

you could use a table within a table.
Set the outer table to 800px and the inner table to 100%, the inner table will be resized based on the browser size and the outer table will prevent the screen from exceeding 800px.

This can also be done with CSS and div tags.
From my experience tables and forms work best together.

- A.Kahtava





Similar Threads
Thread Thread Starter Forum Replies Last Post
Screen Resolution:HTML file display problem vamsikk XSLT 2 July 4th, 2008 03:16 AM
ASP.net web forms and screen resolution kulkarnimonica ASP.NET 2.0 Professional 4 July 25th, 2007 09:22 PM
screen resolution Adam H-W Classic ASP Basics 3 October 13th, 2004 09:13 PM
screen resolution miguel.ossa C# 2 October 9th, 2004 11:58 PM
screen resolution mistry_bhavin Pro VB.NET 2002/2003 0 March 13th, 2004 02:36 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.