File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -744,21 +744,23 @@ Overlapping Pseudo-element Interactions</h2>
744744 The following CSS and HTML example
745745 illustrates how overlapping pseudo-elements interact:
746746
747- <pre>
747+ <xmp class="lang-html">
748+ <style>
748749 p { color: red; font-size: 12pt }
749750 p::first-letter { color: green; font-size: 200% }
750751 p::first-line { color: blue }
752+ </style>
751753
752- <P> Some text that ends up on two lines</P>
753- </pre >
754+ <p> Some text that ends up on two lines</p>
755+ </xmp >
754756
755757 The first letter of each P element will be green with a font size of ’24pt'.
756758 The rest of the first formatted line will be blue
757759 while the rest of the paragraph will be red.
758760
759761 Assuming that a line break will occur before the word "ends",
760762 the <a>fictional tag sequence</a> for this fragment might be:
761- <xmp>
763+ <xmp class="lang-html" >
762764 <p>
763765 <p::first-line>
764766 <p::first-letter>
You can’t perform that action at this time.
0 commit comments