Is it possible to 'embed' CSS style in topic editor?

This forum is for all Flare issues related to styles, stylesheets and XML.

Is it possible to 'embed' CSS style in topic editor?

Postby DaeguKat on Fri Mar 23, 2018 11:26 am

I am having trouble getting some text boxes to float properly.

Would be able to get the effect I want if I could manually create them using flexbox. I put the following in my topic <head>

<?xml version="1.0" encoding="utf-8"?>
<html xmlns:MadCap="" MadCap:lastBlockDepth="4" MadCap:lastHeight="139" MadCap:lastWidth="1215">
<style media="screen" type="text/css">

And then I added the HTML manually in the text editor. However, Nothing in my topic is taking the styles. In the XML editor, I only see <div></div>.

Is is possible to add CSS styles this way? Or can it only be done through a separate CSS file? I only need this styling for one topic.

Jr. Propeller Head
Posts: 9
Joined: Tue Feb 20, 2018 5:03 pm

Re: Is it possible to 'embed' CSS style in topic editor?

Postby AlexFox on Mon Mar 26, 2018 12:24 am

Hi :)

You don't need the media="screen" attribute and the type="text/css" is the only supported attribute at the moment (and therefore the default) so leave that out as well. This should work fine, there are some caveats to using style info in header elements in Flare which means it's always preferable to use an actual stylesheet, even if it's just for that topic and you @import it in the head instead. Also note that Flare doesn't yet "support" Flex and will show you a validation warning every time you save a file with a reference to display: flex;
Sr. Propeller Head
Posts: 121
Joined: Thu Oct 19, 2017 1:56 am

Return to Styles, Stylesheets and XML

Who is online

Users browsing this forum: No registered users and 6 guests