.
do not copy code using translator

*
xtgem
Twitter blog Facebook
TUTORIAL
Before and After
The :before and :after pseudo elements are used to place content before and after the content of another element
In XtGems sylesheet editor you must use "custom css" to enter the "content" property and value

 before and after 

.befaft { background-color: black; border-width: 2px; border-style: dotted; border-color: red; padding: 2px; color: yellow; }
.befaft:before { content: url(http://graham.yn.lt/tutorial/images/rainbow.png); }
.befaft:after { content: url(http://graham.yn.lt/tutorial/images/wobniar.png); }
Rounded div using :before and :after
BACK

Main Page
©2010 - 2024 Graham.yn.lt
X T B O A R D
X T G E M
© MMXXIV Graham