Provides the ability to create pages that don't conform to a layout defined by another template.
There is no built-in layout for contained elements. The
div element creates a view where the elements it contains are arranged using the
tv-position styles. Containing elements are centered by default. The following figure shows the positions inside of the
div element. The
div element should only be used when you can’t use another template to achieve the look you want. The theme for the div template defaults to the system preference.
Elements contained in the same position are arranged from the top of the cell to the bottom, in the same order in which they are specified in the
div element. You can specify a
<background><img /></background> that displays a background image inside of the
div. The background image is top-aligned and is fitted to the size of the
div while keeping the image’s original aspect ratio. Text wrapping inside of the
div only occurs in the