CSS float in author

Oxygen general issues.
corck
Posts: 2
Joined: Tue Nov 25, 2008 7:27 pm

CSS float in author

Post 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
corck
Posts: 2
Joined: Tue Nov 25, 2008 7:27 pm

Re: CSS float in author

Post by corck »

I just realized that ALL float values are NOT supported.

too bad, its really missing, to make Author a perfect xml editor
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: CSS float in author

Post 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
Oleksii
Posts: 81
Joined: Wed Jul 19, 2017 6:04 pm
Location: Austria
Contact:

Re: CSS float in author

Post by Oleksii »

So it seems still not to be implemented :)
Are there any other ways to place multiple divs next toe ach other?
Kind regards,
Oleksii Sapov-Erlinger
sorin_carbunaru
Posts: 398
Joined: Mon May 09, 2016 9:37 am

Re: CSS float in author

Post 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
mercibe
Posts: 2
Joined: Mon Jul 12, 2021 5:04 pm

Re: CSS float in author

Post 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)
Attachments
image.png
image.png (37.2 KiB) Viewed 1835 times
sorin_carbunaru
Posts: 398
Joined: Mon May 09, 2016 9:37 am

Re: CSS float in author

Post 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
Radu
Posts: 9018
Joined: Fri Jul 09, 2004 5:18 pm

Re: CSS float in author

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply