Next Page

Previous Page

Flying Saucer

Pure CSS Layouts

2-column Pure-CSS Fluid Layout with Floating Menu:This sample page, using ideas from Intensiv Station Templates at http://www.intensivstation.ch, shows how to create a "two-column" layout with a floating menu, using just CSS. This is a fluid layout with content and floating menu. The menu is a block within the content that is floated right and given a fixed width and some padding. The "menu" is also given a different color to highlight it.

As you adjust the size of the containing panel (say, the browser), the page will "reflow" to accomodate. Note in this example the layout will break because of "pre" block below will not overflow nicely--but holds up pretty well till you reduce beyond the minimum necessary for the preserved formatting.

A limitation with this layout is that we can't force the "content" section to be a minimum size (like % of viewport). It will grow to the size necessary to contain the content you give it.

            body {
            background-color: #e1ddd9;
            font-size: 12px;
            font-family: Verdana;
            color: #564b47;
            padding: 0px 20px;
            margin: 0px;
            }

            #content {
            border: 1px solid #564b47;
            background-color: #fff;
            }

            #content #menu {
            border-left: 1px dotted #000;
            border-bottom: 1px dotted #000;
            float: right;
            width: 250px;
            background-color: #ff99cc;
            margin: 0px 0px 20px 20px;
            }

Por efika lingvoinstruado Plurlingveco La Esperantokomunumo estas? Homa emancipigxo projekto por ebligi al cxiu homo partopreni kiel individuo en la. Por la provizo de tiu sxanco Lingvaj rajtoj La malegala disdivido de. Kies parolantoj estas senescepte du aux plurlingvaj Cxiu komunumano akceptis la taskon lerni. En kursoj por la lingva! Grandan diversecon de lingvoj en la mondo kiel baron al komunikado!