|
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 Fixed 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 |
|
|
|
11 |
<style> |
|
|
12 |
/* everything below is custom styling to demonstrate how to create a page layout using yui grid units */ |
|
|
13 |
#doc { |
|
|
14 |
margin:auto; /* center in viewport */ |
|
|
15 |
width: 970px; /* fix page width */ |
|
|
16 |
} |
|
|
17 |
|
|
|
18 |
/* arbitrary content styling */ |
|
|
19 |
#hd, .yui3-g .content, #ft { |
|
|
20 |
border: 5px solid #ccc; |
|
|
21 |
height: 400px; |
|
|
22 |
margin-right: 10px; /* gutter between columns */ |
|
|
23 |
} |
|
|
24 |
|
|
|
25 |
#hd, #ft { |
|
|
26 |
height: 40px; |
|
|
27 |
} |
|
|
28 |
</style> |
|
|
29 |
|
|
|
30 |
</head> |
|
|
31 |
<body id="doc"> |
|
|
32 |
<div id="hd"> |
|
|
33 |
<h1>Fixed Layout Template</h1> |
|
|
34 |
</div> |
|
|
35 |
|
|
|
36 |
<div class="yui3-g"> |
|
|
37 |
<div class="yui3-u-1-5"> |
|
|
38 |
<div class="content"></div> |
|
|
39 |
</div> |
|
|
40 |
|
|
|
41 |
<div class="yui3-u-2-5"> |
|
|
42 |
<div class="content"></div> |
|
|
43 |
</div> |
|
|
44 |
|
|
|
45 |
<div class="yui3-u-2-5"> |
|
|
46 |
<div class="content"></div> |
|
|
47 |
</div> |
|
|
48 |
</div> |
|
|
49 |
|
|
|
50 |
<div id="ft"></div> |
|
|
51 |
</body> |
|
|
52 |
</html> |
|
|
53 |
|
|
|
54 |
|
|
|
55 |
<script> |
|
|
56 |
YUI.Env.Tests = { |
|
|
57 |
examples: [], |
|
|
58 |
project: '../assets', |
|
|
59 |
assets: '../assets/cssgrids', |
|
|
60 |
name: 'cssgrids-fixed', |
|
|
61 |
title: 'Fixed Width Page Layout', |
|
|
62 |
newWindow: '', |
|
|
63 |
auto: false |
|
|
64 |
}; |
|
|
65 |
YUI.Env.Tests.examples.push('cssgrids-units'); |
|
|
66 |
YUI.Env.Tests.examples.push('cssgrids-fixed'); |
|
|
67 |
YUI.Env.Tests.examples.push('cssgrids-fluid'); |
|
|
68 |
YUI.Env.Tests.examples.push('cssgrids-align'); |
|
|
69 |
YUI.Env.Tests.examples.push('cssgrids-magazine'); |
|
|
70 |
YUI.Env.Tests.examples.push('menunav-leftnav'); |
|
|
71 |
YUI.Env.Tests.examples.push('node-menunav-2'); |
|
|
72 |
YUI.Env.Tests.examples.push('node-menunav-3'); |
|
|
73 |
YUI.Env.Tests.examples.push('node-menunav-4'); |
|
|
74 |
YUI.Env.Tests.examples.push('node-menunav-5'); |
|
|
75 |
YUI.Env.Tests.examples.push('node-menunav-6'); |
|
|
76 |
YUI.Env.Tests.examples.push('node-menunav-7'); |
|
|
77 |
|
|
|
78 |
</script> |
|
|
79 |
<script src="../assets/yui/test-runner.js"></script> |
|
|
80 |
|