|
Posted by Cartoper on September 6, 2007, 3:14 pm
Please log in for more thread options
I am working on a browser kiosk needs to be able to be run at multiple
screen resolutions. What I would like to do is keep the text the same
size relative to the screen, all the time.
In other words, lets say there is a table with 10 rows and 4 columns
that is centered with a 5% of the screen as a boarder around it. If
you have two 17 inch monitors, one at 1024x768 and the other at
1280x1024 sitting next to each other, I would like the table and the
text to appear the same physical size on both monitors.
I believe the table is straight forward, using percentages, but is
there some way (I am thinking that I might want to be using one of
those fancy units other then px or pt) to scale the text so it appears
the same size on both monitors?
Cartoper
|
|
Posted by Jukka K. Korpela on September 6, 2007, 3:28 pm
Please log in for more thread options
Scripsit Cartoper:
> I am working on a browser kiosk needs to be able to be run at multiple
> screen resolutions. What I would like to do is keep the text the same
> size relative to the screen, all the time.
What makes you think this is an HTML issue?
> I would like the table and the
> text to appear the same physical size on both monitors.
Why? If you simply do nothing to set any font size (though you might set
body { font-size: 100% } in CSS to overcome some browser bugs), the user
will be able to choose the font size at least in a coarse way, unless you
take extra trouble to prevent that. Just include simple instructions on this
near the kiosk.
Anyway, this does not belong to c.i.w.a.html.
--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/
|
|
Posted by David E. Ross on September 6, 2007, 3:48 pm
Please log in for more thread options
On 9/6/2007 12:28 PM, Jukka K. Korpela wrote:
> Scripsit Cartoper:
>
>> I am working on a browser kiosk needs to be able to be run at multiple
>> screen resolutions. What I would like to do is keep the text the same
>> size relative to the screen, all the time.
>
> What makes you think this is an HTML issue?
>
>> I would like the table and the
>> text to appear the same physical size on both monitors.
>
> Why? If you simply do nothing to set any font size (though you might set
> body { font-size: 100% } in CSS to overcome some browser bugs), the user
> will be able to choose the font size at least in a coarse way, unless you
> take extra trouble to prevent that. Just include simple instructions on this
> near the kiosk.
>
> Anyway, this does not belong to c.i.w.a.html.
>
In a kiosk, the user usually has little ability to choose viewing
properties, including adjusting font sizes. This is one of the few
instances where the developer must set font sizes.
If this is not something that can be handled via HTML (and I doubt if it
can), a proper response to a request for help would be to point the
original poster to a valid source of information. After all, you might
someday need help, too. When that happens, do you want to be dismissed
abruptly just because you don't know where to ask?
--
David E. Ross
<http://www.rossde.com/>.
Anyone who thinks government owns a monopoly on inefficient, obstructive
bureaucracy has obviously never worked for a large corporation. © 1997
|
|
Posted by Jukka K. Korpela on September 7, 2007, 6:38 am
Please log in for more thread options
Scripsit David E. Ross:
> In a kiosk, the user usually has little ability to choose viewing
> properties, including adjusting font sizes. This is one of the few
> instances where the developer must set font sizes.
Contrary to apparently popular belief, kiosks are not created by God or gods
but built by men (human beings). Any "must" is thus relative to what other
human beings have done to restrict the options of other human beings.
> If this is not something that can be handled via HTML (and I doubt if
> it can),
You doubt? Really?
> a proper response to a request for help would be to point the
> original poster to a valid source of information.
No, this is not a helpdesk for selecting a newsgroup or other fora. Please
check the description of this group.
--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/
|
|
Posted by David E. Ross on September 6, 2007, 4:03 pm
Please log in for more thread options
On 9/6/2007 12:14 PM, Cartoper wrote:
> I am working on a browser kiosk needs to be able to be run at multiple
> screen resolutions. What I would like to do is keep the text the same
> size relative to the screen, all the time.
>
> In other words, lets say there is a table with 10 rows and 4 columns
> that is centered with a 5% of the screen as a boarder around it. If
> you have two 17 inch monitors, one at 1024x768 and the other at
> 1280x1024 sitting next to each other, I would like the table and the
> text to appear the same physical size on both monitors.
>
> I believe the table is straight forward, using percentages, but is
> there some way (I am thinking that I might want to be using one of
> those fancy units other then px or pt) to scale the text so it appears
> the same size on both monitors?
>
> Cartoper
>
I'm assuming that the kiosks are part of an intranet (not Internet)
where both the kiosk configurations and the server are both under the
same controlled configuration.
First, you need to determine which kiosk monitor is requesting the page
or at least the characteristics of the kiosk monitor. I have seen
statistics that indicate there is a way to do this in general, but I
don't know how. In your case, however, if your monitors have fixed IP
addresses or IDs, you can use those.
If your server is Apache, you can use server-side includes (SSIs) to
check the monitor ID or IP address and embed the appropriate CSS into
the HTML file being served. The embedded CSS should contain the
necessary font-sizing specifications.
The IP address of a Web client is Apache environment variable
REMOTE_ADDR. The ID of a kiosk can be set in the kiosk's browser as
part of its user agent (UA) string unique to each kiosk; the UA string a
Web client is Apache environment variable HTTP_USER_AGENT.
For this to work, the SSI script will need to do a table look-up on each
ID or IP address to determine which CSS fragment to embed within the
HTML. Then, if a kiosk's monitor is changed, the lookup table will
require a corresponding change.
--
David E. Ross
<http://www.rossde.com/>.
Anyone who thinks government owns a monopoly on inefficient, obstructive
bureaucracy has obviously never worked for a large corporation. © 1997
|
| Similar Threads | Posted | | Dynamic width of a text input field in a form | November 8, 2005, 6:35 am |
| Dynamic image which is highlighting/increasing the text/area when the curser moves over it? | July 20, 2006, 1:45 am |
| Images & relative sizing & IE | December 20, 2004, 1:09 pm |
| Elements not sizing consistently | October 18, 2007, 10:31 pm |
| Any way to make an auto-sizing window? | January 16, 2007, 1:55 am |
| How to let the layout laterals auto sizing? | March 26, 2008, 11:03 am |
| What is the most versatile sizing value for fonts? Percents?EM's? | January 7, 2008, 7:13 pm |
| Image/Font sizing UI design question re directories | March 29, 2006, 7:04 am |
| Why are we experiencing a table sizing issue with set pixel widths? | May 21, 2008, 3:48 pm |
| Dynamic wegbpage | May 18, 2006, 5:29 pm |
|