CSS classes rather than inline styles

Page 1 of 1 (2 items)
This post has 1 Reply | 0 Followers

Posts 13368
Forum MVP
Mark Barnes | Forum Activity | Posted: Thu, Sep 20 2012 3:20 AM

One of the big problems with integrating the API onto a live site is the fact that there are no CSS classes with the html text, so we're left unable to format individual elements (having a fixed font-size is particularly problematic). It would be an enormous help if simple CSS classes could be applied, particularly to paragraph elements.

It doesn't need to be complex, but if, for example, every instance of  style="font-size:12pt; margin:0pt; text-indent:18pt;" could optionally be replaced with class="regular-size regular-margin indent-on", or even just class="indented" that would us much more control over appearance.

Turning off paragraph styling is no real help, because you need margin:0 for poetry

Posts 1
David Gamba | Forum Activity | Replied: Sat, Sep 7 2013 9:47 PM

+1 on this request. This is still an outstanding issue.

An alternative solution would be to have a plain text json response with some tags we could use to format the output.

Page 1 of 1 (2 items) | RSS