groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Groff] dropcap in HTML could be easier?


From: Dorai Sitaram
Subject: [Groff] dropcap in HTML could be easier?
Date: Wed, 30 Mar 2005 14:55:35 -0500 (EST)

I was wondering why Gaius had to generate an image for .DC for the HTML output. 

Using the following CSS declaration

.dropcap {
  line-height: 90%;
  font-size: 400%;
  float: left;
}

and enclosing the letter to be dropped inside 

  <span class=dropcap> ...  </span>

produces a decent dropcap.  (The color argument can be added with another
enclosing <span>.)

I think this trick is from the authors of CSS themselves, Håkon Wium Lie
and Bert Bos.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]