Author: CSS pseudo elements displayed as table-cell
Are you missing a feature? Request its implementation here.
-
- Posts: 82
- Joined: Sat Jan 13, 2007 5:39 pm
- Location: Belgium
Author: CSS pseudo elements displayed as table-cell
Post by PaulHermans »
I have a XML structure similar to this.
I want to display this as a table using following CSS
But it seems that the last one is not supported in Oxygen Author.
Code: Select all
<select>
<optgroup label="Language">
<option>Java</option>
<option>C++</option>
<option>Perl</option>
</optgroup>
....
</select>
Code: Select all
select {
display: table;
}
optgroup {
display: table-row;
}
option {
display: table-cell;
optgroup:before {
display: table-cell;
content: attr(label);
}
Paul
-
- Posts: 9473
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Author: CSS pseudo elements displayed as table-cell
Hi Paul,
We do not support rendering before or after generated content for table rows. But we probably should if those before/after are specified with table-cell display. So we'll look into it.
As a workaround, if you have limited values for the "label" attribute you could add selectors like:
But I guess this would not look that nice.
Regards,
Radu
We do not support rendering before or after generated content for table rows. But we probably should if those before/after are specified with table-cell display. So we'll look into it.
As a workaround, if you have limited values for the "label" attribute you could add selectors like:
Code: Select all
optgroup[label=Language] option:first-child:before{
content:"Language";
border-style:solid;
border-width:1px;
}
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 82
- Joined: Sat Jan 13, 2007 5:39 pm
- Location: Belgium
Re: Author: CSS pseudo elements displayed as table-cell
Post by PaulHermans »
Hi Radu,
Thanks for looking into this.
The workaround is, as you expected, not good enough.
I found out that the table-cell solution works in some browsers and xml editors (http://bit.ly/aCDcii).
Good luck with it.
Paul
Thanks for looking into this.
The workaround is, as you expected, not good enough.
I found out that the table-cell solution works in some browsers and xml editors (http://bit.ly/aCDcii).
Good luck with it.
Paul
Paul
-
- Posts: 22
- Joined: Fri Nov 14, 2008 8:21 am
Re: Author: CSS pseudo elements displayed as table-cell
Hi Radu,
I currently use Oxygen Author v12. There still seems to be no support for "rendering before or after generated content for table rows". Am I missing something? Is there perhaps a new workaround available?
Cheers, Aaron.
I currently use Oxygen Author v12. There still seems to be no support for "rendering before or after generated content for table rows". Am I missing something? Is there perhaps a new workaround available?
Cheers, Aaron.
-
- Posts: 2885
- Joined: Tue May 17, 2005 4:01 pm
Re: Author: CSS pseudo elements displayed as table-cell
Hello,
The support has not been implemented yet as of v12.1. This is currently scheduled to be fixed in v13 but it could be further delayed.
Regards,
Adrian
The support has not been implemented yet as of v12.1. This is currently scheduled to be fixed in v13 but it could be further delayed.
Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service