Re: [css-d] first character in a paragraph should be bigger

2012-01-16 Thread David Laakso
On Mon, Jan 16, 2012 at 5:40 PM, Martin  wrote:
Hi there,
I'm wondering if it'd be possible to style the first letter of a paragraph
so that it'd be 3-lines height (I mean generally bigger) as it was in old
texts...


regards

Martin

---

Try [and tweak]:
p:first-letter { font-size: 300%; }
p:first-line { line-height: 100%; }

See: pseudo elements


Best,
Lady Gaga




-- 
Chelsea Creek Studio
http://ccstudi.com
__
css-discuss [css-d@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] first character in a paragraph should be bigger

2012-01-16 Thread Philippe Wittenbergh

On Jan 17, 2012, at 7:40 AM, Martin wrote:

> I'm wondering if it'd be possible to style the first letter of a paragraph so 
> that it'd be 3-lines height (I mean generally bigger) as it was in old texts, 
> eg:
> 
> 
> 
> | irst letter of each paragraph should be
> - as big as that. I don't know if that's possible
> | but it'd be nice to know it. It'd look good on
> my website. Thank you very much
> 
> Would it require using pictures or css would do?

have a look at the ::first-letter pseudo-element
http://www.w3.org/TR/css3-selectors/#first-letter

something like this:

p::first-letter {
font-size: 3.2 em;
line-height: .8em;
font-weight: bold;
}

Philippe
--
Philippe Wittenbergh
http://l-c-n.com/






__
css-discuss [css-d@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


[css-d] first character in a paragraph should be bigger

2012-01-16 Thread Martin

Hi there,

I'm wondering if it'd be possible to style the first letter of a 
paragraph so that it'd be 3-lines height (I mean generally bigger) as it 
was in old texts, eg:




| irst letter of each paragraph should be
- as big as that. I don't know if that's possible
| but it'd be nice to know it. It'd look good on
my website. Thank you very much

Would it require using pictures or css would do?

regards

Martin
__
css-discuss [css-d@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] conditional styles don't seem to apply - why?

2012-01-16 Thread mem
Thank you all.

It was a path issue, regarding the server side programming language in question.

K. Regards, and thanks again for your availability,
mem

__
css-discuss [css-d@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/