Hello
I have noticed that a MadCap.css file was generated in a Temporary folder of my output folder.
Does this mean that the actual CSS file used is MadCap.css and not the CSS file I have set up in my Flare project?
MadCap.css file
-
MC Hammer
- Sr. Propeller Head
- Posts: 225
- Joined: Wed Aug 08, 2007 3:04 am
- Location: In a galaxy far, far away
MadCap.css file
Marie-Claire
Flare 2019 r2 - Windows 10 Pro - HTML5 help / "clean" XHTML output
Flare 2019 r2 - Windows 10 Pro - HTML5 help / "clean" XHTML output
Re: MadCap.css file
No, they're both used. You'll see a third one if you use table styles.
There are no limitations on how many stylesheets can be called by a web page (topic), but the rule is that the last one listed wins if differing styles are listed for the same tag. For instance, if you defined the <p> tag in A.css as being blue text and defined it in the B.css as being red text, then B.css would win if it's listed last in the topic so your text would be red instead of blue.
In the case of Madcap.css, that file provides the style settings for the skins and the default styles for certain effects if you didn't define those styles in the project stylesheet. For instance, if you used the breadcrumbsProxy but didn't specify how it would appear in your project stylesheet, then it would use the default styles that are contained in the Madcap.css file. If you define styles for the breadcrumbsProxy in your project stylesheet, then the compiled topic will show your styles. That's why your project stylesheet is listed last in the compiled topic -- so that your styles will override the Madcap.css default styles.
There are no limitations on how many stylesheets can be called by a web page (topic), but the rule is that the last one listed wins if differing styles are listed for the same tag. For instance, if you defined the <p> tag in A.css as being blue text and defined it in the B.css as being red text, then B.css would win if it's listed last in the topic so your text would be red instead of blue.
In the case of Madcap.css, that file provides the style settings for the skins and the default styles for certain effects if you didn't define those styles in the project stylesheet. For instance, if you used the breadcrumbsProxy but didn't specify how it would appear in your project stylesheet, then it would use the default styles that are contained in the Madcap.css file. If you define styles for the breadcrumbsProxy in your project stylesheet, then the compiled topic will show your styles. That's why your project stylesheet is listed last in the compiled topic -- so that your styles will override the Madcap.css default styles.
Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
-
MC Hammer
- Sr. Propeller Head
- Posts: 225
- Joined: Wed Aug 08, 2007 3:04 am
- Location: In a galaxy far, far away
Re: MadCap.css file
Thanks Lisa, always on the ball 
Marie-Claire
Flare 2019 r2 - Windows 10 Pro - HTML5 help / "clean" XHTML output
Flare 2019 r2 - Windows 10 Pro - HTML5 help / "clean" XHTML output