1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Flying Saucer: 2 Column Fluid Layout with Floating Menu</title>
<link rel="stylesheet" type="text/css" href="general.css" title="Style" media="screen" />
<style type="text/css" media="screen">
.link {
position: relative;
margin: 0px;
font-size: 12pt;
}
#pageintro {
height: 50px;
margin: 0px;
padding: 0px;
font-family: tahoma, verdana, arial;
font-size: 16pt;
background-color: white;
border: none;
border-bottom: 1px solid #c0c0ff;
}
#fslogo {
margin: 0px;
}
html, body {
padding: 0px;
margin: 0px;
}
body {
background-color: #e1ddd9;
font-size: 12px;
font-family: Verdana, Arial, SunSans-Regular, Sans-Serif;
color: #564b47;
padding: 0px 0px;
margin: 0;
}
#content {
border-color: #564b47;
border-style: solid;
border-width: 1px 0px 1px 0px;
background-color: #fff;
}
#content #menu {
border-left: 1px dotted #000;
border-bottom: 1px dotted #000;
border-right: 1px dotted #000;
float: right;
width: 250px;
background-color: #ff99cc;
padding-bottom: 40px;
margin: 0px 0px 20px 20px;
}
h1 {
font-size: 11px;
text-transform: uppercase;
text-align: right;
color: #564b47;
background-color: #90897a;
padding: 5px 15px;
margin: 0px
}
h2 {
font-size: 14px;
font-weight: bold;
padding-top: 10px;
color: #564b47;
background-color: transparent;
}
p, h2, pre {
padding: 0px 10px 10px 10px;
}
a {
margin-bottom: 10px;
}
#menu {
padding-left: 15px;
padding-bottom: 15px;
}
#menu p {
margin-bottom: 10px;
padding: 0px;
font-size: 12px;
}
#menu br {
margin-bottom: 20px;
font-weight: bold;
}
</style>
</head>
<body>
<div id="pageintro">
<div style="padding: 10px;">
<p class="link right-link" style="margin: 0px; float: right; font: 9pt normal sans-serif"><a href="demoNav:forward">Next Page</a></p>
<p class="link left-link" style="margin: 0px; font: 9pt normal sans-serif"><a href="demoNav:back">Previous Page</a></p>
</div>
</div>
<div id="content">
<div id="menu">
<h2 style="padding-left: 0px;">Pure CSS Layouts</h2>
<p><a href="#">
Menu Item 1
</a></p>
<p><a href="#">
Menu Item 2
</a></p>
<p><a href="#">
Menu Item 3
</a></p>
<p><a href="#">
Menu Item 4
</a></p>
<p><a href="#">
Menu Item 5
</a></p>
</div>
<p id="fslogo" style="padding-left: 10px;">Flying Saucer</p>
<span id="pagebyline" style="padding-left: 10px;">
Pure CSS Layouts
</span>
<br />
<br />
<p><b style="font-size: large">2-column Pure-CSS Fluid Layout with Floating Menu:</b>This sample page, using ideas from <b>Intensiv Station Templates</b> 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.</p>
<p>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.</p>
<p>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.</p>
<pre>
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;
}
</pre>
<p>
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!
</p>
</div>
</body>
</html>
|