Miles Elam
2002-11-11 01:26:33 UTC
Hi all!
Okay, I finally had enough free time to work on a CSS version of
http://xml.apache.org/forrest/
The mockup is at http://forrest.iguanacharlie.com/
Total size is 24,639 bytes
7,190 is the HTML
11,549 is the printer, project and group images
4,659 is the CSS
1,241 is the dependent CSS skinning images
If you gzip -9 index.html and default.css you get 2,148 bytes and 1,108
bytes respectively. Adjusted total size would be 16,046 bytes. I
started eyeing those logos too, but I am hesitant to mess with
organization logos quite so whimsically.
That's a lot of page views per block of bandwidth. And no more spacer GIFs!
-----------------------------
I tried to keep things clean on the filesystem:
index.html
default.css
images/
project-logo.gif
group-logo.gif
printer.gif
skins/
default/
...all of the dependent CSS images...
I also switched to using <link ... media="all"/> instead of the @import
hiding technique to keep things simpler in Netscape CSS hiding. It may
cause problems for users of IE4. If there are any problems, I (or
anyone else) can switch it back.
I have only checked it in Mozilla on RedHat 7.3, Mozilla/Phoenix on
Windows, IE 5.5 for Windows, Netscape 4.79 for Windows, Links on RedHat
7.3, and Lynx on RedHat 7.3. Those are the only browsers I have handy.
Could someone check them in other browsers especially Opera, Konqueror,
IE 5.x on Mac (which I wouldn't be surprised is kinda crufty due to font
size differences), Mozilla 1.x/Netscape 6/7 on Mac, and IE 6.x on Windows?
Note: If you use Mozilla or a derivative, you can preview what it would
look like in older browsers by selecting "View"->"Use Style"->"Basic
Page Style" from the menubar.
Dependent CSS images are all PNGs. All browsers that support element
background images also support PNGs with at least 1bit transparency levels.
mockup. Truth be told, I forgot about that when making my group's new
homepage too. I made special effort to use more flexible sizing this
time. With extensive use of "em"s, it should degrade gracefully when
font sizes are changed. The tab images and other assorted rounded edges
get a bit crufty as I didn't spend much time tweaking them. The real
solution for them requires CSS3 and scaling element background images.
For now, I think it should be fine for casual observers.
Tables may provide better accessibility only if the tables can
conceptually be serialized. As an exercise, try using it with Lynx.
It'll look pretty good to someone with good eyesight. Imagine you're
blind and must have the navbar read to you on each and every page you
browse until you hit the main content. As such, I moved the main nav
info to the bottom of the XHTML page after the main content.
As for browser incompatibilities, those exist when you use tables as
well. It's just been so long since those issues cropped up, people are
used to them (IE respecting table cell widths but not heights and
Netscape 4.x not listening to either, default cell padding and cell
spacing, default border widths, behavior of ignorable whitespace, etc.).
IE 5.x Mac had issues with element background images so I am especially
curious as to how this renders in it. (I don't own a Mac and
unfortunately can only check it when I'm at friends' homes.) If you see
some extra special cruftiness, please send me a screenshot (only try to
keep the image below 500kB). I tried to keep the CSS as conceptually
simple as possible following the guidelines of this page:
http://developer.apple.com/internet/css/ie5cssbugs.html
- Miles
P.S. I came across a page a couple of weeks ago that had a new and
updated table of CSS hiding tricks listed by technique on the y-axis and
browser on the x-axis. If anyone knows what I'm talking about, please
send me the URL as I neglected to bookmark it.
Okay, I finally had enough free time to work on a CSS version of
http://xml.apache.org/forrest/
The mockup is at http://forrest.iguanacharlie.com/
Total size is 24,639 bytes
7,190 is the HTML
11,549 is the printer, project and group images
4,659 is the CSS
1,241 is the dependent CSS skinning images
If you gzip -9 index.html and default.css you get 2,148 bytes and 1,108
bytes respectively. Adjusted total size would be 16,046 bytes. I
started eyeing those logos too, but I am hesitant to mess with
organization logos quite so whimsically.
That's a lot of page views per block of bandwidth. And no more spacer GIFs!
-----------------------------
I tried to keep things clean on the filesystem:
index.html
default.css
images/
project-logo.gif
group-logo.gif
printer.gif
skins/
default/
...all of the dependent CSS images...
I also switched to using <link ... media="all"/> instead of the @import
hiding technique to keep things simpler in Netscape CSS hiding. It may
cause problems for users of IE4. If there are any problems, I (or
anyone else) can switch it back.
I have only checked it in Mozilla on RedHat 7.3, Mozilla/Phoenix on
Windows, IE 5.5 for Windows, Netscape 4.79 for Windows, Links on RedHat
7.3, and Lynx on RedHat 7.3. Those are the only browsers I have handy.
Could someone check them in other browsers especially Opera, Konqueror,
IE 5.x on Mac (which I wouldn't be surprised is kinda crufty due to font
size differences), Mozilla 1.x/Netscape 6/7 on Mac, and IE 6.x on Windows?
Note: If you use Mozilla or a derivative, you can preview what it would
look like in older browsers by selecting "View"->"Use Style"->"Basic
Page Style" from the menubar.
Dependent CSS images are all PNGs. All browsers that support element
background images also support PNGs with at least 1bit transparency levels.
One awkward issue for accessibility is that this code uses fixed size
areas so if you expand the text it gets cropped. Unfortunately, as
soon as you start using variable width areas you hit lots of browser
incompatibilities with CSS support. Today I am actually converting
our site back to tables to provide better accessibility!
Thanks. I had forgotten about that when I made the Cocoon homepageareas so if you expand the text it gets cropped. Unfortunately, as
soon as you start using variable width areas you hit lots of browser
incompatibilities with CSS support. Today I am actually converting
our site back to tables to provide better accessibility!
mockup. Truth be told, I forgot about that when making my group's new
homepage too. I made special effort to use more flexible sizing this
time. With extensive use of "em"s, it should degrade gracefully when
font sizes are changed. The tab images and other assorted rounded edges
get a bit crufty as I didn't spend much time tweaking them. The real
solution for them requires CSS3 and scaling element background images.
For now, I think it should be fine for casual observers.
Tables may provide better accessibility only if the tables can
conceptually be serialized. As an exercise, try using it with Lynx.
It'll look pretty good to someone with good eyesight. Imagine you're
blind and must have the navbar read to you on each and every page you
browse until you hit the main content. As such, I moved the main nav
info to the bottom of the XHTML page after the main content.
As for browser incompatibilities, those exist when you use tables as
well. It's just been so long since those issues cropped up, people are
used to them (IE respecting table cell widths but not heights and
Netscape 4.x not listening to either, default cell padding and cell
spacing, default border widths, behavior of ignorable whitespace, etc.).
IE 5.x Mac had issues with element background images so I am especially
curious as to how this renders in it. (I don't own a Mac and
unfortunately can only check it when I'm at friends' homes.) If you see
some extra special cruftiness, please send me a screenshot (only try to
keep the image below 500kB). I tried to keep the CSS as conceptually
simple as possible following the guidelines of this page:
http://developer.apple.com/internet/css/ie5cssbugs.html
- Miles
P.S. I came across a page a couple of weeks ago that had a new and
updated table of CSS hiding tricks listed by technique on the y-axis and
browser on the x-axis. If anyone knows what I'm talking about, please
send me the URL as I neglected to bookmark it.