CSS - właściwości content
content
kod |
wynik kodu |
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-2">
<meta http-equiv="Content-Language" content="pl">
<title>webatak.pl - CSS - właściwości generowanej treści</title>
<link rel="Stylesheet" type="text/css" href="style.css" />
<style type="text/css">
p:before {
content: "Tekst przed akapitem. ";
display: inline;
}
p:after {
content: "Tekst za akapitem.";
display: inline;
}
</style>
</head>
<body>
<h2>content</h2>
<p>Koko dżambo i do przodu.</p>
</body>
</html>
|
|