XHTMLAdpaters not rendering custom attributes...

A

andrew.berman

Hi Everyone,

I'm trying to add the 'margin-top' attribute to the css class for the
body tag - an attribute supported by XHTML-MP, but can't.

I've made a custom Style class which inherits from Style, registered
the custom style attributes and passed it into the
writer.SetBodyStyle(style) method. This happens in the render method
of my CustomXhtmlPageadapter, which inherits from XhtmlPageAdapter.

All the attributes from the inherited Style class end up in the css
class but not the custom attributes. Using a decompiler (new best
friend), i've found that the internal class, XhtmlStyleClass ONLY
builds the base class attributes, never any custom ones. What can i
do? This is driving me nuts.

Thanks in advance

Andrew
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,286
Latest member
ChristieSo

Latest Threads

Top