Quote:
Originally Posted by Doitsu
Amazon, in their infinite wisdom, might have decided to include support for this particular selector, because it's often used in dropcaps styles, and since none of the other pseudo classes seem to be supported in KF8, the tech writers most likely assumed that none of them are supported.
|
Hmmm, your words made me think. It seems that Amazon added support not only for the pseudo-element :first-letter but also for the pseudo-element :first-line:
Code:
p:nth-child(2):first-line {
font-variant: small-caps;
font-size:1.2em
}
p:nth-child(2):first-letter {
float: left;
font-size: 4em;
font-weight: bold;
margin-top: -0.2em;
margin-bottom: -0.2em;
margin-right: 5px;
}
With that, you can get an output like the following picture. But the curious thing is that:
Code:
p:first-line {text-transform: uppercase}
doesn't work
You can use others properties like
color, font-variant, font-size, etc., etc. and all of them work but I don't know why
text-transform doesn't work. I must be doing something wrong