Quote:
Originally Posted by Toxaris
Could you post an example of your code? I use indents all the time, but no problems on my reader (PRS-300). The CSS code and (part) of the xhtml code would be nice to see if we can find the issue.
|
Thanks Toxaris:
I'll dig out the css file and post relevant bits (the font declaration is missing from this example, btw).
Code:
@namespace h "http://www.w3.org/1999/xhtml";
.G-fr {
background-color: white;
border-bottom: 0;
border-top: 0;
display: block;
font-size: 1em;
left: 0;
margin-bottom: 0;
margin-left: 0;
margin-right: 0;
margin-top: 0;
padding-bottom: 0;
padding-left: 0;
padding-right: 0;
padding-top: 0;
position: relative;
text-indent: 1.5em
}
.G-fr1 {
background-color: white;
border-bottom: 0;
border-top: 0;
display: block;
font-size: 1em;
margin-bottom: 0;
margin-left: auto;
margin-right: auto;
margin-top: 0;
padding-bottom: 0;
padding-left: 0;
padding-right: 0;
padding-top: 0;
text-indent: 1.5em
}
.P-Chapter-header {
background-color: white;
border-bottom: 0;
border-top: 0;
display: block;
font-family: "Times New Roman", serif;
font-size: 1.29167em;
line-height: 100%;
margin-bottom: 0;
margin-left: 0;
margin-right: 0;
margin-top: 3.0cm;
padding-bottom: 0;
padding-left: 0;
padding-right: 0;
padding-top: 0;
page-break-after: auto;
page-break-before: auto;
text-align: center;
text-indent: 1.5em
}
.P-P {
background-color: white;
border-bottom: 0;
border-top: 0;
display: block;
font-family: "Times New Roman", serif;
font-size: 1em;
margin-bottom: 0;
margin-left: 0;
margin-right: 0;
margin-top: 0;
padding-bottom: 0;
padding-left: 0;
padding-right: 0;
padding-top: 0;
text-indent: 1.5em
}
.P-P1 {
background-color: white;
border-bottom: 0;
border-top: 0;
display: block;
font-family: "Times New Roman", serif;
font-size: 2em;
margin-bottom: 0;
margin-left: 0;
margin-right: 0;
margin-top: 0;
padding-bottom: 0;
padding-left: 0;
padding-right: 0;
padding-top: 0;
text-indent: 1.5em
}
.P-P10 {
background-color: white;
border-bottom: 0;
border-top: 0;
display: block;
font-family: "Times New Roman", serif;
font-size: 1em;
line-height: 100%;
margin-bottom: 0;
margin-left: 0;
margin-right: 0;
margin-top: 0;
padding-bottom: 0;
padding-left: 0;
padding-right: 0;
padding-top: 0;
text-indent: 1.5em
}
more of the same...
.S-T {
background-color: white;
color: #000;
margin-bottom: 0;
margin-left: 0;
margin-right: 0;
margin-top: 0;
padding-bottom: 0;
padding-left: 0;
padding-right: 0;
padding-top: 0
}
.S-T1 {
background-color: white;
font-family: "Times New Roman", serif;
font-size: 1.54839em;
margin-bottom: 0;
margin-left: 0;
margin-right: 0;
margin-top: 0;
padding-bottom: 0;
padding-left: 0;
padding-right: 0;
padding-top: 0
}
.S-T10 {
background-color: white;
color: #000;
font-size: 1em;
margin-bottom: 0;
margin-left: 0;
margin-right: 0;
margin-top: 0;
padding-bottom: 0;
padding-left: 0;
padding-right: 0;
padding-top: 0
}
.S-T11 {
background-color: white;
color: #000;
font-size: 1em;
font-weight: normal;
margin-bottom: 0;
margin-left: 0;
margin-right: 0;
margin-top: 0;
padding-bottom: 0;
padding-left: 0;
padding-right: 0;
padding-top: 0
}
more of the same...
.calibre {
background-color: white;
display: block;
font-size: 1em;
margin-bottom: 0;
margin-left: 5pt;
margin-right: 5pt;
margin-top: 0;
padding-bottom: 0;
padding-left: 0;
padding-right: 0;
padding-top: 0;
page-break-before: always
}
.calibre1 {
background-color: white;
display: table-row;
margin-bottom: 0;
margin-left: 0;
margin-right: 0;
margin-top: 0;
padding-bottom: 0;
padding-left: 0;
padding-right: 0;
padding-top: 0;
vertical-align: middle
width: 10.0cm
}
.calibre2 {
background-color: white;
display: table-cell;
margin-bottom: 0;
margin-left: 0;
margin-right: 0;
margin-top: 0;
padding-bottom: 1px;
padding-left: 1px;
padding-right: 1px;
padding-top: 1px;
text-align: inherit;
vertical-align: inherit
}
.calibre3 {
background-color: white;
display: block;
height: auto;
margin-bottom: 0;
margin-left: 0;
margin-right: 0;
margin-top: 0;
padding-bottom: 0;
padding-left: 0;
padding-right: 0;
padding-top: 0;
width: auto
}
One thing I notice is that the last line in each paragraph is missing the semi-colon, but since it is the last line, I assume that the closing bracket does the trick.
And a bit of a chapter file so you can see how they are used:
Code:
<body class="calibre">
<p class="P-Chapter-header" id="calibre_pb_4">Chapter 1</p>
<p class="P-P10"> Lennart Persson was not a typical Swede. He was not 185 centimetres tall, or six foot one, as the English still call it, in spite of forty years of war with the metric system. He was not blond haired although he was blue eyed. Nor was he much interested in athletic activities. For him walking was something you did to get somewhere you couldn't drive, and jogging was something you did to catch a bus. And his interests were for the most part intellectual, which did nothing for his figure.</p>
<p class="P-P10"> Not that he was fat. But he was perhaps a little more stockily built than was compatible with his 172 centimetres, or five foot eight and a bit, as his English colleagues would say. His body was very nearly cylindrical, with only his belt to give him a waistline. Notwithstanding his general disdain for athletic activities, he did work out occasionally with his workmates, and he played squash on the company squash ladder, where he occupied a satisfactory place in the lower half, known as 'wimps and women', but with no hope, and not even a serious dream of making the top half, called 'mucho macho'.</p>
<p class="P-P10"> In one sense, he was quite typically Swedish. He ate well. Not “well” in the sense of being a good trencherman, who groaned when he stood up from the table, but “well” in the sense of avoiding white bread and sugar, and almost never eating at McDonald's. He was a great fan of sushi, as, surprisingly, were most of his colleagues.</p>
Incidentally I've taken out all the statements from all files. They were put in gratuitously by Open Office, and made a ragged column of indents.
Another thing, all statements in the css file ask for indents which are 1.5 em, but I was getting 1.5 cm.
I think that's all, but I've probably forgotten something...