473,385 Members | 1,622 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

screen resolution solutions

I try to do all css with percents and ems (elastic/liquid)
so my displays look as much the same as possible,
regardless the user's screen resolution. But I (still)
never seem to get what I want. Compromises seem
to lurk at every moment.

==========Static html
for instance:
font-size: 10px; /* looks drastically different at 768 wide
compared to 1024 */
font-size: x-small; /* better than above, but seldom what I want */
font-size: 80%; /* I'm not sure what this does.....% is
percent of what?
Regardless the answer, this seems
to produce
badly pixelated fonts in some
browsers */

images are really trouble. A 700 pixel wide image that looks great
at
high resolution bombs the layout at 768 pixels wide.
With hand-typed html there is no happy solution. You have to make
lowest common denominator compromises, whether you like it or not.
========= Dynamic Html
However, If your html is generated dynamically, maybe the right thing
to do
is to make a "resolution selection menu" somewhere on each page--and
then
to keep track of state with sessions or cookies or both. Then you
could write
custom css for the 2-3 most common screen sizes.....and choose image
paths
from 2-3 differently sized image bins. Then you could make screens
that look
good all the way up from 800x600 up (800 wide still has 15% market
share).

This seems like such an obvious idea I'm surprised I don't ever see
it.
Does anybody know of any major or well-done sites that do this?
Or CMS systems that offer that feature?

......I may have to try adding this to my own little microCMS
I must be missing something obvious.......

Jan 17 '08 #1
23 3337
salmobytes wrote:
I try to do all css with percents and ems (elastic/liquid)
so my displays look as much the same as possible,
regardless the user's screen resolution. But I (still)
never seem to get what I want. Compromises seem
to lurk at every moment.

==========Static html
for instance:
font-size: 10px; /* looks drastically different at 768 wide
compared to 1024 */
font-size: x-small; /* better than above, but seldom what I want */
I thought you said you try to do all CSS with percents and ems.
font-size: 80%; /* I'm not sure what this does.....% is
percent of what?
80% of the font size established for the containing element.
Regardless the answer, this seems
to produce
badly pixelated fonts in some
browsers */
You're missing the point.

body { font-size: 100%; }

states affirmatively that the text should appear in the font that the
user has by default set his browser to use as the default body text font
size. If you want footnotes or sidebars to have slightly smaller text,

.footnote { font-size: 90%; }

And so forth. If the user wants a different font size, then instead of
first having to notice and then having to use whatever mechanism you
might offer that only has an effect on your site, the user can use the
same mechanism built into his browser that he uses wherever he goes on
the Web.
Jan 17 '08 #2
Scripsit salmobytes:
I try to do all css with percents and ems (elastic/liquid)
so my displays look as much the same as possible,
regardless the user's screen resolution.
You're kidding, right?
font-size: 10px; /* looks drastically different at 768 wide
compared to 1024 */
font-size: x-small; /* better than above, but seldom what I want */
font-size: 80%; /* I'm not sure what this does.....% is
percent of what?
Does "salmo" in your nickname refer to /Salmo salaris/, a noble fish for
trolling?
A 700 pixel wide image that looks great at
high resolution bombs the layout at 768 pixels wide.
Did you ever consider starting to read an introduction to the first
principles of the basics of web authoring?
However, If your html is generated dynamically, maybe the right thing
to do
is to make a "resolution selection menu" somewhere on each page--and
Sorry, now you're just boring. There's no fun in just repeating old very
stupid ideas without inventing any new foolishness.

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

Jan 17 '08 #3
On 2008-01-17, salmobytes <Sa***************@gmail.comwrote:
I try to do all css with percents and ems (elastic/liquid)
so my displays look as much the same as possible,
regardless the user's screen resolution. But I (still)
never seem to get what I want. Compromises seem
to lurk at every moment.
It depends on the design. Something that works at all viewport and font
sizes within reason is ideal, but I realize that may not always be
possible.

[...]
However, If your html is generated dynamically, maybe the right thing
to do is to make a "resolution selection menu" somewhere on each
page--and then to keep track of state with sessions or cookies or
both. Then you could write custom css for the 2-3 most common screen
sizes.....and choose image paths from 2-3 differently sized image
bins. Then you could make screens that look good all the way up from
800x600 up (800 wide still has 15% market share).
This seems like such an obvious idea I'm surprised I don't ever see
it. Does anybody know of any major or well-done sites that do this?
http://www.yahoo.co.uk is one. Go to "Page Options" over on the right.
You can choose "narrow" or "wide" layout (as well as your choice of
pastel colour scheme).

It switches in and out different stylesheets and may do other things
besides.

I think it also tries to detect your viewport size when you first visit
the page to decide whether to give you wide or narrow to start off with.
Jan 17 '08 #4
salmobytes wrote:
I try to do all css with percents and ems (elastic/liquid)
(but you didn't...)
so my displays look as much the same as possible, regardless the
user's screen resolution.
Read and heed:
http://k75s.home.att.net/fontsize.html
But I (still) never seem to get what I want. Compromises seem to lurk
at every moment.
How will it look on my mobile phone? My PDA? My text only browser?

Why "what you want?" Think of your visitors.

--
-bts
-The World Wide Web is not paper
Jan 17 '08 #5
On Jan 17, 12:09 pm, "Beauregard T. Shagnasty"
<a.nony.m...@example.invalidwrote:
>
Read and heed:http://k75s.home.att.net/fontsize.html
Good page(s), thank you. Yes, avoiding Verdana and using font-size as
a percent seems to come closest to ideal. font-size: 85% for
footnotes
and auxilliary links, etc. seems to look OK in Firefox and IE, but
often pixelated
in Safari. Thanks to who ever it was for the yahoo, custom css
links. I think I'll start to work towards pages that work that way.
Almost everything I write is generated from code anyway, so adding
user customization menus (chooseable css) is practical in that
context.

REhand held devices. Yes, the web will always
involve compromise. I'm *trying to learn* how to minimize the
compromises.
I get a lot of good info here, along with the chaffe.

And yes, salmo does refer to that noble salmo family:
salmo trutta
salmo salar, etc.
I'd post a link to my (home-rolled, fishing related) website.
But I'm too tired to deal with the inevitable snipers right now.

What you see on 800 pixel-wide screens is so vastly different
than at 1024 I think you have to do offer some display choices.
Somehow, someway. Hey ney oh wey.
Jan 17 '08 #6
salmobytes wrote:
What you see on 800 pixel-wide screens is so vastly different
than at 1024 I think you have to do offer some display choices.
Somehow, someway. Hey ney oh wey.
You have to? Even though almost no website does, and yet the world keeps
spinning?
Jan 18 '08 #7
Scripsit Harlan Messinger:
salmobytes wrote:
>What you see on 800 pixel-wide screens is so vastly different
than at 1024 I think you have to do offer some display choices.
Somehow, someway. Hey ney oh wey.

You have to? Even though almost no website does, and yet the world
keeps spinning?
Well, "salmobytes" already showed that he or she has little clue of what
web authoring is. He or she would probably get mad if he or she realized
that there are are other resolutions, too, far smaller and far larger
than the "both resolutions" he or she is designing for, especially when
we consider the resolution of the window (or canvas) - which matters -
and not the screen.

But "salmobytes" was probably just trolling.

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

Jan 18 '08 #8
On Jan 18, 2:59 am, "Jukka K. Korpela" <jkorp...@cs.tut.fiwrote:
But "salmobytes" was probably just trolling.
Perhaps I should have said:
"I was having trouble with a complex, multi-panel site
....that I was able to get looking just fine at high res,
but not at low res."

Not all layouts are so tricky.
And no, I wasn't trolling.
I bit your little insult lure.
So perhaps you were.

The world is hopeless. Too many jerks worldwide.

Jan 18 '08 #9
Scripsit salmobytes:
>But "salmobytes" was probably just trolling.

Perhaps I should have said:
"I was having trouble with a complex, multi-panel site
...that I was able to get looking just fine at high res,
but not at low res."
Perhaps you should stop inventing new ideas for trolling. Everyone and
his brother can see that you are just making things up as you go. This
is evident from your URL (that is, lack of it).

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

Jan 18 '08 #10
On 2008-01-18, Jukka K. Korpela <jk******@cs.tut.fiwrote:
Scripsit salmobytes:
>>But "salmobytes" was probably just trolling.

Perhaps I should have said:
"I was having trouble with a complex, multi-panel site
...that I was able to get looking just fine at high res,
but not at low res."

Perhaps you should stop inventing new ideas for trolling. Everyone and
his brother can see that you are just making things up as you go.
This is evident from your URL (that is, lack of it).
Why was a URL necessary? Salmobytes was asking if anyone knew of any
major or well-done sites that switch between alternative fixed-width
layouts. I don't see how that question would be better illustrated with
the help of a URL.
Jan 18 '08 #11
Scripsit Ben C:
Why was a URL necessary? Salmobytes was asking if anyone knew of any
major or well-done sites that switch between alternative fixed-width
layouts. I don't see how that question would be better illustrated
with the help of a URL.
If it had been a serious question, surely he or she would have told the
reasons and illustrated it with the URL of his or her current design,
demonstrating how it fails to work at different resolutions.

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

Jan 18 '08 #12
On 2008-01-18, Jukka K. Korpela <jk******@cs.tut.fiwrote:
Scripsit Ben C:
>Why was a URL necessary? Salmobytes was asking if anyone knew of any
major or well-done sites that switch between alternative fixed-width
layouts. I don't see how that question would be better illustrated
with the help of a URL.

If it had been a serious question, surely he or she would have told the
reasons and illustrated it with the URL of his or her current design,
demonstrating how it fails to work at different resolutions.
Rubbish. He or she might not even have a current design. It's still a
perfectly reasonable question without a URL.
Jan 18 '08 #13
In article
<0f**********************************@s8g2000prg.g ooglegroups.com
>,
salmobytes <Sa***************@gmail.comwrote:
That's one reason why I started
thinking about dynamic css.
http://wage.cns.montana.edu
This breaks horribly. I think you should not think any more for a
while about anything dynamic. Calm right down and be happier with
less. Your users will thank you.

--
dorayme
Jan 18 '08 #14
On 18 Jan, 22:12, salmobytes <Sandy.Pittendr...@gmail.comwrote:
Hans Weilenmann has a nice site where he displays the best
sharp-focus, high-detail close-up photos (of trout flies)
URL? It's not obviously Googleable (HW is evidently well known for
his work, but less so for his own site)
But because 60% of all users view from 17"
monitors at 768 pixels wide,
It's several years since that has been even approximately true.

power users who have 1024 pixels wide or better.
These days it's hard to find a non-power user who doesn't have at
least that resolution even vertically.

A better (more intelligent) web-solution would provide some kind
of a mode-toggle switch on each page,
No, this is terrible. Long experience of it for years now has taught
us this.

That's one reason why I started
thinking about dynamic css.
http://wage.cns.montana.edu
That's a ghastly page. It's particularly bad on a FF window under
890px wide.
Jan 21 '08 #15
On Jan 19, 1:53 am, "Jukka K. Korpela" <jkorp...@cs.tut.fiwrote:
And you expect to do this in CSS? Consider reading an introductory
tutorial on the elements of basics of getting started with WWW
authoring.
No, you can't swap images with css.
But if you were swapping image sizes, based on a mode switch,
you would also have an opportunity to change the css too,
so it was custom tailored for low resolution or high resolution.

Yahoo (as someone else pointed out) does this. I will give it a try.
You seem to be a pigeon-hole thinker. Cs attracts lots of those,
for some reason. Even in Finland, apparently.
Jan 22 '08 #16
salmobytes wrote:
On Jan 21, 2:49 am, Andy Dingley <ding...@codesmiths.comwrote:
Hans Weilenmann has a nice site where he displays the best
sharp-focus, high-detail close-up photos (of trout flies)
URL? It's not obviously Googleable (HW is evidently well known for
his work, but less so for his own site)
http://www.danica.com/flytier/

Hans' "large" images are only 600 pixels wide--he's trying to
accomodate everybody.
Closeup images of flies look a heck of a lot better at 700 pixels
wide.
On high resolution monitors with high-speed connections, 800 pixels
is spectacular, by comparison. Trying to serve everybody all at once
with 600 pixels wide is an annoying compromise.
>>But because 60% of all users view from 17"
monitors at 768 pixels wide,
768 has never been a screen width in pixels. It's a height in some
resolutions.
>It's several years since that has been even approximately true.
Not according to w3c They currently show 54%
http://www.w3schools.com/browsers/browsers_display.asp
W3Schools is not the W3C, the information shown is a year out of date,
and who knows how they're compiling it?
Jan 22 '08 #17
In article <62**********************************@i12g2000prf. googlegroups.com>, salmobytes writes:
>On Jan 21, 2:49 am, Andy Dingley <ding...@codesmiths.comwrote:
But because 60% of all users view from 17"
monitors at 768 pixels wide,

It's several years since that has been even approximately true.
Not according to w3c They currently show 54%
http://www.w3schools.com/browsers/browsers_display.asp
Point one: "w3schools" is not in any way affiliated with the w3c.
Point two: Even their page shows 54% for 1024x768, which is 1024
pixels wide, as well as 26% for higher. That means at least 80%
of everybody has a monitor that shows at least 1024 pixels wide.
This ignores the 6% listed as "Unknown".

My first PC, purchased in 1992, had a 1024x1280 monitor, and I'm
far from being a "power user", so it's not suprising that, over
fifteen years later, most people are running with equipment at
least as good as what I had then.

On the other hand, this is monitor width. Don't get tricked into
thinking that this equates to canvas width. Between not running
browsers maximized, browser chrome, various sidebars, there's no
way of knowing how many pixels you have available.
>That's a ghastly page. It's particularly bad on a FF window under
890px wide.
>I had that site looking OK at high resolution, but it was (as you
said) ghastly at low resolution.
Nothing was said about "resolution". The reference was to the width
of the FF window.

--
Michael F. Stemper
#include <Standard_Disclaimer>
You can lead a horse to water, but you can't make him talk like Mr. Ed
by rubbing peanut butter on his gums.

Jan 22 '08 #18
In article <20*************************@walkabout.empros.com> , Michael Stemper writes:

<brain fart>
>My first PC, purchased in 1992, had a 1024x1280 monitor,
That should have said "1280x1024".

--
Michael F. Stemper
#include <Standard_Disclaimer>
You can lead a horse to water, but you can't make him talk like Mr. Ed
by rubbing peanut butter on his gums.

Jan 22 '08 #19
On Jan 22, 11:13 am, Jeff <jeff@spam_me_not.comwrote:

thanks, that *was* helpful.

I have a pretty thick skin, most of the time.
I know If I ask a question on usenet a stream of poison will
inevitably result,
punctuated by occasional civility.

Oddly, or perhaps interestingly, I often see the same sort of poison
attached to the
same well-known names on multiple groups. Some people just can't get
enough.
For most of this threads responders (not you) here's a link that might
help:
http://www.excaliburcutlery.com/rubi...FQNCgwodmis9GQ

It'll be a while before I return.
Jan 22 '08 #20
Scripsit salmobytes:
On Jan 19, 1:53 am, "Jukka K. Korpela" <jkorp...@cs.tut.fiwrote:
>And you expect to do this in CSS? Consider reading an introductory
tutorial on the elements of basics of getting started with WWW
authoring.

No, you can't swap images with css.
What makes you think you cannot? Perhaps the fact that you didn't take
my advice that you quoted above.

_You_ were babbling about "mode-toggle switch" in a group devoted to the
use of CSS in WWW authoring. That's something you cannot do in CSS, as
you would surely know if you read an introductory tutorial on the
elements of basics of getting started with WWW authoring.

(There are several ways to "swap images with css" in some sense, e.g.
positioning two images in the same position and using z-index and
:hover.)

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

Jan 22 '08 #21
On Tue, 22 Jan 2008 10:12:00 -0800 (PST), salmobytes
<Sa***************@gmail.comwrote:
>Not according to w3c They currently show 54%
http://www.w3schools.com/browsers/browsers_display.asp
They have nothing to do with the W3C

Or reality.
Jan 23 '08 #22
Andy Dingley wrote:
On Tue, 22 Jan 2008 10:12:00 -0800 (PST), salmobytes
<Sa***************@gmail.comwrote:
>Not according to w3c They currently show 54%
http://www.w3schools.com/browsers/browsers_display.asp

They have nothing to do with the W3C

Or reality.
There was a time when people said the same thing about the W3C.

Jeff
Jan 23 '08 #23
On 23 Jan, 01:20, Jeff <jeff@spam_me_not.comwrote:
They have nothing to do with the W3C
Or reality.

There was a time when people said the same thing about the W3C.
We've told you before about reading that HTML 5 draft! 8-)
Jan 23 '08 #24

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

Similar topics

23
by: Dufe | last post by:
Hello all: To deal with the problem of differing user screen resolutions, I've explored: 1) making the pages in PHP, 2) having different pages on the same page and selecting the proper one via...
4
by: pjac | last post by:
I need some help with some VB language that will change the screen resolution on a monitor when a MS-Access 2000 database is opened from 1024 x 768 to 800 x 600. Any help with this effort would be...
8
by: lauren quantrell | last post by:
Is there a way to force a change in a user's screen resolution using VBA code without having any input from the user? Example: User John Backwards has his screen set to 800 x 600 pixels. Backwards...
18
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?
5
by: Maxi | last post by:
I have a 30X16 cells table in my html page. Table height and width are set to 100%. I have set size of every cell inside the table to 24 pixel. When I open the html page in maximize state in...
9
by: Steve Wright | last post by:
Hi I'm developing a webpage that needs to include a different stylesheet depending on the screen resolution. I know that I could read the resolution in javascript and then do some sort of...
31
by: melinama | last post by:
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 -...
1
by: nasima khan | last post by:
Hi, i am nasima. I have got a code for setting the screen resolution of my page, but i am unable to understand. Can any one give a complete data explanation of the below code. Sub ChangeRes(X...
10
by: =?Utf-8?B?UmljaA==?= | last post by:
A lot of users at my workplace use different screen resolutions, and I build apps to use 1680 x 1050 pixels res by default. But some users are using 800 x 600, and the apps are too large for their...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.