Compare Revisions

::after (:after)

Change Revisions

Revision 469987:

Revision 469987 by Deraillor on

Revision 472547:

Revision 472547 by Tripad on

Title:
::after (:after)
::after (:after)
Slug:
Web/CSS/::after
Web/CSS/::after
Tags:
"CSS", "NeedsLiveSample", "NeedsMobileBrowserCompatibility", "CSS Reference", "CSS Référence"
"CSS", "NeedsLiveSample", "NeedsMobileBrowserCompatibility", "CSS Reference", "CSS Référence"
Content:

Revision 469987
Revision 472547
tt55    </p>
56    <p>
57      &nbsp;
58    </p>
59    <h4>
60      Sample Example 2
61    </h4>
62    <pre class="brush: css">
63.ribbon{
64    position:relative;
65    width:50px;
66    height:50px;
67    background-color: #3BA8E7;
68}
69.ribbon:after{
70    position:absolute;
71    content: " ";
72    width:50px;
73    height:50px;
74    top:20%;
75    left:50%;
76    background-color: #1578B1;
77}
78</pre>
79    <p>
80      <strong>Live Sample</strong> : <a href="http://jsfiddle.net
 >/Tripad/fbQTr/3/">http://jsfiddle.net/Tripad/fbQTr/3/</a>

Back to History