Help with external css [message #559501] |
Thu, 16 September 2010 20:55 |
Marty Jones Messages: 54 Registered: July 2009 |
Member |
|
|
I have a report that has a text field in it that contains html markup. I am trying to find a way so that the report will include some styles needed for unordered lists (<ul>). The only way I have found to make it work is to create a custom style that is basically empty and check the checkbox stating that I want to include the css file at view time and then I specify a external uri to my webserver. The problem is that I don't want to specify a absolute uri to the style sheet.
Is there a way that I can define a inline css style for <ul> within the report so that I don't have to specify a external uri?
I am using release 2.3.2 .
Thanks,
Marty
[Updated on: Thu, 16 September 2010 21:02] Report message to a moderator
|
|
|
Re: external css [message #559694 is a reply to message #559501] |
Fri, 17 September 2010 15:25 |
|
Marty,
What style properties do you want to set?
Try adding a text element with a inline like:
<ul style="margin-left: 0em; padding-left: 1em;
"><li style="margin-left:
-1px">TEXT1</li><li>TEXT2</li><li>TEXT3</li></ul >
Note that not all inline style properties will be supported in pdf output.
Jason
On 9/16/2010 4:55 PM, Marty Jones wrote:
> I have a report that has a text field in it that contains html markup.
> I am trying to find a way so that the report will include some styles
> needed for unordered lists (<ul>). The only way I have found to make it
> work is to create a custom style that is basically empty and check the
> checkbox stating that I want to include the css file at view time and
> then I specify a external uri to my webserver. The problem is that I
> don't want to specify a absolute uri to the style sheet.
>
> Is there a way that I can define a inline css style for <ul> within the
> report so that I don't have to specify a external uri?
>
> Thanks,
>
> Marty
|
|
|
Re: external css [message #559721 is a reply to message #559694] |
Fri, 17 September 2010 16:54 |
Marty Jones Messages: 54 Registered: July 2009 |
Member |
|
|
Jason,
The problem is that I am pulling text from a db that has html markup within it so there will be <p> and <ul> elements inside of it. What I want to do is have the html version of the report use a style sheet for the <ul> elements within the text field that I have marked as having html content inside of it.
I can get it to work by passing a absolute url to the external uri on a custom style element that I added to the report. I would rather that the style be somehow associated inside the report itself and not have to do a external call to a static uri.
Can this be done?
[Updated on: Mon, 20 September 2010 11:53] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03469 seconds