Does :first-child work on IE 6?
I can't seem to get it to work in the sample code I have been playing with. I was under the assumption this should take the first paragraph and make it larger that the others.
Is there something missing:
Here is the .css file:
And the HTML file:
thanks,
Tom.
I can't seem to get it to work in the sample code I have been playing with. I was under the assumption this should take the first paragraph and make it larger that the others.
Is there something missing:
Here is the .css file:
Code:
/* story-5.6.css */
/* By Kynn Bartlett kynn@kynn.com */
.storytitle
{ font-family: Verdana; }
.storybody p
{ font-family: Arial; }
.storybody p:first-child
{ font-size: large; }
And the HTML file:
Code:
<!-- story-5.5.html -->
<!-- By Kynn Bartlett -->
<html>
<head>
<title>Fortune of Reversal</title>
<link type="text/css" rel="stylesheet"
href="story-5.6.css">
</head>
<body>
<h1 class="storytitle">Fortune of Reversal</h1>
<div class="storybody">
<p>
They dined on heaping platters of Szechuan chicken, of
spicy beef, of shrimp and vegetables in some exotic dish
without a name. Bits of food were passed from chopsticks
to chopsticks, violating all known laws of Chinese
cuisine etiquette. The tea flowed hot and fast that night,
until the meal finally concluded itself.
</p>
<p>
"Thank you for dining here tonight," said the badgeless,
anonymous waitress. She placed a small tray containing the
check and two wrapped fortune cookies on the edge of the
table, and hefted the empty plates one by one, forming a
stack on the crook of her elbow.
</p>
<p>
"Absolutely delicious," declared Oliver as he pulled a card
from his wallet and flicked it onto the bill. He picked up
the two cookies, an afterthought. "Fortune cookie, my
love?" he asked Amanda.
</p>
</div>
</body>
</html>
thanks,
Tom.