Question
Using the Styles dialog box: "Other", and other questions…
Hi all,
I am now starting to use the Styles dialog box, with the intention of learning it well: how it works and how it does not work. i.e., any bugs there may be there.
1. First of all I note that in the Styles dialog box there are three subtrees in the Styles navigator pane on the left.
- Character
- Other
- Paragraph
What is "Other"?
From the names H1, H2, P, etc. it seems to me they are HTML element tags. But not all. Right? Wrong?
2. I notice an interesting phenomenon: styles are being duplicated.
I defined a new style that I called List_Number_1.
It then appeared Styles dialog box in the "Paragraph" subtree. So far so good.
Then I applied this new style to a paragraph in my topic.
a.
I then looked again at the Styles dialog box, and I see that List_Number_1 has also appeared in the "Other" subtree, however named a bit differently: "P-List_Number_1".
Why has this happened? Who needs it?
b.
Then I look in the HTML window. I see that for each list item, it has generated the following sort of line:
<li class=P-List_Number_1><p class=List_Number_1>This is a list item 1</p></li>
So now I see that the "Other" subtree also contains classes (=styles). And that's what I would now expect to see in the CSS file.
So RH has applied TWO classes for each list item. Who needs TWO? Looks superfluous to me. Again, who needs the P-List_Number_1?
c.
Then I look in the CSS file. I see that it has created a List_Number_1 CSS class for the <P> HTML element and for the <LI> HTML element, whose definitions overlap, as follows:
P.List_Number_1 {
list-style: decimal;
margin-top: 4.5pt;
margin-bottom: 4.5pt;
font-size: 10pt;
}
LI.P-List_Number_1 {
list-style: decimal;
font-size: 10pt;
}
So I now see that P.List_Number_1 adds the margin properties. So who needs P.List_Number_1 ?
Can somebody tell me what's goin' on here?
Is there a good reason for generating such bloated HTML/CSS?
Great thanks in advance,
- avi
I am now starting to use the Styles dialog box, with the intention of learning it well: how it works and how it does not work. i.e., any bugs there may be there.
1. First of all I note that in the Styles dialog box there are three subtrees in the Styles navigator pane on the left.
- Character
- Other
- Paragraph
What is "Other"?
From the names H1, H2, P, etc. it seems to me they are HTML element tags. But not all. Right? Wrong?
2. I notice an interesting phenomenon: styles are being duplicated.
I defined a new style that I called List_Number_1.
It then appeared Styles dialog box in the "Paragraph" subtree. So far so good.
Then I applied this new style to a paragraph in my topic.
a.
I then looked again at the Styles dialog box, and I see that List_Number_1 has also appeared in the "Other" subtree, however named a bit differently: "P-List_Number_1".
Why has this happened? Who needs it?
b.
Then I look in the HTML window. I see that for each list item, it has generated the following sort of line:
<li class=P-List_Number_1><p class=List_Number_1>This is a list item 1</p></li>
So now I see that the "Other" subtree also contains classes (=styles). And that's what I would now expect to see in the CSS file.
So RH has applied TWO classes for each list item. Who needs TWO? Looks superfluous to me. Again, who needs the P-List_Number_1?
c.
Then I look in the CSS file. I see that it has created a List_Number_1 CSS class for the <P> HTML element and for the <LI> HTML element, whose definitions overlap, as follows:
P.List_Number_1 {
list-style: decimal;
margin-top: 4.5pt;
margin-bottom: 4.5pt;
font-size: 10pt;
}
LI.P-List_Number_1 {
list-style: decimal;
font-size: 10pt;
}
So I now see that P.List_Number_1 adds the margin properties. So who needs P.List_Number_1 ?
Can somebody tell me what's goin' on here?
Is there a good reason for generating such bloated HTML/CSS?
Great thanks in advance,
- avi
