<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wikidot="http://www.wikidot.com/rss-namespace">

	<channel>
		<title>The Wiki Madman - July 22 2007</title>
		<link>http://community.wikidot.com/forum/t-14571/the-wiki-madman-july-22-2007</link>
		<description>Posts in the discussion thread &quot;The Wiki Madman - July 22 2007&quot; - Harry Potter, pbgone</description>
				<copyright></copyright>
		<lastBuildDate>Mon, 13 Feb 2012 22:03:39 +0000</lastBuildDate>
		
					<item>
				<guid>http://community.wikidot.com/forum/t-14571#post-36378</guid>
				<title>The Wiki Madman - July 22 2007</title>
				<link>http://community.wikidot.com/forum/t-14571/the-wiki-madman-july-22-2007#post-36378</link>
				<description></description>
				<pubDate>Sun, 22 Jul 2007 16:16:23 +0000</pubDate>
				<wikidot:authorName>hartnell</wikidot:authorName>				<wikidot:authorUserId>10978</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <h3><span>Harry Potter</span></h3> <p>The new book is out and I had planned to drop everything for just long enough to add the new information to <a href="http://harrypotter.wikidot.com">http://harrypotter.wikidot.com</a> . Unfortunately, It's going to take too long. So I'm back. :)</p> <h3><span>pbgone</span></h3> <p>In the time that I first mentioned p-b-gone in The Wiki Madman, I changed it's name to pbgone. Well, what is pbgone? It's a CSS class with a very specific purpose. Some of you adept in CSS will know what this does as soon as you see it. For those who don't, don't worry, I will explain all over the next couple of issues. First, here's pbgone itself:</p> <div class="code"> <div class="hl-main"> <pre> <span class="hl-identifier">.pbgone</span><span class="hl-code"> </span><span class="hl-identifier">p</span><span class="hl-code"> </span><span class="hl-brackets">{</span><span class="hl-code"> </span><span class="hl-reserved">padding:</span><span class="hl-number">0</span><span class="hl-string">px</span><span class="hl-code">; </span><span class="hl-reserved">margin:</span><span class="hl-number">0</span><span class="hl-string">px</span><span class="hl-code">; </span><span class="hl-brackets">}</span> </pre></div> </div> <p>What pbgone does is nullify the effect of the <tt>&lt;p&gt;</tt> tag wikidot automatically puts around the text inside of <tt>[[div]]</tt>s. I know what you're thinking, you're thinking WTF? But hold on, pbgone helps you make things like this :</p> <div style="background-color:#EEE;border:1px solid #000;width:200px;"> <div class="pbgone" style="background-color:#000;color:#FFF;font-weight:bold;padding:5px;"> <p>Infobox Header</p> </div> <div style="padding:5px"> <p>content<br /> content<br /> content<br /> content</p> </div> </div> <p>The secret is pbgone. Without pbgone, it looks like this :</p> <div style="background-color:#EEE;border:1px solid #000;width:200px;"> <div style="background-color:#000;color:#FFF;font-weight:bold;padding:5px;"> <p>Infobox Header</p> </div> <div style="padding:5px"> <p>content<br /> content<br /> content<br /> content</p> </div> </div> <p>The difference is that in the second infobox, the properties of the <tt>&lt;p&gt;</tt> in the title box are preserved, making it impossible to make it nice and neat.</p> <p>Sorry to make this so short, in the next issue of The Wiki Madman, more on infoboxes, pbgone, etc.</p> <p>Here's the code for the infobox :</p> <p>[[div style="background-color:#EEE;border:1px solid #000;width:200px;"]]<br /> [[div class="pbgone" style="background-color:#000;color:#FFF;font-weight:bold;padding:5px;"]]<br /> Infobox Header<br /> [[/div]]<br /> [[div style="padding:5px"]]<br /> content<br /> content<br /> content<br /> content<br /> [[/div]]<br /> [[/div]]</p> <p><strong>And remember, pbgone itself needs to go in the CSS of your custom theme. If you want to use pbgone and still use a standard theme, base your custom theme off the one you want and only change it by inserting pbgone.</strong> (emphasis Phil's) :)</p> <hr /> <p>—hartnell</p> 
				 	]]>
				</content:encoded>							</item>
				</channel>
</rss>
