Skip to content

Commit ef14ba0

Browse files
committed
[css-inline] add adjacent initial letter example per #965
1 parent 2c4361e commit ef14ba0

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

css-inline-3/Overview.bs

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -723,6 +723,31 @@ Creating Initial Letters: the 'initial-letters' property</h3>
723723
alt="Non-integral initial letter that only aligns at base">
724724
</dl>
725725
</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>
726751

727752
<h4 id="first-most-inline-level">
728753
Applicability</h4>

0 commit comments

Comments
 (0)