How to build a YAML fullscreen layout

How to …

Yaml provides a nice solution for column layout, center layout and fullscreen layout.

The last team-noir project was a fullscreen-design for our customer. I show you how easy it is to code such a template:

Dirk Jesse wrote a very good documentation:

Variations of the Markup

As demonstrated, the two CSS classes  .page_margins and .page control the basic appearance of the layout, by setting the total width as well as margins, borders, or backgrounds if necessary.

In the source code described above, the outermost DIV container .page_margins surrounds all the other elements of the webpage. This results in a layout which in its simplest form is a rectangular box against the background of the <body> element. This effect is not always desirable.

So the main ascpect is to order your source by:

<div id="header / col1 / ...">
    <div class="page_margins">
      <div class="page">
         ...
      </div>
    </div>
</div> 

modify the basemod.css:

/* (en) Centering layout in old IE-versions */
 body { text-align:center; }
 .page_margins { text-align:left; margin:0 auto; }

 /* (en) Layout:width, background, borders */
 .page_margins { width: 100%; background: transparent; }

Example on Yaml.de, and here

So as you can see – really easy coding -> thank’s to Dirk Jesse!

Related posts:

  1. How to … center a YAML Layout
  2. CSS: center background image in Firefox & Co.
  3. Using YAML and be fully variable
  4. How to … integrate a YAML Menu to TYPO3
  5. How to code a jQuery slider menu
  6. CSS floating problems
  7. mixed TypoScript Snippets Vol. 2
  8. How to use transparency with different Browsers

0 Responses to “How to build a YAML fullscreen layout”


  1. No Comments

Leave a Reply