You say you want the first line smaller than the second, but your css
will do exactly the opposite (once the selectors are fixed):
.pmi {
font-size: 1.5em;
}
.pmi p:first-line {
font-size: 1.2em;
}
Let me explain; if your default font size is 10px (it's not, but this
is just an eg.),
On Fri, 17 Dec 2004 09:02:25 +0930, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
I have a class .pmi in my page and I want style the first line of
differently so that the first line is smaller than the second line. The
code below doesn't seem to work and I was wondering if it was because of
the
On Fri, 17 Dec 2004 09:02:25 +0930, [EMAIL PROTECTED] wrote:
.pmi p:first-line {
font-size: 1.2em;
}
this should be:
p.pmi:first-line {
font-size: 1.2em;
}
But using the 'br' isn't any good too. Maybe this line with
the br should be instead a heading followed with a paragraph?
Rene
On Fri, 17 Dec 2004 01:41:27 -, Rene Saarsoo [EMAIL PROTECTED] wrote:
But using the 'br' isn't any good too. Maybe this line with
the br should be instead a heading followed with a paragraph?
Depending on how many of these items there are, a definition list
might work well also.
--
May
Hi, can anyone help me with this please.
I have a class .pmi in my page and I want style the first line of
differently so that the first line is smaller than the second line. The
code below doesn't seem to work and I was wondering if it was because of
the br/ tag in my html.
p class=pmiRead
[EMAIL PROTECTED] wrote:
I have a class .pmi in my page and I want style the first line of
differently so that the first line is smaller than the second line. The
code below doesn't seem to work and I was wondering if it was because of
the br/ tag in my html.
.pmi p:first-line
To make it work,