I have a html page that has thumbnail.hover enabled but when I include that html to confluence, that property is lost and some other styling related to the table rows.
Is it possible to create a user defined macro as a wrapper around the include html macro to include the css of my choice?
or any other way to keep the formatting as it is in the source html file.
Yes you could do that. But let's back up to what exactly the end goal is. For example, are you only wanting to do this for one table, or multiple?
I basically want to include a html page and apply the stylesheet to all the tables that page contains.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Then yes, a user macro that basically sets all of your conditions/parameters is the solution. You can have the macro either call a stylesheet or included the code in the macro. If there is overlap in the definitions, you may need to set a class on the iframe.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Do you have an example to share... My html and macro writing skills are very limited.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I wrote an article on how do to do this: Getting Started with User Macros - Writing a Wrapper Macro
Take a look to see if this would be doable, and we can go from here. ;-)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.