Skip to content

Latest commit

 

History

History
59 lines (45 loc) · 2.15 KB

headers.md

File metadata and controls

59 lines (45 loc) · 2.15 KB
layout title section h2
bffos
Headers
building-blocks
<strong>Building Blocks:</strong> markup & examples

Headers

Used for labeling the active view and providing top-level navigation and inputs for the active view.

Characteristics

  • A header is a horizontal bar the full width of the screen, which appears at the top of the screen in most apps.
  • Headers float above content, with the option of flowing with content in special instances, such as in the Browser app.
  • The heading's text provides the name of the current view.
  • The heading may optionally include additional text; for example, in an email app, the number of unread messages may be displayed.
  • Headers may include inputs for navigating and manipulating the current view.
  • Most apps (full-screen games being an obvious exception) have a header.

Default

Example

Headers (Image replacing code) {% include building-blocks/headers_1.html %}

Css link

{% highlight html linenos=table %}{% endhighlight %}

HTML code

{% highlight html linenos=table %}{% include building-blocks/headers_1.html %}{% endhighlight %}

Note:

In order to get a centered title, please link [this script](https://github.com/mozilla-b2g/gaia/blob/master/shared/js/font_size_utils.js) in your HTML document.


Skins

Example

Headers (Image replacing code) {% include building-blocks/headers_2.html %}

Css link

{% highlight html linenos=table %}{% endhighlight %}

HTML code

{% highlight html linenos=table %}
{% include building-blocks/headers_2.html %}{% endhighlight %}