About
Heading formatting is an HTML format used to create Heading/Title elements for specific sections - (Demo).
Specification
Configuration
Description
line
align
Alignment.
| Value | Description |
|---|---|
| left | Left aligned |
| center | Center aligned |
| right | Right aligned |
size
Size.
| Value | Description | Preview |
|---|---|---|
| default | Size will match the heading tag used on the w-title element. Or the same size with h2 if a non-heading tag is used. |
Heading Size
|
| h1 | Size like heading h1 |
Heading Size
|
| h2 | Size like heading h2 |
Heading Size
|
| h3 | Size like heading h3 |
Heading Size
|
| h4 | Size like heading h4 |
Heading Size
|
| normal | Normal size |
Heading Size
|
Usage
-
Define the HTML Tag with the following format:
<div class='w-heading'> <h2 class='w-title'> Heading Title </h2> <div class='w-sub'> Sub or description </div> </div>
Heading Title
Sub or description
-
Add the desired configuration by adding the attribute
data-configuration-name='Value' to the element with class w-heading.
Example of adding configuration:<div class='w-heading' data-align='center' data-line='blue'> <h2 class='w-title'> Heading Title </h2> <div class='w-sub'> Sub or description </div> </div>
Heading Title
Sub or description
This formatting also allows you to define just one element (title without sub or vice versa).
<div class='w-heading'> <h2 class='w-title'> Title Without Sub </h2> </div> <br/> <br/> <div class='w-heading'> <div class='w-sub'> Sub Without Title </div> </div>
Title Without Sub
Sub Without Title
Others
Quick Writing Format
Headings can also be written as follows:
Note: div can be any element, such as h2, h3, h4, and so on.
<div class='w-heading'>
Title
</div>
Title
Note: div can be any element, such as h2, h3, h4, and so on.