473,672 Members | 2,666 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Adjusting to screen width

VJ
Is there a any known easy way to fit web pages for a screen resolution. Can
I do this programmaticall y?

VJ
Nov 18 '05 #1
5 2901
<table width=100% height=100%>
--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"VJ" <vi********@yah oo.com> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. ..
Is there a any known easy way to fit web pages for a screen resolution. Can I do this programmaticall y?

VJ

Nov 18 '05 #2
My preference is to dispose UI elements in a table that uses a 100 % width.
This way the browser tries to dispose things using the whole width... (you
can also just center things if they are really too narrow but you have the
basic idea that is to let the browser do the exact placement based on your
stylistic indications. Do you have a specific issue in mind ?).

Patrice

"VJ" <vi********@yah oo.com> a écrit dans le message de
news:%2******** ********@tk2msf tngp13.phx.gbl. ..
Is there a any known easy way to fit web pages for a screen resolution. Can I do this programmaticall y?

VJ

Nov 18 '05 #3
VJ
Guess my question was not placed correctly, let me try again

We are developing web pages that will be viewed in Tablet PCs. The page has
frames with lot of controls in them. The pages were developed for 1024 X 768
resolution in a desktop computers. They work fine with no scroll bars on
Tablet PC in Landscape mode. In portrait mode, we get horizontal and
vertical scroll bars. How do I fit the page back in portrait mode, so that
scroll bars don't appear.

VJ

"VJ" <vi********@yah oo.com> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. ..
Is there a any known easy way to fit web pages for a screen resolution. Can I do this programmaticall y?

VJ

Nov 18 '05 #4
put a table as your top level control.
That will define your limits then, from there dont hard-code any fixed
widths, only %'s.
This should auto-wrap any thing that would scroll the page. I would only do
this for width though, not height. Let that scroll

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"VJ" <vi********@yah oo.com> wrote in message
news:eh******** ******@TK2MSFTN GP12.phx.gbl...
Guess my question was not placed correctly, let me try again

We are developing web pages that will be viewed in Tablet PCs. The page has frames with lot of controls in them. The pages were developed for 1024 X 768 resolution in a desktop computers. They work fine with no scroll bars on
Tablet PC in Landscape mode. In portrait mode, we get horizontal and
vertical scroll bars. How do I fit the page back in portrait mode, so that
scroll bars don't appear.

VJ

"VJ" <vi********@yah oo.com> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. ..
Is there a any known easy way to fit web pages for a screen resolution.

Can
I do this programmaticall y?

VJ


Nov 18 '05 #5
Andy Smith has an interesting control that might help with the screen size
detection:
ResizeMonitor Control

The ResizeMonitor control raises server-side events when the user changes
their browser window size.

http://www.metabuilders.com/Tools/ResizeMonitor.aspx

"VJ" <vi********@yah oo.com> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. ..
Is there a any known easy way to fit web pages for a screen resolution.
Can
I do this programmaticall y?

VJ


Nov 18 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
8304
by: Laura | last post by:
Hello, Newbie question: Does anyone know how to dynamically set the screen width in an applet? I have an applet that creates a horizontal bar menu on a webpage, and I would like the width to be 100%. Unfortunately, this doesn't work with Explorer. so, in my html page, I wrote a function like this: <SCRIPT LANGUAGE="JavaScript"> int function getScreenWidth()
1
1321
by: Alexia | last post by:
Hi, just a quick question How do i make sure that the form shown is the size of my screen. i.e i want the form size to adjust to the resolution that is set on my monitor.
18
11641
by: DavidS | last post by:
Have resW=screen.width; resH=screen.height in javascript. How can I read these values in ASP.NET source code - Page_Load function of code behind? Any suggestions?
6
9896
by: wiewel | last post by:
hi all, i have a strange problem when trying to set up a horizontal menubar: i would like to split the whole screen from left to right into 9 pieces. the first one has a fixed width of 186px. the remaining 8 should all have the same width, depending on the screen resolution. how can i get this to work in both IE and mozilla? i already have a solution that works fine in mozilla, but does not in IE.
14
48977
by: Seige | last post by:
Ever had headache when you can't resize the background width using CSS: body{ background: url(/images/bg.jpg) ; background-width: 800px; } It won't work, would it? Of course not, it's not even defined in CSS. So, let's try to work it out using Javascript: There are two methods, first method you prepare plenty of different
11
3184
by: srini | last post by:
Frens, I am trying to get screen resolution of the client machine using javascript and use those values in my project. I looked at some of the examples given in this group, i tried to implement the same but everytime i get nulls, i tested javascript by keeping alert statements and everything looks good to me.... I am trying to figure it out what peice of info is missing in this code..... Here is my code
1
1574
by: vunet.us | last post by:
Hello, I use a floating div with overflow:auto properties for specific reason (to avoid the bug of overlapping elements). Anyway, the problem is that this div has 2 tables inside. In some rare cases, tables may have larger width than my floating div, which is the container for these tables, and therefore, scrollbars appear. I need to remove scrollbars, so I created function to get each tables cllientWidth values and if any table is larger...
3
6780
by: Safalra (Stephen Morley) | last post by:
(Note: I'm not trying to do anything stupid based on the user's screen size - I'm just curious.) At work today I was looking at the visitor statistics for a client website, and noticed that the recorded screen resolutions included results that clearly referred to dual display systems - 2560 by 1024, for example. The statistics package is obtaining this data from window.screen.width. I wasn't aware of this behaviour of...
0
8506
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8423
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8649
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8701
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7482
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6261
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5725
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4251
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
2098
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.