Formatting of text styles - default styles
Posted: Wed Aug 21, 2019 2:35 pm
Re setting the default font and text color for an added text object:
Following the steps below, I'm unsure as to why things are as they are. If anyone can offer an explanation, please do so. I've added a few questions below. Thanks for any/all help!
Beginning with new blank page.
Step 1. I've set the "Page Properties > Style > Defaults" to:
Font family: "Times New Roman",
Text color: "Green".
Clicked "Make Default" and "Yes".
Step 2. Toolbox > Text tool selected and text box added to page.
Step 3. Text added in text box. (Text color is #000000, not Green.)
Step 4. Tools > Style Manager: "CustomStyle" modified > Font Family: "Times New Roman"; Text Color: "Green". This style was applied to text.
Step 5. Page published: https://salisburylmc.org/page1.php
Step 6. Page opened; page source viewed.
Step 7. <p> tag contents:
<p style="font-weight:bold;color:#008000;"><span style="color:#008000;"><span class="CustomStyle">Test text.</span></p></div>
Step 8. Viewing the code generated: although "<span class=CustomStyle" exists, "<p style" and "<span style" are generated. Also, only one "</span>" tag is generated.
Q 1: If default text color is set as in Step 1, shouldn't this affect text added to page?
Q 2: Are "<p style...>" and "<span style...>" superfluous when there's a "<span class...>" ?
Q 3: Is there a guide for using style formatting tools, such as showing which affect inline, global, etc.?
Again, many thanks for any help.
Mark
Following the steps below, I'm unsure as to why things are as they are. If anyone can offer an explanation, please do so. I've added a few questions below. Thanks for any/all help!
Beginning with new blank page.
Step 1. I've set the "Page Properties > Style > Defaults" to:
Font family: "Times New Roman",
Text color: "Green".
Clicked "Make Default" and "Yes".
Step 2. Toolbox > Text tool selected and text box added to page.
Step 3. Text added in text box. (Text color is #000000, not Green.)
Step 4. Tools > Style Manager: "CustomStyle" modified > Font Family: "Times New Roman"; Text Color: "Green". This style was applied to text.
Step 5. Page published: https://salisburylmc.org/page1.php
Step 6. Page opened; page source viewed.
Step 7. <p> tag contents:
<p style="font-weight:bold;color:#008000;"><span style="color:#008000;"><span class="CustomStyle">Test text.</span></p></div>
Step 8. Viewing the code generated: although "<span class=CustomStyle" exists, "<p style" and "<span style" are generated. Also, only one "</span>" tag is generated.
Q 1: If default text color is set as in Step 1, shouldn't this affect text added to page?
Q 2: Are "<p style...>" and "<span style...>" superfluous when there's a "<span class...>" ?
Q 3: Is there a guide for using style formatting tools, such as showing which affect inline, global, etc.?
Again, many thanks for any help.
Mark