Centering table in Author Mode
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 116
- Joined: Fri Apr 08, 2011 7:58 am
Centering table in Author Mode
My user wants to center tables in Author Mode.
I've tried following CSS but it seems not work.
Do you have any suggestions?
Regards,
I've tried following CSS but it seems not work.
Code: Select all
*[class~='topic/table'][outputclass~='center']{
margin: auto;
}
Regards,
--
/*--------------------------------------------------
Toshihiko Makita
Development Group. Antenna House, Inc. Ina Branch
Web site:
http://www.antenna.co.jp/
http://www.antennahouse.com/
--------------------------------------------------*/
/*--------------------------------------------------
Toshihiko Makita
Development Group. Antenna House, Inc. Ina Branch
Web site:
http://www.antenna.co.jp/
http://www.antennahouse.com/
--------------------------------------------------*/
-
- Posts: 9431
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Centering table in Author Mode
Hi,
Assuming your table has column widths which are fixed like this:
something like this seems to work for me:
It should work even without specifying that 10px width (which is not taken into account anyway as the colspecs are larger) but it does not work without specifying a width in the CSS.
Regards,
Radu
Assuming your table has column widths which are fixed like this:
Code: Select all
<table frame="all" rowsep="1" colsep="1"
id="table_ump_qnm_qbc" outputclass="center">
<title>fds</title>
<tgroup cols="2">
<colspec colname="c1" colnum="1" colwidth="75pt"/>
<colspec colname="c2" colnum="2" colwidth="75pt"/>
<thead>
<row>
<entry/>
<entry/>
</row>
</thead>
<tbody>
<row>
<entry/>
<entry/>
</row>
</tbody>
</tgroup>
</table>
Code: Select all
*[class~='topic/table'][outputclass~='center']{
margin: auto;
width:10px;
}
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 116
- Joined: Fri Apr 08, 2011 7:58 am
Re: Centering table in Author Mode
Thank you Radu!
It's a nice suggestion.
Regards,
It's a nice suggestion.
Regards,
--
/*--------------------------------------------------
Toshihiko Makita
Development Group. Antenna House, Inc. Ina Branch
Web site:
http://www.antenna.co.jp/
http://www.antennahouse.com/
--------------------------------------------------*/
/*--------------------------------------------------
Toshihiko Makita
Development Group. Antenna House, Inc. Ina Branch
Web site:
http://www.antenna.co.jp/
http://www.antennahouse.com/
--------------------------------------------------*/
Return to “DITA (Editing and Publishing DITA Content)”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ 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