PD4ML v4 Forums PD4ML v3 Archived Forums (Read Only) HTML/CSS rendering issues css style control of checkbox will lose after convert to pdf Re: Re: css style control of checkbox will lose after convert to pdf

#28643

@PD4ML wrote:

I converted the HTML snippet and the result looks ok. See attached.

Probably in your case there are some extra styles, that reduce the font size. I cannot tell exactly as I seen neither entire HTML document, not its PDF output.

Sorry for so late to replay..details xml:
<?xml version = "1.0" encoding = "UTF-8"?><br /> <html><br /> <meta content = "text/html; charset=UTF-8" http-equiv = "content-type"/><br /> <head><br /> <style type = "text/css"><br /> .cn {<br /> font-family: SimSun;<br /> color:#114488;<br /> margin-right:2px;<br /> font-size:8px;<br /> }<br /> .en {<br /> font-family: Arial;<br /> color:#000000;<br /> font-size:8px;<br /> }<br /> </style><br /> </head><br /> <body><br /> <table cellspacing="0px" cellpadding="0px" style="margin-left:20px;" width = "100%"><br /> <tr><br /> <td><br /> <span class="cn">请单选</span><span class="en">Select One Option ONLY</span><br /> </td><br /> </tr><br /> <tr><br /> <td><input type="checkbox"/><span class="cn">单名帐户*</span><span class="en"> Sole A/C</span><br /> </td><br /> </tr><br /> </table><br /> </body><br /> </html>
The height of checkbox is too large, isn’t it?
I want the checkbox has same height as the text besides it.
ps:I saw that pd4ml use “java:/resources/icons/cb-off-big.gif ” & “java:/resources/icons/cb-off-big.gif” to render checkbox, could I use the smaller one –>”cb-off.gif”? if I could, then how to do it?