tag:blogger.com,1999:blog-16217833.post-45836055493675988532007-03-05T19:56:00.000+01:002007-03-24T15:14:52.223+01:00Creating a Blogger Template (3)<div style="margin: 30px 0 20px 20px"><span style="color: #6699FF; font-size: .9em;">... a</span> <span style="color: #f67c2a; font-size: 6em;">f</span><span style="color: #6699FF; font-size: 4em;">l</span><span style="color: #f67c2a; font-size: 3em;">u</span><span style="color: #6699FF; font-size: 7em;">i</span><span style="color: #f67c2a; font-size: 3em;">d</span> <span style="color: #6699FF; font-size: 1.1em;">design</span> <span style="color: #f67c2a; font-size: .9em;">...</span></div><br /><div style="border: 2px solid #6699FF; padding: 20px;">This is the <span style="font-style:italic; font-weight:bold;">third</span> part of the <span style="color: #f67c2a; font-weight:bold;">Creating A Blogger Template</span> series:<br /><br /><a href="http://thrbrtemplates.blogspot.com/2007/03/creating-blogger-template.html">Creating a Blogger Template (1) - from scratch</a><br /><a href="http://thrbrtemplates.blogspot.com/2007/03/creating-blogger-template-2.html">Creating a Blogger Template (2) - the layout</a><br /><a href="http://thrbrtemplates.blogspot.com/2007/03/creating-blogger-template-3.html">Creating a Blogger Template (3) - a fluid design</a><br /><a href="http://thrbrtemplates.blogspot.com/2007/03/creating-blogger-template-4.html">Creating a Blogger Template (4) - variables</a></div><br />"<span style="font-style:italic;">Yeah, right, of course ...</span>" (you tell me) "<span style="font-style:italic;">That's all really nice and all ... but where is my <span style="font-weight:bold;">flexible</span> layout? I want it <span style="font-size: .8em;">fluid</span> ... <span style="font-size: 1em;">fluid</span> ... <span style="font-size: 1.2em;">fluid</span> ... .</span>"<br /><br /><div style="border: 2px solid #F0F0F0; padding: 10px;">Let's use that last <span style="font-weight:bold;">Main - Column - Column</span> page:<br /><br /><div class="shadow" style="padding:0 2px 2px 0"><a href="http://thurtest9.blogspot.com/" title="see the working Main-Column-Column" ><img src="http://www.thurbroeders.nl/images/200703/p9-mss.jpg" style="top:-7px;left:-7px" alt="See the working Main-Column-Column" /></a></div><div style="clear: both;"></div><br /><span style="color: #6699FF; font-size: .8em;">[ click image to view page ]</span></div><br />The following layout styling was implemented:<br />( see <a href="http://thrbrtemplates.blogspot.com/2007/03/creating-blogger-template-2.html">Creating a Blogger Template (2)</a> )<br /><br /><div style="background-color: #F0F0F0; padding: 20px;">body {<br /> <span style="font-weight:bold;">margin: 0px;</span><br /> <span style="font-weight:bold;">padding: 0px;</span><br /> }<br /><br />#container {<br /> <span style="font-weight:bold;">width: 960px;</span><br /> <span style="font-weight:bold;">margin: 10px auto;</span><br /> <span style="font-weight:bold;">padding: 0 10px;</span><br /> }<br /><br />#header {<br /> <span style="font-weight:bold;">padding: 10px;</span><br /> }<br /><br />#main {<br /> <span style="font-weight:bold;">width: 560px;</span><br /> <span style="font-weight:bold;">float: left;</span><br /> }<br /><br />#sidebar1, #sidebar2 {<br /> <span style="font-weight:bold;">width: 190px;</span><br /> <span style="font-weight:bold;">float: left;</span><br /> <span style="font-weight:bold;">margin-left: 10px;</span><br /> }<br /><br />#footer {<br /> <span style="font-weight:bold;">padding: 10px;</span><br /> <span style="font-weight:bold;">clear: both;</span><br /> }</div><br />To change this fixed layout into a flexible one (all columns fluid) only 3 attributes have to be altered:<br /><br /><div style="background-color: #F0F0F0; padding: 20px;">body {<br /> <span style="font-weight:bold;">margin: 0px;</span><br /> <span style="font-weight:bold;">padding: 0px;</span><br /> }<br /><br />#container {<br /> <span style="font-weight:bold; color: #f67c2a;">width: 96%;</span><br /> <span style="font-weight:bold;">margin: 10px auto;</span><br /> <span style="font-weight:bold;">padding: 0 10px;</span><br /> }<br /><br />#header {<br /> <span style="font-weight:bold;">padding: 10px;</span><br /> }<br /><br />#main {<br /> <span style="font-weight:bold; color: #f67c2a;">width: 48%;</span><br /> <span style="font-weight:bold;">float: left;</span><br /> }<br /><br />#sidebar1, #sidebar2 {<br /> <span style="font-weight:bold; color: #f67c2a;">width: 24%;</span><br /> <span style="font-weight:bold;">float: left;</span><br /> <span style="font-weight:bold;">margin-left: 10px;</span><br /> }<br /><br />#footer {<br /> <span style="font-weight:bold;">padding: 10px;</span><br /> <span style="font-weight:bold;">clear: both;</span><br /> }</div><br /><div style="border: 2px solid #F0F0F0; padding: 10px;">Thus: <span style="font-weight:bold;">Main - Column - Column</span> all <span style="font-weight:bold;">flexible</span> page !!!<br /><br /><div class="shadow" style="padding:0 2px 2px 0"><a href="http://www.thurbroeders.nl/thurstemplates/tt9mss-fluid.htm" title="see that same working Main-Column-Column but all fluid" ><img src="http://www.thurbroeders.nl/images/200703/tt9mms-fluid.jpg" style="top:-7px;left:-7px" alt="See the working Main-Column-Column fluid" /></a></div><div style="clear: both;"></div><br /><span style="color: #6699FF; font-size: .8em;">[ click image to view page ]</span></div><br /><div style="border: 2px solid #F0F0F0; padding: 10px;">Again this is merely to show how it's done.<br />Once the structure is created the fun part begins ... .<br />Remember: all examples in the last 3 posts are (apart from the layout CSS as added in CaBT 2 & 3) still <span style="font-weight:bold;">not</span> styled at all.<br />Everything is pure Browser Default!</div>thurhttp://www.blogger.com/profile/11325683639754912267noreply@blogger.com