Generated Content
Generate Text ContentThe "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 |
Generate External Resource
<HEAD>
<STYLE TYPE="text/css">
p:before {content: url("maru.gif")}
</STYLE>
</HEAD>
<BODY>
<p>Today is fine.</p>
</BODY>
|
Today is fine. |
Generate Quotation Marks
<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. |
Specify the Type of Quotation MarksNetscape 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. |
Page Breaks for Printing
{page-break-before: # } #=auto, always
<p>HELLO.</p> <p style="page-break-before:always"> BYE. </p> <p>HELLO.</p>Sample Page | Printed Sample (PDF) |
Page View
|
Print Page
|
{page-break-after: # } #=auto, always
<p>HELLO.</p> <p style="page-break-after:always"> BYE. </p> <p>HELLO.</p>Sample Page | Printed Sample (PDF) |
Page View
|
Print Page
|
Cursor <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
|
|
Scroll Bar Color
{scrollbar-base-color: # }
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 |
|
Zoom
{zoom: # }
<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.
|
