|
525
|
1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> |
|
|
2 |
<html> |
|
|
3 |
<head> |
|
|
4 |
<meta http-equiv="content-type" content="text/html; charset=utf-8"> |
|
|
5 |
<title>YUI 3.x: CSS Grids Fluid Example</title> |
|
|
6 |
<link rel="stylesheet" href="../../build/cssreset/cssreset.css" type="text/css"> |
|
|
7 |
<link rel="stylesheet" href="../../build/cssfonts/cssfonts.css" type="text/css"> |
|
|
8 |
<link rel="stylesheet" href="../../build/cssgrids/cssgrids.css" type="text/css"> |
|
|
9 |
<script src="../../build/yui/yui-min.js"></script> |
|
|
10 |
<style> |
|
|
11 |
/* everything below is custom styling to demonstrate how to create a page layout using yui grid units */ |
|
|
12 |
|
|
|
13 |
/* 3 column fluid layout (either side column is optional, just omit the layout padding) */ |
|
|
14 |
#layout { |
|
|
15 |
padding-left:300px; /* "left col" width */ |
|
|
16 |
padding-right:150px; /* "right col" width */ |
|
|
17 |
} |
|
|
18 |
|
|
|
19 |
#nav { |
|
|
20 |
margin-left:-300px; /* "left col" width */ |
|
|
21 |
width:300px; |
|
|
22 |
} |
|
|
23 |
|
|
|
24 |
#extra { |
|
|
25 |
width:150px; |
|
|
26 |
margin-right:-150px; /* "right col" width */ |
|
|
27 |
} |
|
|
28 |
|
|
|
29 |
#main { |
|
|
30 |
width:100%; |
|
|
31 |
} |
|
|
32 |
|
|
|
33 |
/* arbitrary content styling */ |
|
|
34 |
#hd, #nav .content, #main .content, #extra .content, #ft { |
|
|
35 |
border: 5px solid #ccc; |
|
|
36 |
height: 400px; |
|
|
37 |
} |
|
|
38 |
|
|
|
39 |
#hd, #ft { |
|
|
40 |
height: 40px; |
|
|
41 |
} |
|
|
42 |
</style> |
|
|
43 |
|
|
|
44 |
</head> |
|
|
45 |
<body> |
|
|
46 |
<div id="hd"> |
|
|
47 |
<h1>Fluid Layout Template</h1> |
|
|
48 |
</div> |
|
|
49 |
|
|
|
50 |
<div class="yui3-g" id="layout"> |
|
|
51 |
<div class="yui3-u" id="nav"> |
|
|
52 |
<div class="content"></div> |
|
|
53 |
</div> |
|
|
54 |
|
|
|
55 |
<div class="yui3-u" id="main"> |
|
|
56 |
<div class="content"></div> |
|
|
57 |
</div> |
|
|
58 |
|
|
|
59 |
<div class="yui3-u" id="extra"> |
|
|
60 |
<div class="content"></div> |
|
|
61 |
</div> |
|
|
62 |
</div> |
|
|
63 |
|
|
|
64 |
<div id="ft"></div> |
|
|
65 |
</body> |
|
|
66 |
</html> |
|
|
67 |
|
|
|
68 |
|
|
|
69 |
<script> |
|
|
70 |
YUI.Env.Tests = { |
|
|
71 |
examples: [], |
|
|
72 |
project: '../assets', |
|
|
73 |
assets: '../assets/cssgrids', |
|
|
74 |
name: 'cssgrids-fluid', |
|
|
75 |
title: 'Fluid Width Page Layout', |
|
|
76 |
newWindow: '', |
|
|
77 |
auto: false |
|
|
78 |
}; |
|
|
79 |
YUI.Env.Tests.examples.push('cssgrids-units'); |
|
|
80 |
YUI.Env.Tests.examples.push('cssgrids-fixed'); |
|
|
81 |
YUI.Env.Tests.examples.push('cssgrids-fluid'); |
|
|
82 |
YUI.Env.Tests.examples.push('cssgrids-align'); |
|
|
83 |
YUI.Env.Tests.examples.push('cssgrids-magazine'); |
|
|
84 |
YUI.Env.Tests.examples.push('menunav-leftnav'); |
|
|
85 |
YUI.Env.Tests.examples.push('node-menunav-2'); |
|
|
86 |
YUI.Env.Tests.examples.push('node-menunav-3'); |
|
|
87 |
YUI.Env.Tests.examples.push('node-menunav-4'); |
|
|
88 |
YUI.Env.Tests.examples.push('node-menunav-5'); |
|
|
89 |
YUI.Env.Tests.examples.push('node-menunav-6'); |
|
|
90 |
YUI.Env.Tests.examples.push('node-menunav-7'); |
|
|
91 |
|
|
|
92 |
</script> |
|
|
93 |
<script src="../assets/yui/test-runner.js"></script> |
|
|
94 |
|