1. Home
  2. Docs
  3. HTML an AUI Toolkit for Confluence Manual
  4. HTML Macros
  5. HTML Html

HTML Html

Due to the risk of breaking your page with these macros, they are disabled by default when the HTK plugin is installed. The administrator has to enable them manually in the Add-on Manager.

Description

The HTML Html macro adds a <div> element on your page that is meant to host your indivudal Html code. It’s body is not formatted but interpreted as you enter it.

These macros require good knowledge of HTML in order to know what you do when you add them.

Adding the Macro

Edit your page.

Select “+” => Other macros

Type in “html” in the Search box

Select the “HTML Html” macro

Macro Options

Element ID

If you need to address your element via an ID, e.g. in a stylesheet or via Javascript, enter the ID here. Make sure, the ID is unique on your page.

CSS Classes

If you need to style your element via an external style sheet, enter all class names here, separated by a blank.

Inline Styles

You can add inline styles to your element here, ending with a semicolon, e.g. “color:#ffffff;background-color:#000099;”.

Tooltip Title

Enter a simple text here that will popup as a tooltip when the mouse is hovered over the element.

Custom Attributes

You can enter fully specified custom attributes here separated by blanks, e.g.: data-animal=”cat” data-color=”red”.

Strip Body Wrapper

By default, Confluence will wrap any macro body content into a <p> tag. For custom HTLM, this might lead to unwanted results. Check this option to remove the Confluence <p> wrapper.

Body

You can put other elements into the body.

 

Was this article helpful to you? Yes No

Leave a Reply

Your email address will not be published. Required fields are marked *