473,772 Members | 3,731 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.

==========Stati c 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 3395
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.

==========Stati c 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.comwr ote:
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...@ex ample.invalidwr ote:
>
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.tu t.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

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

Similar topics

23
4888
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 JavaScript, and 3) using fancy redirects and forced "back skip" redirects with cookies. Every approach has some fatal flaw as far as I have been able to persue it. My most recent idea is to make multiple style sheets (selectable via javascript...
4
15523
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 deeply appreciated. Thanks in advance....
8
8502
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 loads an Access app that needs at least 1024 x 768 pixels so the app, on load, changes the screen resolution for him to 1024 x 768.
18
11647
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
6208
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 either resolution 800 X 600 or 1152 X 864 it takes up the entire explorer size. In screen resolution 800 X 600, if I insert a pictures of 24 X 24 pixel in the cells it takes up the entire cell size (ideally it should as the cell size is also 24 X...
9
3908
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 stylesheet switcher as part of the onload event but I would rather link in the correct stylesheet for the resolution in the first place.
31
4205
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 - 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!...
1
2506
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 As Long, Y As Long, Bits As Long) Dim DevM As DEVMODE, ScInfo As Long, erg As Long, an As VbMsgBoxResult 'Get the info into DevM erg = EnumDisplaySettings(0&, 0&, DevM) 'This is what we're going to change DevM.dmFields =...
10
44086
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 screen. I used to write code in Java a few years ago (2005), and you could stretch a form with the mouse and all the controls and fonts would resize to larger or smaller size. Does .Net framework 3.5 support this kind of functionality? Or -...
0
9620
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
9454
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
10261
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...
1
7460
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
6715
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
5354
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...
0
5482
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3609
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2850
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.