W3C home > Mailing lists > Public > www-style@w3.org > August 1996

Re: Problem with float left and drop caps

From: Steve Knoblock <knoblock@worldnet.att.net>
Date: Mon, 05 Aug 1996 18:09:45 -0400
Message-Id: <2.2.32.19960805220945.00737674@postoffice.worldnet.att.net>
To: Jonas Salling <salling@cooper.xanthus.se>, "'www-style@w3.org'" <www-style@w3.org>
How about this:

<style>
p.initial:first-letter {
   font-size:400%;
   float:left;
}
</style>

<p class=initial>The first line</p>
<p>The second line</p>

Steve

At 02:36 PM 8/5/96 +0000, Jonas Salling wrote:
>There seems to be a problem with the way the CSS draft currently suggests
how drop caps should be expressed. Let us consider the following:
>
>  <style>
>    p:first-letter {font-size:400%; float:left;}
>  </style>
>  ..
>  ..
>  <p>The first line</p>
>  <p>The second line</p>
>
>This will, contrary to what was intended, be rendered:
>
>  ----- he first line
>    |----- he second line
>    |  |
>    |  |
>       |
>
>What about adding "clear:left;" to the definition of first-letter?
>Although this may at first seem to be a solution to the problem, the
following example shows it has an unwanted side-effect: 
>
>  <img align=left ...>
>  <p>The first line</p>
>  <p>The second line</p>
>
>
>  ------ ----- he first line
>  |    |   |
>  |    |   |
>  |    |   |
>  |    |
>  |    |
>  |    |
>  ------
>  ----- he second line
>    |
>    |
>    |
>
>Can anyone find a solution to this "anfang" problem within the current CSS
framework? Maybe there is a need for an additional float value?
>
>Jonas Salling
>Project Manager
>Xanthus International
>
>
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
   _/     Steve Knoblock 
             knoblock@worldnet.att.net
   _/     City Gallery - History of Photography
             http://www.webcom.com/cityg  
   _/     Member:  National Stereoscopic Association
            http://www.tisco.com/3d-web/nsa/nsa.htm
Received on Monday, 5 August 1996 18:14:55 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:53:45 GMT