I would say this layout style sheet is the most challenging. First of all, I just want this WordPress theme to have a basic layout with fixed width consists of two columns, one for posts and another one for sidebar. On top of the content is header and of course footer at the bottom. Structure region is the major layout design of the division in this site. It follows negative margin technique. Tag canvas is getting ready for html5 standard. Some of the latest browsers: Firefox 3, Opera 9.5, Safari 4.0 and Chrome 2.0, while I writing this, support canvas. An image will be display at canvas using Processing JavaScript library.
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
| /* *** Layout *** */ /* This will save you having to declare each div's position as 'relative' and allows you to absolutely position elements inside them div { position:relative; } */ /* Begin Structure */ div#wrapper { width: 760px; margin: 0 auto; } div#main { padding: 10px; overflow: hidden; } div#container { float: left; width: 100%; } div#content { float: left; width: 450px; } div#sidebar { float: left; width: 210px; margin-left: -250px; padding: 20px; } div#footer { clear: left; width: 100%; } /* End Structure */ /* Begin Header */ canvas#navCanvas { width: 760px; height: 120px; margin-bottom: -120px; } div#header h1 { padding-top: 38px; } div#header p{ padding-bottom: 38px; } /* End Header */ /* Begin NavMenu */ div#navmenu { padding:6px; overflow:auto; height:1%; clear:both; } div#navmenu li { display: inline; } div#navmenu a { text-decoration:none; margin:0 10px; height:23px; line-height:23px; float:left; display:block; } /* End NavMenu */ /* Begin Entry */ div.entry-title { margin: 1em 0 0.5em; } div.entry-content ul li { margin: 0 0 0 1em; } /* End Entry */ /* Begin Comment Form */ div#comments-list, form#commentform { padding: 1em 0 0; } input#author, input#email, input#url, textarea#comment { padding: 0.2em; } input#author, input#email, input#url { width: 50%; } div#comments-list ul li { margin: 0 0 1em; } textarea#comment { height: 15em; margin: 1em 0 0.5em; overflow: auto; width: 75%; } /* End Comment Form */ /* Begin Sidebar */ div#sidebar li { margin: 0 0 2em; } div#sidebar ul ul { margin: 0 0 0 1em; } div#sidebar ul ul li { list-style: none; margin: 0; } div#sidebar ul ul ul { margin: 0 0 0 0.5em; } div#sidebar ul ul ul li { list-style: none; } /* End Sidebar */ /* Begin Search Form */ form#searchform input#s { width: 8em; } form#searchform { margin:0.2em 0 0; } /* End Search Form */ /* From Starkers Theme http://elliotjaystocks.com/starkers/ */ /* Use this br class to clear your floated columns */ br.dirtyLittleTrick { clear: both; display: block; height: 1px; margin: -1px 0 0 0; }
|
References
1 Comment
[...] WordPress Theme Development 12 – Layout Stylesheet [...]