The "content" property is used with :before and :after pseudo-elements.
<HEAD> <STYLE TYPE="text/css"> p:before {content: "Country Name: "; color:red} </STYLE> </HEAD> <BODY> <p>Japan</p> <p>Belgium</p> </BODY> |
Japan Belgium |
<HEAD> <STYLE TYPE="text/css"> p:before {content: url("maru.gif")} </STYLE> </HEAD> <BODY> <p>Today is fine.</p> </BODY> |
Today is fine. |
<HEAD> <STYLE TYPE="text/css"> p:before {content:open-quote; color:red} p:after {content:close-quote; color:red} </STYLE> </HEAD> <BODY> <p>Today is fine.</p> </BODY> |
Today is fine. |
Netscape 6 doesn't support second level quotation marks.
<HEAD> <STYLE TYPE="text/css"> q {quotes:'[' ']' "{" "}"} q:before {content:open-quote; color:red} q:after {content:close-quote; color:red} </STYLE> </HEAD> <BODY> <q>This text is quoted from <q>the book</q>.</q> </BODY> |
This text is quoted fromthe book. |
<p>HELLO.</p> <p style="page-break-before:always"> BYE. </p> <p>HELLO.</p>Sample Page | Printed Sample (PDF) |
Page View
|
Print Page
|
<p>HELLO.</p> <p style="page-break-after:always"> BYE. </p> <p>HELLO.</p>Sample Page | Printed Sample (PDF) |
Page View
|
Print Page
|
<span style="cursor:#"> <img src=heno03.gif> HELLO </span>
| HELLO | |
| HELLO | |
| HELLO | |
| HELLO | |
| HELLO | |
| HELLO | |
| HELLO | |
| HELLO | |
| HELLO | |
| HELLO | |
| HELLO | |
| HELLO | |
| HELLO | |
| HELLO | |
| HELLO | |
| HELLO | |
| HELLO | |
| HELLO | |
| HELLO | |
| HELLO | |
| HELLO | |
| HELLO | |
| HELLO | |
#=Cursor Image (.cur or .ani) | HELLO |
scrollbar-base-color: red |
|
scrollbar-base-color: skyblue; scrollbar-arrow-color: darkblue; scrollbar-face-color: white; scrollbar-highlight-color:skyblue; scrollbar-3dlight-color:blue; scrollbar-darkshadow-color: blue; scrollbar-shadow-color:skyblue |
|
<DIV STYLE="zoom:100%; border:solid 2px skyblue"> Today is fine. <img src="heno02.gif"> </DIV> |
Today is fine.
|
<DIV STYLE="zoom:200%; border:solid 2px skyblue"> Today is fine. <img src="heno02.gif"> </DIV> |
Today is fine.
|