onLine weblog archive
Friday, April 19, 2002
Hi!
Your site "www.glish.com" is really wonderful. It has loads of great info, and I'm really impressed.
But... unfortunately your ingenious CSS layout does not really work ... all the time. It seems you've made some assumptions about text size and box heights, that make the site break badly when those assumptions does not hold.
I've set my Mozilla to use quite large font sizes, and I've set it to never show any text with a size below a certain limit. The result is some bad text overflow on your start page.
I've made a screen capture of the mess, and I've put it here so you can check it out:
Sorry if this throws a monkey wrench into your careful layout. I'm a CSS fan myself, so I hope you'll work it out.
Bye!
Hi!
> Thanks so much for your note Bertilo.
> It was because of problems like these
> that I recently redesigned.
Yes, I noticed. BTW: I read your updates regularily. Very useful pointers!
> Hopefully the new site accommodates
> users who like large text.
It works a lot better. Thanks!
> However, I would like to complain
> about the fact that Mozilla and IE5
> Mac provide the ability for users to
> override CSS font-size declarations
> set with in pixel units. A pixel
> should be a pixel, and the browser
> should not be able to override that.
Do you also object to the Mozilla setting that makes the browser never show text below a certain value? This is a major usability help to me. I more and more find that I can just not read a lot of the pages out there. Without Mozilla, and it's easy to use settings that override the often ricidulously small text sizes out there, I would not be able to surf much these days. With age, my eyes just aren't that sharp anymore.
Users can override things like this with settings in a user style sheet too. Is that OK?
> Now I know that web designers who use
> pixels to set font-size cause a lot of
> grief to people who don't like to or
> can't read at small text sizes, but
> that problem should be solved by
> educating designers, not by making it
> impossible to override all pixel
> font-size declarations.
That solution will not come to be, at least not in the forseable future. Should all the people with bad eyesight out there suffer in the meanwhile?
> in some cases, as in the case with my
> site, where the interface for the
> navigation was a tabbed system, pixel
> specific font-size was crucial to the
> interface functioning. i should be
> able to declare a pixel size and not
> have the browser break it.
I do not agree.
> There are plenty of other units
> besides pixels that allow the user to
> resize text to suit their needs;
> pixels should be pixels should be
> pixels.
But the user can not change the author's choice to use pixels. The user needs a way to make the page readable despite the bad choices the author has made.
> Can I print this exchange on my site?
> And link to your screenshot?
Oh yes!
Perhaps this demo I put up a while ago (in response to a usenet question), might interest you too:
<http://www.bertilow.com/ div/columns/>
You can link to it as well, or copy it. The css file has some comments on the code.
Bye!
Solution: if you need text to be a pixel specific size, embed it in an image. But please, use that solution with great discretion. Another solution, this one for browser makers: instead of overriding only pixel declarations for text, embiggen the whole page, so that the relative size of pixel-sized text stays the same in relation to its containing block, something like what zoom (a Microsoft's CSS extension) does, but maybe still rendering percentage sizes based on the browser window, so that the whole page doesn't stretch wide.
Thursday, April 18, 2002
Wednesday, April 17, 2002
We've created a publicly accessible XML feed that allows anyone to provide information on their website about the latest Macromedia Designer & Developer Center resources. This XML file contains headlines and links to all of the latest articles and resources found on our website, and is automatically updated whenever new online content is added.
I'm dynamically creating the form controls for the text preferences, so that only browsers that support the necessary DOM methods see anything. I'm using .innerHTML to accomplish this, because of various DOM implementation discrepancies amongst my target browsers. But I found that IE5 Mac was flaking out, displaying the contents of the fieldset outside of the fieldset itself, and making the fieldset unnaturally long. Being used to such silliness, I tried a "jigger", which often solves such display problems with IE5 Mac. The jigger looks looks something like this:
fieldsetEl.innerHTML=fieldsetEl.innerHTML;That solved the problem nicely for IE5.0 Mac, but apparently caused more recent versions to extend the fieldset the lenght of the page, and then some. Since I installed OS X last week (motivated largely by the need to solve this very bug) I could test IE5.1+ on my G4, which I did, and I found that it did not need the jigger to work properly. So I wrapped my jigger up something like so:
var agt = navigator.userAgent.toLowerCase();
if (agt.indexOf('msie 5.0; mac') != -1) {
fieldsetEl.innerHTML=fieldsetEl.innerHTML;
}
And now everybody is happy! Except me, because I hate doing browser sniffing, especially on such a granular scale. I like the grand sweep of object detection.Tuesday, April 16, 2002
If you're a developer with a good working knowledge of XML and you want even more flexibility than our standard links provide, you'll want to check out our newest feature. We've built a powerful XML interface that will enable you to build targeted, customized Amazon placements on your Web site.The web is opening.
At the moment I am writing an Introduction to Events. As part of my study I wanted to create a generic, simple script that detects the mouse coordinates at the time of the event. Because such a script can work in Netscape, Explorer, Opera, Konqueror and iCab, it should work in all these browsers.
But I failed. In fact the situation is so bad that I have reluctantly come to the conclusion that a cross-browser script for finding the mouse coordinates during an event must necessarily use a browser detect, something I truly loathe.
Sunday, April 14, 2002
But I haven't yet learned .NET, which is the next generation of Microsoft's Web tools, and frankly, I'm not sure I want to. With the recent install of OS X on my Mac, I have easy access to a powerful Unix box on which I could install a whole host of development environments and server tools that I'd like to learn (and which would free me from a professional life dependant on the evil empire): PHP, JSP, Cocoon, MySQL, etcetera.
But the occasional article like this one, where the always insightful Joel Spolsky talks very persuasively about how and why he and his company are using .NET, makes me doubt the wisdom of of jumping the OS ship:
Why bother moving to .NET at all? Simply put, it's because .NET appears so far to be one of the most brilliant and productive development environments ever created. ASP.NET really makes it incredibly easy to create useful web applications; over the last couple of days I've been creating some applications we use internally at incredible speed. All the grungy stuff that takes 75% of the time creating web applications with ASP (such as form validation and error reporting) becomes trivial. ASP.NET is as big a jump in productivity over ASP as Java is to C. Wow.
I like how the needles fill the frame, and how the shallow depth of focus creates depth. The picture isn't really "about" the pine branch, it's "about" the composition. I think I've always been more attracted to form than content. If you've ever 