Page 1 of 1

CSS float in author

Posted: Tue Nov 25, 2008 7:30 pm
by corck
Hi,
I am trying to get a two columns css layout in author. I did a little test that works in Firefox, however not in Author. Is there a way to achieve this. I am using the latest Oxygen 10 bundle.

XML:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="cssTest.css"?>
<root>
<left>
<content>asdfasdfasdaf</content>
</left>
<right>
<content>dsfaasdfasdfasdfa</content>
<content>dsfaasdfasdfasdfa</content>
<content>dsfaasdfasdfasdfa</content>
<content>dsfaasdfasdfasdfa</content>
<content>dsfaasdfasdfasdfa</content>
</right>
</root>

CSS:

left {
background-color:red;
float:left;
width:300px;
}


right {
background-color:#c9c;
float:right;
width:150px;
}

thanks

Re: CSS float in author

Posted: Tue Nov 25, 2008 10:07 pm
by corck
I just realized that ALL float values are NOT supported.

too bad, its really missing, to make Author a perfect xml editor

Re: CSS float in author

Posted: Wed Nov 26, 2008 12:49 pm
by sorin_ristache
Hello,

Yes, the float property is not supported yet as you can see in the table with supported and unsupported CSS properties. We will consider implementing it in a future version.


Regards,
Sorin

Re: CSS float in author

Posted: Thu Jun 27, 2019 6:48 pm
by Oleksii
So it seems still not to be implemented :)
Are there any other ways to place multiple divs next toe ach other?

Re: CSS float in author

Posted: Mon Jul 01, 2019 3:10 pm
by sorin_carbunaru
Hello,

You could try setting "position: relative" on the parent of the 'div' elements, and then use absolute positioning inside that parent for ordering the divs as you wish.

Best wishes,
Sorin Carbunaru
oXygen XML

Re: CSS float in author

Posted: Mon Jul 12, 2021 5:17 pm
by mercibe
CSS float (or better flex !) seems not implemented yet ;-)

We are developping a CSS to edit comic books textual content in Oxygen (CBML TEI extension). Would be very nice to let div flows !

Attached desired result sample (achieved with XSLT + CSS flex)

Is it in your plans?

Thank you in advance for your help!

(BTW the link to supported CSS properties is broken)

Re: CSS float in author

Posted: Tue Jul 13, 2021 10:29 am
by sorin_carbunaru
Hello,

I added your feedback to a couple of feature requests that we already had recorded for float and flex.

As for the future plans, I'm sorry, but I don't have an answer. Our team manager is on vacation, but he will be back soon. And when he does, he might have a better answer.

As for the broken link, that post is from over a decade ago. The up-to-date URL is this one: https://www.oxygenxml.com/doc/versions/ ... pport.html.

All the best,
Sorin Carbunaru
Oxygen XML Editor

Re: CSS float in author

Posted: Thu Jul 15, 2021 7:09 am
by Radu
Hi,

I'm afraid we do not have a specific timeline for implementing CSS float or flex layouts. The Oxygen desktop has its own CSS rendering engine which is intended mostly for supporting basic CSS features which are usually enough for editing, but indeed we might not be able to render the XML document exactly as it will look like when published.
There is an Oxygen WebAuthor (in browser web editing tool):

https://www.oxygenxml.com/oxygen-xml-we ... xygen.html

I'm not sure if it also supports these features but in time maybe this support would be easier to add there as it uses the web browser directly as the rendering engine.

Regards,
Radu