Re: Problem with float left and drop caps

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 UTC