I want to rock old-school (like, say around 1500) and have all the uppercase letters in a text set in roman, and all lowercase set in italics.
And here are the criteria:
- No manual markup.
- No JS.
- Must be semantic and valid.
(Oh, and yes, I do know about readability issues, and I do know it's not the 1500s still. Leave that aside.)
2006-12-26
16:47:29
·
4 answers
·
asked by
Twisted Intellect
2
in
Computers & Internet
➔ Programming & Design
UPDATE: As for the text-transform: That's not what I want to do. Almost however.
I want to do a:
[all uppercase letters] {
font-style : normal;
}
[all lowercase letters] {
font-style : italic;
}
2006-12-26
16:59:30 ·
update #1
As for editors: Now what an WYSIWYG-editor will do, is that it will take the uppercase-letters (and though I'm not sure, my guess is that you'd have to select each letter individually) and add some markup to that, which it would then style. I want to do without the markup.
I think I'm looking for a pseudo-class of some kind, or some really simple JS-solution (with a nice fallback)...
2006-12-26
17:10:20 ·
update #2
Sorry, I keep replying to every answer, but Mr. Gs answer isn't quite correct.
Though you cannot add several different styles to a single object, you can assign different styles to different PARTS of that object.
Take the text-box (say, a DIV), you could then use a :first-line pseudo-class to change the style of the first line of the first P-element of that DIV.
2006-12-26
17:17:49 ·
update #3