HighDots Forums  

Formatting dropcap in css

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Formatting dropcap in css in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Dave
 
Posts: n/a

Default Formatting dropcap in css - 02-08-2005 , 12:33 AM






Hi,

I would like to use a dropcap. From a tutorial site on the Web I
copied this declaration:
p.dropcap:first-letter {
font-family: "Times New Roman", serif; font-size: 2.0em; font-weight:
bold; float: left; color: #ff0000;
}

I applied that to css using Owen Brigg's text-sizing alternative

http://www.thenoodleincident.com/tut...y/css/real.css
explained at
http://www.thenoodleincident.com/tut...phy/index.html

I get a dropcap, but there is a vertical gap above and below the
dropcap letter now. (ie a vertical gap between the top of the letter
and the top line of the paragraph) Is there a way to address that, or
would I be better off forgetting about dropcaps?

Thanks
Dave

Reply With Quote
  #2  
Old   
mscir
 
Posts: n/a

Default Re: Formatting dropcap in css - 02-08-2005 , 02:46 AM






Dave wrote:
Quote:
Hi,

I would like to use a dropcap...
Did you try adjusting the value of line-height? I tried this:

line-height: .3em;


Also, do you like any of these:

http://www.mandarindesign.com/dropcaps.html

And did you look around for different approaches using google? There are
lots of great examples for you to look over and see various ways to get
different looks.

Mike


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.