Cusatom .css-file

Having trouble installing Oxygen? Got a bug to report? Post it all here.
Glimmerino
Posts: 24
Joined: Mon Aug 24, 2015 11:37 pm

Cusatom .css-file

Post by Glimmerino »

Hello.

I'm using the webhelp plugin for my online help generation in DITA.

By default the figure title and relating image does not align properly. I would like the figure title to be before/on top of the image. How do I set this in the .css file? I know I can change the @placement attribute for each image but I want this to be automatic.

The element structure looks like:

<fig id="">
<title>TITLE</title>
<image href=""/>
</fig>


Best regards
Kristian
bogdan_cercelaru
Posts: 222
Joined: Tue Jul 01, 2014 11:48 am

Re: Cusatom .css-file

Post by bogdan_cercelaru »

Hello,

To have the figure title on the top of the image, please try to edit the "DITA-OT/plugins/com.oxygenxml.webhelp/oxygen-webhelp/resources/css/webhelp_topic.css" file and add the following code at the end:

Code: Select all


div.fignone span.figcap {
display:block;
text-align:left;
font-weight:bold;
padding:2px 10px 5px 10px;
}
Regards,
Bogdan
Bogdan Cercelaru
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Glimmerino
Posts: 24
Joined: Mon Aug 24, 2015 11:37 pm

Re: Cusatom .css-file

Post by Glimmerino »

This worked fine.

Thankyou.

/Kristian
Post Reply