473,657 Members | 2,432 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Frightened new owner of wide screen finds her web pages are in tiny print on it...

Hello,

I've looked through alt.html and this group for an answer to my
question.

However, I found only cranky arguments with, occasionally, bits of
hard-to-understand code - out of context - each of which is slammed by
the next people along in the thread.

So I'm afraid to ask this but I need to know!...

Is there a way to insert a couple of lines in my style sheet that say,
"if the resolution of the viewer's screen is more than 800x600 use a
fontsize 130% bigger"

Please don't call me an idiot, I know already that I am one.

Thanks for your help,
Jane

Apr 2 '07 #1
31 4185
melinama wrote:
I've looked through alt.html and this group for an answer to my
question.
Smart move, Jane! Idiots don't do that. Even some smart people don't do
that.
However, I found only cranky arguments with, occasionally, bits of
hard-to-understand code - out of context - each of which is slammed by
the next people along in the thread.
This neither confirms nor refutes your idiocy. Take another turn.
Is there a way to insert a couple of lines in my style sheet that say,
"if the resolution of the viewer's screen is more than 800x600 use a
fontsize 130% bigger"
AFAIK, no. But (at the risk of starting a cranky argument, only to be
slammed by the next folks) you probably don't need to do that. Possibly
(I'm guessing here, since you didn't mention a URL or other specifics)
you have set the default text unrealistically small in the first place,
if it only looks good at 800x600. I mean, if the boundary of legibility
is already reached for some statistically large percentage of visitors
to your site at 800, and not, say, at 1024, then you've probably styled
your stuff too small to start with.

Quite likely you have already seen stats like the one here (mid-page):
http://www.w3schools.com/browsers/browsers_stats.asp . By no means
exact, and I don't believe PDAs and such are even on their radar, but I
don't think aiming at the 800x600 is the best move. "We've grown beyond
that now." :-p

I would advise aiming for a basic comfort zone (what you or other
normally-sighted 30-year-olds see comfortably) at a screen res of
1024x768 (or so). Text will be larger on the (presumably older) 800px or
640px screen, but if you code in relative units the user can probably
scale down. Text will be smaller for owners of wide screens, but again
relative units in the code and cluefulness in the screen's owner will
allow scaling.

I'm also trying to picture a Web page aimed at 800px people, which then
successfully scales up to a wide-screen display (like what, 1600px?) in
a full-window browser. I don't see these very often. Do you have a URL?

Anyway, you'd need scripting to even find out what the resolution is, so
you can't count on that method.
Please don't call me an idiot, I know already that I am one.
Well, you are an idiot, but only for thinking that you are one. ;-) Or
for accepting help from idiots...
Thanks for your help,
Jane
You are welcome. HTH.
--
John
Apr 2 '07 #2
Scripsit melinama:
Hello,

I've looked through alt.html and this group for an answer to my
question.

However, I found only cranky arguments with, occasionally, bits of
hard-to-understand code - out of context - each of which is slammed by
the next people along in the thread.

So I'm afraid to ask this but I need to know!...
You just wasted 11 lines to pointless babbling, and you did not describe the
background that made you ask your question. It's in the Subject line, but
the purpose of the Subject is to act as an external description of what the
message is about.

Regarding your problem with your new wide screen, note that it affects _all_
web pages you view, so trying to fix _your_ pages for _your_ screen would be
rather futile. Select the resolution (and thereby pixel size) that suits
you. The set your browser(s) to use a default font size that suits you, and
hope that web authors are clever enough to let the user decide on the font
size, or at least don't mess too much with it.
Is there a way to insert a couple of lines in my style sheet that say,
"if the resolution of the viewer's screen is more than 800x600 use a
fontsize 130% bigger"
That's not possible, and it would rather harm than help. Why would the
screen resolution dictate the font size? Do you mean that after the user has
carefully done what I suggested to you above, web authors should throw in
their second guesses, saying that the user's choice is wrong, whatever it
is?

One thing to be learned from this is that setting font size in pixels is a
bad thing, just as setting it in points or millimeters is, though for
somewhat different reasons. When you set font size to, say, 12px, most users
get a font size that is pretty close to 12px - with some confusion and
oddities as usual - and that's the _problem_. You cannot know the size of a
pixel on a user's screen, and 12px might mean just illegible, or something
else.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

Apr 2 '07 #3
melinama scribed:
>Hello,

I've looked through alt.html and this group for an answer to my
question.

However, I found only cranky arguments with, occasionally, bits of
hard-to-understand code - out of context - each of which is slammed by
the next people along in the thread.

So I'm afraid to ask this but I need to know!...

Is there a way to insert a couple of lines in my style sheet that say,
"if the resolution of the viewer's screen is more than 800x600 use a
fontsize 130% bigger"
You can't do what you want using only CSS.

I use a small javascript that ascertains my viewers screen resolution and
then directs my page to use the appropriate style sheet (or pertinent
portion). You could also use a javascript to alter the <bodytag, or if you
use a page wrapper, change its font-size. These, and similar solutions will
fail if your user has not enabled javascript. To overcome this you could use
a server side solution and dynamically generate the page based on user's
screen resolution.

Bottom line, AFAIK, you can't do what you want using CSS alone.
--
Ed Jay (remove 'M' to respond by email)
Apr 2 '07 #4
On 2 Apr, 12:30, "melinama" <Jane.Pepp...@g mail.comwrote:
Is there a way to insert a couple of lines in my style sheet that say,
"if the resolution of the viewer's screen is more than 800x600 use a
fontsize 130% bigger"
Fortunately not, as this wouldn't actually help. It's not a question
of display resolution, it's a combination of resolution, monitor size
and desktop font settings (for IE at least).

body { font-size: 1em; } is the way to fix this.

Posting the URL to your site helps too.
There's rather more behind this story (that simple fix can make IE
look _too_ big in some cases), but that's as much as you get without a
URL.

Apr 2 '07 #5
John Hosking wrote:
melinama wrote:
>Is there a way to insert a couple of lines in my style sheet that say,
"if the resolution of the viewer's screen is more than 800x600 use a
fontsize 130% bigger"

you'd need scripting to even find out what the resolution is
That would probably be fixing the wrong problem, anyway. Chances are
she's not setting font sizes in em or % units to begin with, which is
the likely cause of the client's complaint.

--
Berg
Apr 2 '07 #6
Andy Dingley wrote:
>
body { font-size: 1em; } is the way to fix this.
Better:
body { font-size: 100%; }

This avoids an IE bug scaling em units.

--
Berg
Apr 2 '07 #7
melinama wrote:
Hello,

I've looked through alt.html and this group for an answer to my
question.

However, I found only cranky arguments with, occasionally, bits of
hard-to-understand code - out of context - each of which is slammed by
the next people along in the thread.

So I'm afraid to ask this but I need to know!...

Is there a way to insert a couple of lines in my style sheet that say,
"if the resolution of the viewer's screen is more than 800x600 use a
fontsize 130% bigger"

Please don't call me an idiot, I know already that I am one.

Thanks for your help,
Jane
Jane,

http://pages.prodigy.net/chris_beall...nt%20size.html provides some
background (without cranky arguments...). The net is that if the user
has set up their browser with a default font size that they find
comfortable, and you DO manage to succeed with your stated objective,
everything on your site will appear huge to the user with a window
larger than 800 X 600.

On a technical note, which dimension would you use to trigger your
font-size change: height, width, total window area? Remember that the
user can change height and width independently.

Finally, you can see some of the sniffing techniques that could be used,
if you chose to ignore all the good advice you've been given, at
http://pages.prodigy.net/chris_beall...vironment.html.
Note, however, that most of these techniques depend on JavaScript, which
some users disable.

Chris Beall

Apr 2 '07 #8
On Mon, 02 Apr 2007 12:11:47 -0600, Bergamot <be******@visi. comwrote:
>Andy Dingley wrote:
>>
body { font-size: 1em; } is the way to fix this.

Better:
body { font-size: 100%; }

This avoids an IE bug scaling em units.
Even better:

<style type="text/css">
body { font-size: 1em; }
</style>
<!--[if IE]>
<style type="text/css" >
body { font-size: 80%; /* 120dpi (Windows "large fonts 125%"
)*/ }
</style>
<![endif]-->

This avoids a desktop font scaling bug in IE on the majority of modern
desktops
Apr 2 '07 #9
Mon, 02 Apr 2007 08:31:53 -0700 from Ed Jay <ed***@aes-intl.com>:
I use a small javascript that ascertains my viewers screen resolution and
then directs my page to use the appropriate style sheet (or pertinent
portion).
That's so wrong, on so many levels.

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2.1 spec: http://www.w3.org/TR/CSS21/
validator: http://jigsaw.w3.org/css-validator/
Why We Won't Help You:
http://diveintomark.org/archives/200..._wont_help_you
Apr 3 '07 #10

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

Similar topics

2
8364
by: Yaron Cohen | last post by:
Hi, I would like to ask for your help. I am using IE5.5. I have a wide page with horizontal scroll bar. The problem is that I get only 1 page when printing it using "file->print" or "window.print".
16
4191
by: Geoff Cox | last post by:
Hello, I publish some web pages using large fonts and would like to give the user the opportunity to print the pages using a smaller font. I believe that this is possible using different style sheets? I am not clear how the user would select the different .css files? Seems to be easier than having duplicate html files ...
48
8655
by: David J Patrick | last post by:
I'm trying to rewrite the CSS used in http://s92415866.onlinehome.us/files/ScreenplayCSSv2.html. using the w3.org paged media standards as described at http://www.w3.org/TR/REC-CSS2/page.html The ScreenplayCSS is flawed, for several reasons; -overuse of <div id= tags -doesn't scale screen resolutions (convert from px to in, pt ?) -no media="print" (how much coule be shared between "screen" & "print") -no automatic page breaks (with...
64
4236
by: Dave | last post by:
A friend of mine pointed out the other day that certain elements on my web site are too small. But in most of what I publish, fonts are at default size or smaller, and my images are easy to see. I am viewing at 800x600 right now by the way, because that's what I can comfortably see. Times New Roman default pitch is what - 12px? With people increasing their screen resolutions, is it possible for "default size to ever become too small in...
12
27839
by: Tom W | last post by:
What's the difference in these three?
5
4073
by: soeren | last post by:
Hello, two days ago I stumbled across a very strange problem that came up when we were printing tiny double numbers as strings and trying to read them on another place. This is part of an object serialisation framework that cannot be done in binary format currently, so please no comments about this ,-)) It took quite some time to shrink down the problem but it looks like that C++ does not behave well in regards to very tiny numbers.
5
3162
by: pittendrigh | last post by:
There must be millions of dynamically generated html pages out there now, built by on-the-fly php code (and jsp, perl cgi, asp, etc). Programatic page generation is transparently useful. But querying a database, negotiatinig lots of if-then-else logic and echo'ing html code out on port 80 every time a page is requested has to be a huge waste of resources. Why not use that logic to print static html instead of dynamic?
17
10652
by: =?Utf-8?B?R2Vvcmdl?= | last post by:
Hello everyone, Wide character and multi-byte character are two popular encoding schemes on Windows. And wide character is using unicode encoding scheme. But each time I feel confused when talking with another team -- codepage -- at the same time. I am more confused when I saw sometimes we need codepage parameter for wide character conversion, and sometimes we do not need for conversion. Here are two examples,
8
2582
by: Louis | last post by:
Hello, My website is 910 pixels wide. The content area is 552 pixels wide. If I place a picture in the content area that is wider than 552 pixels my site becomes wider than 910 pixels. I do not want this. If the picture is too wide it should be displayed smaller or truncated at the right side or anything. Is there a standard solution for this that is reasonable backwards
0
8324
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,...
0
8842
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8740
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8513
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
8617
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
5642
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
4173
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...
1
2742
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1970
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.