body { /* pour avoir un peu de marge dans le contraste, si nécessaire */
background:rgb(250,250,250)
color:rgb(5,5,5);
/* Chiffres elzéviriens sur Lac et Windows. Chercher pour Linux */
font-family:Hoefler Text, Georgia, serif; /* aérer le texte. OK avec Hoefler et Monaco, voir avec les autres (Georgia, Courier New, Linux) */;
/* !!! vérifier ce que line-height à 1.5em donne avec Hoefler. En monaco, c’est mieux que 1.6em !!! */;
line-height:1.6em max-width:49em /* « L’idal tourne entre 50 et 80 carac. par ligne » (50+80)2=65 65 carac. 98ex 49em http://david.latapie.name/blog/1146-l-illusion-de-la-taille-de-fenetre */ } Archives du mot-clef CSS:3
CSS3 lists suggestions — better ways of styling the lists
Summary: I propose two new CSS rules.
- Nested ordering (
list-style:nested-decimal). Trigger isnested-. Before you go shouting about:before, read on. - Any character for unordered list (
list-style:raw-✘). Trigger israw-(with a bug as - (bonus track: a sort of bug, although it is not clear if it is spec– or browser-related)
DietCSS
Initialement publié le 26 janvier 2005 à 09:28
Les instructions ci-dessous ne réduiront pas notablement la taille de vos CSS, mais elles assainissent le code en retirant ce qui n’est pas nécessaire et en harmonisant le reste. Il y a aussi quelques astuces (X)HTML très proches de l’esprit CSS.
Lire la suiteNew CSS3 value: text-stroke (WebKit vendor extension)
A new vendor specification from WebKit: text-stroke. you won’t find it in CSS3 (yet), but this is a long-awaited function (at least by me). As someone said: Webkit is not only the basis for Safari, though, but an integral part of OS X. Typography has always been a strength of Mac OS…
1
Surely this the reason they implemented those fancy fonts.
text-fill-color- This property allows you to specify a fill color for text. If it is not set, then the color property will be used to do the fill.
text-stroke-color- This property allows you to specify a stroke color for text. If it is not set, then the color property will be used to do the stroke.
text-stroke-width- This property allows you to specify the width of the stroke. It defaults to 0, meaning that only a fill is performed. You can specify a length for this value, and in addition the values thin, medium and thick can be used (with ‘thin’ being most like the outline behavior of OS X).
text-stroke- This property is a shorthand for the two stroke properties.
<div style="color:#906200;font-size:4em;text-shadow:5px 5px 10px #222;-webkit-text-stroke:5px black">This text has a black 3px stroke and a purple fill.</div>
- If you are not convinced (or even if you are), take a look at
Du bête RTF
and Essayez de faire ça avec le bloc-notes. This is in French, but there is a lot of pictures.
Foreign words in italics
Une version plus complète, mais légèrement dépassée et plus brouillonne, est disponible en français.
Typography tells us foreign words shall be rendered as italic (here, we’re talking about real italics, not emphasis). The most common cases are, for me, Latin (Ultima ratio regum) or French (comme ceci) words. Ruling out span style or the marginally better span class, I will resort to selectors:
*:lang(en) {font-style:italic} (:lang for CSS2.1 and for CSS3)
This is all well and good, but it only works for English (we could refine by allowing dialects, like U.S., Canadian, Australian, British, Londonian…). German would still appear as normal (usually roman), not italic. There is another problem with reversing not being the same as italicising, but enkrat po enkrat (one thing at a time).
Introducing, from the CSS3 selectors department, the :not pseudo-class (browsers support) a.k.a. negation pseudoclass, easier for search engines). And that is very useful. :not allows to select in relation to something else; Instead of select French, Italian, Korean, German…
, you now can say select what is not English
.
So here is the code:
*:not(lang|(en)) {font-style:italic} Voilà !
New Wording Draft for Generated Content for Paged Media
The CSS WG published a new Working Draft for
Generated Content for Paged Media. This module describes features often used in printed publications leaders, cross-references, footnotes, endnotes, running headers and footers, hyphenation, etc.) Many features have had very little review so far and feedback is requested.If you send comments, please send them to this mailing list, www-style@w3.org, and prefix the
Subjectwith[css3-gcpm](as I did on this message).
Here it is (this very version)
That is great, because I’m in the process of writing proofreading several books now.
Much like we may expect one page, whatever the medium, we may finally have hopes for one typesetting language, whatever the medium. Yes, I now LaTex is way better than CSS3 or even XSL:FO (including XSL/T if you consider table of contents).
Conflict between border-collapse and border-radius
Better to know it: border-collapse doesn’t work with border-radius. That makes sense when you think about it, but I had to stumble upon it to realise it.
- example with
border-radius: rounded table - example with
border-radius+border-collapsed: squared table
Have fun with CSS3
I just learnt from the cool guys at CSS3.info that Webkit now supports box-shadow (text-shadow for blocks). As <a onclick=« javascript:_gaq.push([’_trackPageview”, “/out/webkit.org/blog/?p=86>mentioned on the Surfin’Safari entry, it is great too for new table look, with “floating” cells.
They give some mentioned on the Surfin’Safari entry, it is great too for new table look, with “floating” cells.
They give some <a href=”]); » href=« http://www.css3.info/preview/box-shadow.html » class=« broken_link »>nice pictures of dropped shadows, but back in the day WebKit pioneered in supporting text-shadow, I created a nice aura effect by using non-dropped shadow (and a bit of Unicode)1. This code abuse page is still there (look for the word radioactivity).
Now, this “text aura” effect may be replicated with box-shadow too. The trick for the aura effect is to use a large blur value to illuminate the block, apparently from “behind” (although no z-index had been harmed in the process. I swear it).
- Simple code
<div style="background:#efefef;-webkit-box-shadow:0 0 200px yellow">Radioactivity</div>
Nice effet, right (provided you are using a bow-shadow–capable browser, of course)? But this is just the beginning.
Now with a bit more code. Fasten your seatbelt, Dorothy. ’Cause pictures are going bye-bye.
<div style="background:#000;border:1px solid #000;font-size:300%;border:#461313 medium solid;-moz-border-radius:10px;-webkit-border-radius:10px;font-family:monospace;font-weight: 900;margin:auto;text-align:center;text-shadow:0 0 20px yellow;width:80%">☢ Radioactivity ☢</div> Look Ma’: no picture!
Beware: truly dramatic effect also require truly dramatic CPU! (a 20em blur is not for everyone and should not be used in real-life).
Yes, I know that text-shadow (and box-shadow too, I guess) are supposed to be replaced by SVG. Still. This thing rocks.
Oh, stupid me. Your browser can’t display it, right? Here’s the picture. Enjoy.
- Granted, I got my inspiration from the W3C
Eclipse
example, but still… - This picture is a 20em blur, very-resource-intensive. If you are using an LCD screen, try looking the picture from different angles. From below, the blur appear as huge, while in front, you notice it much less.
Thème du blog — alignement de texte
Thème du blog — hyperliens
a {border-bottom:solid .1em;text-decoration:none} a:link {color:#3d3d9F} a:visited {color:gray} a:hover {color:orange} a:focus {color:#636} CSS3: une variante de text-underline-position:after-baseline. Lire aussi [CSS3 Text] a new property for text-decoration.
