File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -723,6 +723,31 @@ Creating Initial Letters: the 'initial-letters' property</h3>
723
723
alt="Non-integral initial letter that only aligns at base">
724
724
</dl>
725
725
</div>
726
+
727
+ <div class="example">
728
+ In conjunction with other CSS properties, ''initial-letters'' can be used to create
729
+ “adjacent initial letters,” where the initial letter is adjacent to the text:
730
+
731
+ <pre>
732
+ p::first-letter {
733
+ initial-letters: 3;
734
+ color: red;
735
+ width: 5em;
736
+ text-align: right;
737
+ margin-left: -5em;
738
+ }
739
+
740
+ p {
741
+ margin-left: 5em;
742
+ }
743
+ </pre>
744
+
745
+ <figure>
746
+ <img src="images/adjacent-initial-letter.png"
747
+ alt="Initial letter adjacent to text">
748
+ </figure>
749
+
750
+ </div>
726
751
727
752
<h4 id="first-most-inline-level">
728
753
Applicability</h4>
You can’t perform that action at this time.
0 commit comments