Login  Register

New button: Subheader

Posted by Jim Westergren on Feb 04, 2011; 2:16pm
URL: https://support.nabble.com/New-button-Subheader-tp5992711.html

When writing in the blog or forum app I normally use subheaders but that is not working so well in Nabble.

Example:

---

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent arcu magna, dictum non porta eu, pellentesque ut velit. Praesent consequat sapien at nisi ultrices eu consequat augue fringilla.

Here comes a subheader

Phasellus iaculis ornare felis a mollis. Phasellus tempor mauris ac diam vulputate bibendum. Nullam dolor elit, tincidunt id blandit vel, faucibus eu metus.

---

In the above example I am using the bold button. I would like a subheader button which would produce this result:

---

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent arcu magna, dictum non porta eu, pellentesque ut velit. Praesent consequat sapien at nisi ultrices eu consequat augue fringilla.

Here comes a subheader

Phasellus iaculis ornare felis a mollis. Phasellus tempor mauris ac diam vulputate bibendum. Nullam dolor elit, tincidunt id blandit vel, faucibus eu metus.

---

Note the use of the h2 element with a margin-bottom:-10px for good SEO, usability and readability. If it is possible the button could be skipped (less clutter) and instead some regex with preg_replace being used that automatically replaced bold on a single line sourrounded by line breaks into the above h2 instead.

Owner of the free website service N.nu