This is a short-story for which I want to define two styles, one for the sections "normal" and one for paragraphs with dialogue.
The two styles should be identical, the only difference being that the style paragraph should begin with a hyphen "-".
How can I do?
thanks
Stefano (Roma-Italia)
PS I tried some tricks how to do the same styles with different names, and then replace the code style "paragraph" by adding "-" but then InDesign, passing to epub, interprets the hyphen as a beginning list and is a mess.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="language" content="english">
<meta http-equiv="Content-Style-Type" content="text/css">
<title></title>
<style type="text/css">
.dialogue:before {
content:'-';
/* the following attributes are some possible options */
padding:0 10px 0 30px;
font-size:120%;
font-weight:bold;
color:#003;
}
</style>
</head>
<body>
<div>
<p>This is non dialogue paragraph</p>
<p class="dialogue">"This is dialogue paragraph"</p>
<p>This is non dialogue paragraph</p>
<p class="dialogue">"This is dialogue paragraph"</p>
<p>This is non dialogue paragraph</p>
<p class="dialogue">"This is dialogue paragraph"</p>
<p class="dialogue">"This is dialogue paragraph"</p>
</div>
</body>
</html>
Bookmarks