{"id":156,"date":"2004-10-13T22:33:05","date_gmt":"2004-10-13T19:33:05","guid":{"rendered":"http:\/\/www.all-things-me.net\/blog\/archives\/2004\/10\/13\/layout-worries-revisited"},"modified":"2010-08-12T02:05:10","modified_gmt":"2010-08-11T23:05:10","slug":"layout-worries-revisited","status":"publish","type":"post","link":"https:\/\/www.all-things-me.net\/blog\/2004\/10\/13\/layout-worries-revisited","title":{"rendered":"Layout worries revisited: The solution"},"content":{"rendered":"<p>First of all, Happy Mulder&#8217;s Birthday!! He&#8217;s 43 today. Chris Carter, whose b&#8217;day it <i>really<\/i> is, is 48.<\/p>\n<p>Now that I&#8217;m going crazy with formatting my code snippets and doing tiny icons to appear in the bottom right corner of the snippet box, I&#8217;m going to post a summary on the layout trick I learned in an article at <a href=\"http:\/\/www.alistapart.com\/articles\/negativemargins\/\">A List Apart<\/a>. The basic structure of a page is<\/p>\n<blockquote class=\"html\"><p>\n&lt;div id=&quot;wrapper&quot;&gt;<br \/>\n&nbsp;&nbsp;&lt;div id=&quot;container&quot;&gt;<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&lt;div id=&quot;content&quot;&gt;<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&lt;\/div&gt;<br \/>\n&nbsp;&nbsp;&lt;\/div&gt;<br \/>\n&nbsp;&nbsp;&lt;div id=&quot;sidebar&quot;&gt;&lt;\/div&gt;<br \/>\n&nbsp;&nbsp;&lt;div id=&quot;clear&quot;&gt;&amp;nbsp;&lt;\/div&gt;<br \/>\n&lt;\/div&gt;<br \/>\n&lt;div id=&quot;footer&quot;&gt;&lt;\/div&gt;\n<\/p><\/blockquote>\n<p>I.e. container, sidebar and clear-div go inside the wrapper. Clear-div makes sure the footer doesn&#8217;t clash with the menu.<br \/>\nThen, in the css part you specify<\/p>\n<blockquote class=\"css\"><p>\n#container {<br \/>\n&nbsp;&nbsp;width: 100%;<br \/>\n&nbsp;&nbsp;float: left;<br \/>\n&nbsp;&nbsp;margin-right: &#8211;<strong>menu width<\/strong>px;<br \/>\n}<br \/>\n#content{<br \/>\n&nbsp;&nbsp;margin-right: <strong>menu width<\/strong>px;<br \/>\n}<br \/>\n#sidebar {<br \/>\n&nbsp;&nbsp;width: <strong>menu width<\/strong>px;<br \/>\n&nbsp;&nbsp;float: right;<br \/>\n}<br \/>\n#clear{<br \/>\n&nbsp;&nbsp;height: 0;<br \/>\n&nbsp;&nbsp;clear: both;<br \/>\n}\n<\/p><\/blockquote>\n<p>This places the menu on the right hand side.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>First of all, Happy Mulder&#8217;s Birthday!! He&#8217;s 43 today. Chris Carter, whose b&#8217;day it really is, is 48. Now that I&#8217;m going crazy with formatting my code snippets and doing tiny icons to appear in the bottom right corner of the snippet box, I&#8217;m going to post a summary on the layout trick I learned [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,15],"tags":[],"class_list":["post-156","post","type-post","status-publish","format-standard","hentry","category-site","category-tweaks"],"_links":{"self":[{"href":"https:\/\/www.all-things-me.net\/blog\/wp-json\/wp\/v2\/posts\/156","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.all-things-me.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.all-things-me.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.all-things-me.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.all-things-me.net\/blog\/wp-json\/wp\/v2\/comments?post=156"}],"version-history":[{"count":1,"href":"https:\/\/www.all-things-me.net\/blog\/wp-json\/wp\/v2\/posts\/156\/revisions"}],"predecessor-version":[{"id":1456,"href":"https:\/\/www.all-things-me.net\/blog\/wp-json\/wp\/v2\/posts\/156\/revisions\/1456"}],"wp:attachment":[{"href":"https:\/\/www.all-things-me.net\/blog\/wp-json\/wp\/v2\/media?parent=156"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.all-things-me.net\/blog\/wp-json\/wp\/v2\/categories?post=156"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.all-things-me.net\/blog\/wp-json\/wp\/v2\/tags?post=156"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}