Thursday, January 31, 2008

CSS me, baby

I'm late to the CSS party, but trying to learn as much as I can about it in, oh, the next five days before my MIT class starts. It's fun, it's pretty, it's useful, it's work-related... what more can a girl really ask for? (Oh yeah, browser compliance.)

In the meantime, reading has made me realize my website desperately needs an upgrade. I started the CSS revolution with my writings page, thinking it was more structured than a lot of my pages, but also in some ways would be the most complex.

And behold, I was right! It looks almost exactly the way it did before, but with all images and styles done in CSS. I had some headers formed like this:



Words go here



...and it turns out it's not easy in CSS, trying to attach four images to one header. So, that's not how I did it. I wound up attaching one bar to the "section" class between headers, and finally the other to a "sectionend" class. I'm still trying to decide whether that was a good workaround to the basic problem; does anyone have opinions?

It also got me into the question of what one does about poetry -- there's only one poem on that page, but I have around 20 other pages that can all re-use the poetry styling, so I took some care with it. I'm not the first person to have this problem, of course, and I decided to go with old-fashioned pre tags. Sometimes line breaks and strange spacing ARE the content, and they need to remain in place with CSS disabled. Of course, I have worse troubles -- I have some pages, like my Life and Debt comic, where images are the content... except that, oh yeah, they have words too. What is one supposed to do about accessibility and comic strips? The dialogue could be copied into the alt text, but maybe at some point you have to give up.

As a side note, I'm completely enamored with the comic-style look of Ballade, over at the CSS Zen Garden, and I do wonder how far a person could go with heavily CSS-intensive comic pages that still allow the text and browser window to be resized.

Pretty far, I suspect, with enough free time.

Tuesday, January 22, 2008

But can I blog while upside down?

It turns out my coworkers will know when I'm blogging from work, because a lot of us are subscribed to each other's blogs now. They probably won't mind much, though, as long as I can claim I was familiarizing myself with the product while waiting for a build script or something. ("I'm not slacking off -- my code's compiling!")

So here's your upside-down picture du jour: my uttana salabhasana. The literal translation of this Sanskrit term is "yogi face pain pose", or according to some people "yogi chin smash pose". Ideally I think there's not much weight on the chin -- most of the weight is over the hands, with the chin being used as a balance point only. However, this is not an ideal world; so my advice to you is to definitely have a yoga mat under your face when you try this, assuming you don't want rugburn in hard-to-explain areas.

uttana salabhasana

My new year's resolution avoids the chin smash: it's to do at least one handstand every day in 2008. So far that's been fun, and it's amazing how fast my balance improves when I do this. Handstands require some strength, but not that much -- the really challenging part for me is the body awareness it takes to balance, and that's all neuromuscular stuff that takes time and regular repetition to develop.