HTML to PDF / DOCX / RTF Java converter library › Forums › PD4ML v3 Archived Forums (Read Only) › HTML/CSS rendering issues › Fieldset Legend + Bold
- This topic has 5 replies, 3 voices, and was last updated Apr 21, 2010
18:37:15 by PD4ML.
-
AuthorPosts
-
March 22, 2010 at 07:12#26349
Hi,
how can I make the text of a fieldset legend bold?
fieldset legend{
color: #000000;
font-weight:bold;
}this will print the legend in the correct color but the font-weight seems not to work.
March 22, 2010 at 13:12#27904You defined the style correctly, but the actual version of PD4ML offers limited style flexibility for the legend text (actually you may change only color, text style it inherits from the current context).
We’ve just fixed the problem in our development build. The version will be available for download in few days.
March 22, 2010 at 13:30#27905sounds great…
i suggest there is another issue with fieldsets, if you look at the following
<br /> <div style="font-size: 18pt;font-weight: bold;">text</div><br /> <fieldset><br /> <legend>legend text</legend><br /> palim palim<br /> </fieldset><br /> <br /> <div style="font-size: 18pt;font-weight: bold;">text</div><br /> <fieldset><br /> <legend>legend text</legend><br /> </fieldset><br /> <br /> <div style="font-size: 18pt;font-weight: bold;">text</div><br /> <fieldset><br /> <legend>legend text</legend><br /> palim palim<br /> </fieldset><br /> <br /> <div style="font-size: 18pt;font-weight: bold;">text</div><br /> <fieldset><br /> <legend>legend text</legend><br /> <table><br /> <thead><br /> <tr><br /> <th>heading</th><br /> </tr><br /> </thead><br /> <tbody><br /> <tr><br /> <td>content</td><br /> </tr><br /> </tbody><br /> </table><br /> </fieldset><br /> <br /> <div style="font-size: 18pt;font-weight: bold;">text</div><br /> <fieldset><br /> <legend>legend text</legend><br /> <table><br /> <tr><br /> <td>content</td><br /> </tr><br /> </table><br /> </fieldset><br /> <br /> <div style="font-size: 18pt;font-weight: bold;">text</div><br /> <fieldset><br /> <legend>legend text</legend><br /> <br /> </fieldset><br /> <br /> <div style="font-size: 18pt;font-weight: bold;">text</div><br /> <fieldset><br /> <legend>legend text</legend><br /> <table><br /> <tr><br /> <td></td><br /> </tr><br /> </table><br /> </fieldset><br />
you will see that some of the legends are formatted with the font-size: 18pt from the div above. it seems that this happens if there is no visible output or nbsp inside the fieldsetMarch 22, 2010 at 13:35#27906I’ve just run the test with your sample and got layout identical to a rendered by MS IE. So I would say the issue is solved too.
April 13, 2010 at 13:43April 21, 2010 at 18:37#27908We are going to publish the freshest v360fx1b2 26-27 of April.
-
AuthorPosts
The forum ‘HTML/CSS rendering issues’ is closed to new topics and replies.