Studio moh


Tag Archives: code

Pure CSS LightBox, no Javascript (now supports IE5+)

Click here to preview the CSS LightBox
Finally, a lightbox that doesn’t require Javascript! And now it support IE5+!
The core of Multi-state CSS is the :target pseudo selector. When a user clicks a page-anchor the :target pseudo selector is activated, revealing the lightbox element.
IE5+ doesn’t support the :target pseudo selector, but it does support CSS expressions. [...]

How Dylan avoids widows

Typographical widows, that is. Learning jQuery (an excellent blog, even for the power users) had a wonderful post on how to use jQuery to append widows.
(If you didn’t take a print class in high school, a widow is a word that ends on the next line likethis.
This is a print master’s nightmare and a typographical [...]

Ghost Code and AI

I was working on the new FAP, adding some fun little suggestion-type-AI things…when something unexpected caught my eye.
The program was organizing things alphabetically. I didn’t tell it how to organize anything…it just did it.
…why did the program do this? I never told it to…?
It’s called Ghost Code, where the program starts doing unexpected things…nothing harmful, [...]

Why I hate MySpace

Making your own CSS styles is a nice (albiet butchered and terrible implemented) touch in MySpace.
In a normal web design workflow, you have something like this:
.modules {
background-color: #fff;
padding: 15px;
}
.modules p {
color: #aaa;
line-height: 150%;
}
In MySpace’s world, it’s more like this:

table table table table td, table table table table tbody td {
background-color: transparent !important;
padding: 15px !important;
}
table table [...]