<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>2657 Productions News &#187; CSS</title>
	<atom:link href="http://news.mrdwab.com/category/geekiness/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://news.mrdwab.com</link>
	<description>..:: Whereabouts and Whatabouts of the 2657 World ::..</description>
	<lastBuildDate>Fri, 30 Jul 2010 07:21:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>The awesomeness that is WordPress and child themes</title>
		<link>http://news.mrdwab.com/2010-07-08/the-awesomeness-that-is-wordpress-and-child-themes/</link>
		<comments>http://news.mrdwab.com/2010-07-08/the-awesomeness-that-is-wordpress-and-child-themes/#comments</comments>
		<pubDate>Thu, 08 Jul 2010 16:10:46 +0000</pubDate>
		<dc:creator>Ananda</dc:creator>
				<category><![CDATA[(all categories)]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Geekiness]]></category>
		<category><![CDATA[Website]]></category>
		<category><![CDATA[@font-face]]></category>
		<category><![CDATA[child themes]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[themes]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://news.mrdwab.com/?p=774</guid>
		<description><![CDATA[After a long long long time, I decided to get back into some actual website experimentation. For a while, I was really lazy with my site design and settled on using the Atahualpa theme. This was a great be-lazy theme, but I noticed that while browsing other sites, it often became too obvious which sites [...]


Related posts:<ol><li><a href='http://news.mrdwab.com/2008-06-23/2657-productions-facelift/' rel='bookmark' title='Permanent Link: 2657 Productions is going to get a facelift'>2657 Productions is going to get a facelift</a> <small>I&#8217;ve been trying to keep myself busy recently. As I...</small></li>
<li><a href='http://news.mrdwab.com/2007-03-02/nested-lists-and-css/' rel='bookmark' title='Permanent Link: Nested Lists and CSS'>Nested Lists and CSS</a> <small>I don&#8217;t use lists too often for my own stuff,...</small></li>
<li><a href='http://news.mrdwab.com/2008-06-20/damn-it/' rel='bookmark' title='Permanent Link: DAMN It!'>DAMN It!</a> <small>I was just having some fun at work a couple...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>After a long long long time, I decided to get back into some actual website experimentation. For a while, I was really lazy with my site design and settled on using the <a href="http://wordpress.org/extend/themes/atahualpa" target="_blank">Atahualpa</a> theme. This was a great be-lazy theme, but I noticed that while browsing other sites, it often became too obvious which sites were made using the theme and me, always wanting &#8220;my own thing&#8221; decided that it was time to get my hands at least a little bit dirty again.</p>

<a href='http://news.mrdwab.com/2010-07-08/the-awesomeness-that-is-wordpress-and-child-themes/screen-3/' title='screen-3'><img width="150" height="150" src="http://news.mrdwab.com/wp-content/uploads/2010/07/screen-3-150x150.jpg" class="attachment-thumbnail" alt="screen-3" title="screen-3" /></a>
<a href='http://news.mrdwab.com/2010-07-08/the-awesomeness-that-is-wordpress-and-child-themes/screen-2/' title='screen-2'><img width="150" height="150" src="http://news.mrdwab.com/wp-content/uploads/2010/07/screen-2-150x150.jpg" class="attachment-thumbnail" alt="screen-2" title="screen-2" /></a>
<a href='http://news.mrdwab.com/2010-07-08/the-awesomeness-that-is-wordpress-and-child-themes/screen-1/' title='screen-1'><img width="150" height="150" src="http://news.mrdwab.com/wp-content/uploads/2010/07/screen-1-150x150.jpg" class="attachment-thumbnail" alt="screen-1" title="screen-1" /></a>

<p><span id="more-774"></span></p>
<p>I had posted a little while ago about <a href="http://news.mrdwab.com/2010-05-20/font-experiments/http://news.mrdwab.com/2010-05-20/font-experiments/">my excitement</a> and <a href="http://news.mrdwab.com/2010-05-20/font-experiments-part-2/">my disappointment</a> over the <a href="http://code.google.com/webfonts" target="_blank">Google Font Directory</a> and that had inspired me to look into other ways to get some custom fonts online. <a href="http://www.fontsquirrel.com/fontface/generator" target="_blank">Font Squirrel</a> offered a great free @font-face generator, so I loaded up my <a href="http://thegrumpywriter.wordpress.com">Mr. Grumpy</a> <a href="http://thegrumpywriter.wordpress.com/fonts/">fonts</a> and decided to see what I could do with it.</p>
<p>With my fonts ready, I decided to get back into my own theme design. This time, rather than designing the theme from scratch, I decided to create a child theme for one of the better theme frameworks I found: <a href="http://wordpress.org/extend/themes/thematic" target="_blank">Thematic</a>.</p>
<p>For those of you who don&#8217;t know what a child theme is, think about it this way. WordPress periodically needs to be updated (to fix bugs, add new features, enhance security, and so on). When you host your own WordPress installation, you&#8217;re also tempted (at least nerdy people like me are tempted) to customize the themes they use, and in the past, that often meant making edits to the original theme files. But just as WordPress needs to be periodically updated, so to does its themes (for example, when WordPress added widget support or post thumbnail support, theme modifications were required). When you updated your theme, however, all of your customizations would them be lost. </p>
<p>Child themes solve this problem by letting you use a well-structured theme that is up-to-date with all the  WordPress features you need, creating a new folder in your WordPress themes directory for your child theme, and creating a new theme by doing as little as creating a new stylesheet that imports the styles from your chosen template. If you need to make more significant changes to the parent theme, instead of modifying the actual theme files, you create a &#8220;functions.php&#8221; file in your child theme directory. So, for instance, if you&#8217;ve decided that you don&#8217;t want the &#8220;access&#8221; div that&#8217;s present in the Thematic framework, you can remove it by adding the following to your functions.php file:</p>
<pre class="brush: php;">
// Remove Thematic access
function remove_access() {
remove_action('thematic_header','thematic_access',9);
}
add_action('init','remove_access');
</pre>
<p>Or, if you want to add something to the head of your page (like some extra javascript or something) you can add something like the following:</p>
<pre class="brush: php;">
function yourfunctionname() { ?&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
Your Fancy javascript
&lt;/script&gt;
&lt;?php }
add_action('wp_head', 'yourfunctionname');
</pre>
<p>In the above snippet, the first line starts with naming our function, and ends with { ?> which switches us out of PHP so we can add normal HTML. The last line is where we make the call to the function that we just defined. There are some good instructions at the <a href="http://themeshaper.com/thematic/guide/" target="_blank">Thematic Theme Framework Guide</a> for how to use the different Thematic hooks and filters to create a truly customized site. </p>
<p>As I was making these changes, <a href="http://alistapart.com" target="_blank">A List Apart</a> published <a href="http://www.alistapart.com/articles/supersize-that-background-please/" target="_blank">a great article about full-screen backgrounds</a> and, of course, I had to try it out. But, I wanted to take it a little bit further: make the background change with each page. So, for that, I used <a href="http://ma.tt/scripts/randomimage/" target="_blank">Matt&#8217;s random image script</a> and put that into my stylesheet. This is something I might change though. It seems like referencing the PHP file in the CSS works as I expected with Opera and Firefox (a different background image for each page) but with Chrome, it loads a different backround image only once each session (which is also OK, but not what I was looking for). (From A List Apart, I also borrowed ideas for using CSS transparency and rounded corners, as well as their ideas for applying different CSS rules for different window sizes.) </p>
<p>Here are a few snippets of the CSS customization.</p>
<p>For the transparency and rounded corners for the header area and the main text area:</p>
<pre class="brush: css;">
#branding
{
	margin-top: 20px;
}
#main, #branding
{
	background-color: #F8F8F8;
	border-radius: 12px;
	margin-bottom: 20px;
	-moz-border-radius: 12px;
	-webkit-border-radius: 12px;
	filter: alpha(opacity=90);
	-khtml-opacity: 0.9;
	-moz-opacity: 0.9;
	opacity: 0.9;
}
</pre>
<p>For centering the page if the screen is small and floating the content to the right if the page is wider than 1280 pixels:</p>
<pre class="brush: css;">
@media all and (min-width: 1280px)
{
	#branding, #main
	{
		float: right;
		margin-right: 20px;
	}
}
@media only all and (max-width: 1024px) and (max-height: 768px)
{
	body
	{
		background-size: 1024px 768px;
		-moz-background-size: 1024px 768px;
	}
}
</pre>
<p>For getting a random image each time the page is rotated. Instead of mentioning an image URL like you normally would, you instead mention the rotate image script I referenced earlier.</p>
<pre class="brush: css;">
body
{
	background: #fff url(rotatebg.php) left bottom fixed no-repeat;
	background-size: cover;
	color: #000;
	margin: 0;
	-moz-background-size: cover;
	padding: 0;
}
</pre>
<p>Maybe eventually, when I get around to tweaking this a bit more and testing it in some other browsers (I&#8217;m not even going to bother being nice to Internet Explorer) I&#8217;ll package up the child theme and share it&#8230;.</p>


<p>Related posts:<ol><li><a href='http://news.mrdwab.com/2008-06-23/2657-productions-facelift/' rel='bookmark' title='Permanent Link: 2657 Productions is going to get a facelift'>2657 Productions is going to get a facelift</a> <small>I&#8217;ve been trying to keep myself busy recently. As I...</small></li>
<li><a href='http://news.mrdwab.com/2007-03-02/nested-lists-and-css/' rel='bookmark' title='Permanent Link: Nested Lists and CSS'>Nested Lists and CSS</a> <small>I don&#8217;t use lists too often for my own stuff,...</small></li>
<li><a href='http://news.mrdwab.com/2008-06-20/damn-it/' rel='bookmark' title='Permanent Link: DAMN It!'>DAMN It!</a> <small>I was just having some fun at work a couple...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://news.mrdwab.com/2010-07-08/the-awesomeness-that-is-wordpress-and-child-themes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Font experiments, Part 2</title>
		<link>http://news.mrdwab.com/2010-05-20/font-experiments-part-2/</link>
		<comments>http://news.mrdwab.com/2010-05-20/font-experiments-part-2/#comments</comments>
		<pubDate>Thu, 20 May 2010 11:25:57 +0000</pubDate>
		<dc:creator>Ananda</dc:creator>
				<category><![CDATA[(all categories)]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Geekiness]]></category>
		<category><![CDATA[Website]]></category>
		<category><![CDATA[experiments]]></category>
		<category><![CDATA[fonts]]></category>
		<category><![CDATA[Google]]></category>

		<guid isPermaLink="false">http://news.mrdwab.com/?p=678</guid>
		<description><![CDATA[My initial excitement about the Google Font Directory is a little bit diminished right now. According to the Google Code Blog: The Google Font API hides a lot of complexity behind the scenes. Google’s serving infrastructure takes care of converting the font into a format compatible with any modern browser (including Internet Explorer 6 and [...]


Related posts:<ol><li><a href='http://news.mrdwab.com/2010-05-20/font-experiments/' rel='bookmark' title='Permanent Link: Font experiments'>Font experiments</a> <small>Google just launched the Google Font Directory (beta, of course)...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>My initial excitement about the Google Font Directory is a little bit diminished right now.</p>
<p><span id="more-678"></span></p>
<p>According to the <a href="http://googlecode.blogspot.com/2010/05/introducing-google-font-api-google-font.html">Google Code Blog</a>:</p>
<blockquote><p>The Google Font API hides a lot of complexity behind the scenes. Google’s serving infrastructure takes care of converting the font into a format compatible with any modern browser (including Internet Explorer 6 and up), sends just the styles and weights you select, and the font files and CSS are tuned and optimized for web serving.</p></blockquote>
<p>But here are a few screencaps of my site in different browsers:</p>

<a href='http://news.mrdwab.com/2010-05-20/font-experiments-part-2/chrome/' title='Chrome: Looks pretty much as I would expect it to, but not sure why there seems to be so much aliasing.'><img width="150" height="150" src="http://news.mrdwab.com/wp-content/uploads/2010/05/chrome-150x150.jpg" class="attachment-thumbnail" alt="Chrome" title="Chrome: Looks pretty much as I would expect it to, but not sure why there seems to be so much aliasing." /></a>
<a href='http://news.mrdwab.com/2010-05-20/font-experiments-part-2/opera/' title='Opera: Also, as expected, but similar concern about aliasing.'><img width="150" height="150" src="http://news.mrdwab.com/wp-content/uploads/2010/05/opera-150x150.jpg" class="attachment-thumbnail" alt="Opera" title="Opera: Also, as expected, but similar concern about aliasing." /></a>
<a href='http://news.mrdwab.com/2010-05-20/font-experiments-part-2/safari/' title='Safari (on Windows): Uses the right fonts, but they look overly &quot;heavy&quot; to me.'><img width="150" height="150" src="http://news.mrdwab.com/wp-content/uploads/2010/05/safari-150x150.jpg" class="attachment-thumbnail" alt="Safari (on Windows)" title="Safari (on Windows): Uses the right fonts, but they look overly &quot;heavy&quot; to me." /></a>
<a href='http://news.mrdwab.com/2010-05-20/font-experiments-part-2/ie7/' title='IE7: Headings are correct, but not the main text.'><img width="150" height="150" src="http://news.mrdwab.com/wp-content/uploads/2010/05/ie7-150x150.jpg" class="attachment-thumbnail" alt="IE7" title="IE7: Headings are correct, but not the main text." /></a>
<a href='http://news.mrdwab.com/2010-05-20/font-experiments-part-2/firefox/' title='Firefox: The big surprise for me! Nothing works!'><img width="150" height="150" src="http://news.mrdwab.com/wp-content/uploads/2010/05/firefox-150x150.jpg" class="attachment-thumbnail" alt="Firefox" title="Firefox: The big surprise for me! Nothing works!" /></a>
<a href='http://news.mrdwab.com/2010-05-20/font-experiments-part-2/specimen1/' title='The specimen page for IM Fell English SC on Chrome. Looks like a fun font.'><img width="150" height="150" src="http://news.mrdwab.com/wp-content/uploads/2010/05/specimen1-150x150.jpg" class="attachment-thumbnail" alt="Specimen page, Chrome" title="The specimen page for IM Fell English SC on Chrome. Looks like a fun font." /></a>
<a href='http://news.mrdwab.com/2010-05-20/font-experiments-part-2/specimen2/' title='The specimen page for IM Fell English SC on Firefox. Looks like a pretty regular font.'><img width="150" height="150" src="http://news.mrdwab.com/wp-content/uploads/2010/05/specimen2-150x150.jpg" class="attachment-thumbnail" alt="Specimen page, Firefox" title="The specimen page for IM Fell English SC on Firefox. Looks like a pretty regular font." /></a>

<p>I guess this has inspired me to explore using the @font-face option though, so there might be some more font experiments on the way.</p>


<p>Related posts:<ol><li><a href='http://news.mrdwab.com/2010-05-20/font-experiments/' rel='bookmark' title='Permanent Link: Font experiments'>Font experiments</a> <small>Google just launched the Google Font Directory (beta, of course)...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://news.mrdwab.com/2010-05-20/font-experiments-part-2/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Font experiments</title>
		<link>http://news.mrdwab.com/2010-05-20/font-experiments/</link>
		<comments>http://news.mrdwab.com/2010-05-20/font-experiments/#comments</comments>
		<pubDate>Thu, 20 May 2010 05:55:57 +0000</pubDate>
		<dc:creator>Ananda</dc:creator>
				<category><![CDATA[(all categories)]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Geekiness]]></category>
		<category><![CDATA[Website]]></category>
		<category><![CDATA[experiments]]></category>
		<category><![CDATA[fonts]]></category>
		<category><![CDATA[Google]]></category>

		<guid isPermaLink="false">http://news.mrdwab.com/?p=676</guid>
		<description><![CDATA[Google just launched the Google Font Directory (beta, of course) and the Google Font API which provides web-designers with an easy way to extend the font options that tend to limit many websites. Using the service is pretty simple: go to the font directory, find the font you want to use, and follow the simple [...]


Related posts:<ol><li><a href='http://news.mrdwab.com/2010-05-20/font-experiments-part-2/' rel='bookmark' title='Permanent Link: Font experiments, Part 2'>Font experiments, Part 2</a> <small>My initial excitement about the Google Font Directory is a...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Google just launched the <a href="http://code.google.com/webfonts" target="_blank">Google Font Directory</a> (beta, of course) and the Google Font API which provides web-designers with an easy way to extend the font options that tend to limit many websites. Using the service is pretty simple: go to the font directory, find the font you want to use, and follow the simple instructions under the &#8220;Get the code&#8221; tab. </p>
<p>The font list seems a bit limited at the moment, but to experiment with the feature, I&#8217;ve changed all of the post headings at this site to be displayed in <a href="http://code.google.com/webfonts/family?family=IM+Fell+English+SC" target="_blank">IM Fell English SC</a> and the body text to <a href="http://code.google.com/webfonts/family?family=Molengo" target="_blank">Molengo</a>. It would be great to see fonts like <a href="http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&#038;id=Gentium" target="_blank">Gentium</a> and <a href="http://www.linuxlibertine.org/index.php?id=1&#038;L=1" target="_blank">Linux Libertine</a> on there too.</p>


<p>Related posts:<ol><li><a href='http://news.mrdwab.com/2010-05-20/font-experiments-part-2/' rel='bookmark' title='Permanent Link: Font experiments, Part 2'>Font experiments, Part 2</a> <small>My initial excitement about the Google Font Directory is a...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://news.mrdwab.com/2010-05-20/font-experiments/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>2657 Productions is going to get a facelift</title>
		<link>http://news.mrdwab.com/2008-06-23/2657-productions-facelift/</link>
		<comments>http://news.mrdwab.com/2008-06-23/2657-productions-facelift/#comments</comments>
		<pubDate>Mon, 23 Jun 2008 07:10:39 +0000</pubDate>
		<dc:creator>Ananda Mahto</dc:creator>
				<category><![CDATA[(all categories)]]></category>
		<category><![CDATA[2657 Productions]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Geekiness]]></category>
		<category><![CDATA[Website]]></category>
		<category><![CDATA[themes]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://news.mrdwab.com/?p=108</guid>
		<description><![CDATA[I&#8217;ve been trying to keep myself busy recently. As I mentioned in my earlier post about the DAMN It! website, one of the reasons I did it was to experiment with some layout stuff. This then translated into me exploring WordPress Themes, using the Sandbox theme as my foundation. There is still a bit of [...]


Related posts:<ol><li><a href='http://news.mrdwab.com/2010-07-08/the-awesomeness-that-is-wordpress-and-child-themes/' rel='bookmark' title='Permanent Link: The awesomeness that is WordPress and child themes'>The awesomeness that is WordPress and child themes</a> <small>After a long long long time, I decided to get...</small></li>
<li><a href='http://news.mrdwab.com/2009-10-20/cintanotes-and-tiddlywiki-and-dropbox-fun/' rel='bookmark' title='Permanent Link: CintaNotes and TiddlyWiki and Dropbox Fun'>CintaNotes and TiddlyWiki and Dropbox Fun</a> <small>Kiran just reminded me the other day of something I...</small></li>
<li><a href='http://news.mrdwab.com/2007-03-02/nested-lists-and-css/' rel='bookmark' title='Permanent Link: Nested Lists and CSS'>Nested Lists and CSS</a> <small>I don&#8217;t use lists too often for my own stuff,...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><a href='http://news.mrdwab.com/2008-06-23/2657-productions-facelift/2657-productions/' rel="attachment wp-att-109"><img src="http://news.mrdwab.com/wp-content/uploads/2008/06/2657-productions-300x192.png" alt="2657 Productions: Teaching myself WordPress theme design...." title="Layout for the new 2657 Productions Site" width="300" height="192" class="alignright size-medium wp-image-109" /></a><br />
I&#8217;ve been trying to keep myself busy recently.</p>
<p>As I mentioned in <a href="http://news.mrdwab.com/2008-06-20/damn-it/">my earlier post about the DAMN It! website</a>, one of the reasons I did it was to experiment with some layout stuff. This then translated into me exploring WordPress Themes, using <a href="http://www.plaintxt.org/themes/sandbox/">the Sandbox theme</a> as my foundation.</p>
<p>There is still a bit of tweaking that needs to be done before I redirect the home domain to the new folder, but you can <a href="http://mrdwab.com/2657/">check out the new site</a> while I start transfering the information and fiddling with the theme&#8217;s files&#8230;.</p>


<p>Related posts:<ol><li><a href='http://news.mrdwab.com/2010-07-08/the-awesomeness-that-is-wordpress-and-child-themes/' rel='bookmark' title='Permanent Link: The awesomeness that is WordPress and child themes'>The awesomeness that is WordPress and child themes</a> <small>After a long long long time, I decided to get...</small></li>
<li><a href='http://news.mrdwab.com/2009-10-20/cintanotes-and-tiddlywiki-and-dropbox-fun/' rel='bookmark' title='Permanent Link: CintaNotes and TiddlyWiki and Dropbox Fun'>CintaNotes and TiddlyWiki and Dropbox Fun</a> <small>Kiran just reminded me the other day of something I...</small></li>
<li><a href='http://news.mrdwab.com/2007-03-02/nested-lists-and-css/' rel='bookmark' title='Permanent Link: Nested Lists and CSS'>Nested Lists and CSS</a> <small>I don&#8217;t use lists too often for my own stuff,...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://news.mrdwab.com/2008-06-23/2657-productions-facelift/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DAMN It!</title>
		<link>http://news.mrdwab.com/2008-06-20/damn-it/</link>
		<comments>http://news.mrdwab.com/2008-06-20/damn-it/#comments</comments>
		<pubDate>Fri, 20 Jun 2008 10:11:56 +0000</pubDate>
		<dc:creator>Ananda Mahto</dc:creator>
				<category><![CDATA[(all categories)]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Geekiness]]></category>
		<category><![CDATA[Humor]]></category>
		<category><![CDATA[India]]></category>
		<category><![CDATA[silliness]]></category>
		<category><![CDATA[Website]]></category>

		<guid isPermaLink="false">http://news.mrdwab.com/?p=106</guid>
		<description><![CDATA[I was just having some fun at work a couple of weeks ago, trying to put some positive and creative pressure on a co-worker, so I created this fake center to compete with the center she is heading (the Advanced Centre for Enabling Disaster Risk Reduction [at the Tata-Dhan Academy where I work]). The result? [...]


Related posts:<ol><li><a href='http://news.mrdwab.com/2008-06-23/2657-productions-facelift/' rel='bookmark' title='Permanent Link: 2657 Productions is going to get a facelift'>2657 Productions is going to get a facelift</a> <small>I&#8217;ve been trying to keep myself busy recently. As I...</small></li>
<li><a href='http://news.mrdwab.com/2010-02-13/the-odf-campaign/' rel='bookmark' title='Permanent Link: The ODF Campaign'>The ODF Campaign</a> <small>Recently, there&#8217;s been a lot of talk about poop in...</small></li>
<li><a href='http://news.mrdwab.com/2008-07-06/more-websites-im-on-a-roll/' rel='bookmark' title='Permanent Link: More websites&#8230;. I&#8217;m on a roll&#8230;.'>More websites&#8230;. I&#8217;m on a roll&#8230;.</a> <small>Like I said in my last post, I&#8217;ve been trying...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><a href='http://news.mrdwab.com/?attachment_id=107'><img src="http://news.mrdwab.com/wp-content/uploads/2008/06/damn-it-300x192.png" alt="The Disaster Awareness and Mitigation Network, International!" title="DAMN It!" width="300" height="192" class="alignright size-medium wp-image-107" /></a>I was just having some fun at work a couple of weeks ago, trying to put some positive and creative pressure on a co-worker, so I created this fake center to compete with the center she is heading (the Advanced Centre for Enabling Disaster Risk Reduction [at the Tata-Dhan Academy where I work]). The result? Amy and I settled on Disaster Awareness and Mitigation Network, International. We <a href="http://damn-it.mrdwab.com">even have a website</a>!<br />
<span id="more-106"></span><br />
No, really, Sangeetha (the co-worker that I&#8217;m pressuring) is awesome and does great work. Originally, the center she was heading was simply called the &#8220;ACE&#8221; which totally missed out on what the work actually involved. Since then, the name has been somewhat consistently written as ACEDRR (said as the word &#8220;ace&#8221; and the letters d, r, and r) which makes it a lot easier for me to accept the center. Additionally, there were a few things I wanted to try out in terms of positioning things with CSS and so on, so this was a good opportunity&#8230;.</p>
<h2>UPDATE: July 12, 2008</h2>
<p><a href='http://news.mrdwab.com/2008-06-20/damn-it/2008-07-12_114301/' rel="attachment wp-att-164"><img src="http://news.mrdwab.com/wp-content/uploads/2008/07/2008-07-12_114301-300x155.png" alt="First official version of the ACEDRR website that I\&#039;ve worked on" title="ACEDRR website, V1.0" width="300" height="155" class="alignright size-medium wp-image-164" /></a><br />
ACEDRR has <a href="http://dhan.org/acedrr/">its own site</a> now! I guess my pressuring paid off somewhat. We still need to filter through pictures and work on some more user-friendly functions (for example in navigation and finding information) but I think it is off to a decent start.</p>
<p>This wasn&#8217;t the first design I submitted. The first design can be found hosted at <a href="http://mrdwab.com/tda/acedrr/">mrdwab.com&#8217;s TDA sandbox pages</a> and helped us at least enter some discussions about how to lead the design process.</p>
<p>There&#8217;s some temptation for me to remove my <a href="http://damn-it.mrdwab.com">DAMN It! site</a> (especially because it actually appears on search engines when you type in ACEDRR), but I&#8217;m emotionally attached to it and it did help me to figure out how to redesign the <a href="http://mrdwab.com/2657/">2657 Productions website</a>. (You can even see the similarity in layout.) I guess what I&#8217;m saying is that it&#8217;s here to stay for archival purposes and hopefully <a href="http://dhan.org/acedrr/">the official ACEDRR site</a> starts to get picked up on search engines soon enough&#8230;.</p>


<p>Related posts:<ol><li><a href='http://news.mrdwab.com/2008-06-23/2657-productions-facelift/' rel='bookmark' title='Permanent Link: 2657 Productions is going to get a facelift'>2657 Productions is going to get a facelift</a> <small>I&#8217;ve been trying to keep myself busy recently. As I...</small></li>
<li><a href='http://news.mrdwab.com/2010-02-13/the-odf-campaign/' rel='bookmark' title='Permanent Link: The ODF Campaign'>The ODF Campaign</a> <small>Recently, there&#8217;s been a lot of talk about poop in...</small></li>
<li><a href='http://news.mrdwab.com/2008-07-06/more-websites-im-on-a-roll/' rel='bookmark' title='Permanent Link: More websites&#8230;. I&#8217;m on a roll&#8230;.'>More websites&#8230;. I&#8217;m on a roll&#8230;.</a> <small>Like I said in my last post, I&#8217;ve been trying...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://news.mrdwab.com/2008-06-20/damn-it/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nested Lists and CSS</title>
		<link>http://news.mrdwab.com/2007-03-02/nested-lists-and-css/</link>
		<comments>http://news.mrdwab.com/2007-03-02/nested-lists-and-css/#comments</comments>
		<pubDate>Fri, 02 Mar 2007 12:32:26 +0000</pubDate>
		<dc:creator>Ananda Mahto</dc:creator>
				<category><![CDATA[(all categories)]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Geekiness]]></category>
		<category><![CDATA[remind-me]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[Website]]></category>

		<guid isPermaLink="false">http://news.mrdwab.com/2007-03-02/nested-lists-and-css/</guid>
		<description><![CDATA[I don&#8217;t use lists too often for my own stuff, but I do have to use them often either with my work or with school assignments. Often these lists can be quite long, and have many lists nested within each other. I was recently converting an outline from a Word document to an HTML document, [...]


Related posts:<ol><li><a href='http://news.mrdwab.com/2009-09-21/drop-caps-with-openoffice-org-writer/' rel='bookmark' title='Permanent Link: Drop caps with OpenOffice.org Writer'>Drop caps with OpenOffice.org Writer</a> <small>Tutorial Level: Elementary From time to time, I like some...</small></li>
<li><a href='http://news.mrdwab.com/2009-11-19/making-an-a6-booklet-in-openoffice-org-the-easy-way/' rel='bookmark' title='Permanent Link: Making an A6 booklet in OpenOffice.org the easy way'>Making an A6 booklet in OpenOffice.org the easy way</a> <small>Tutorial level: Elementary I recently had to create an A6...</small></li>
<li><a href='http://news.mrdwab.com/2008-06-23/2657-productions-facelift/' rel='bookmark' title='Permanent Link: 2657 Productions is going to get a facelift'>2657 Productions is going to get a facelift</a> <small>I&#8217;ve been trying to keep myself busy recently. As I...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I don&#8217;t use lists too often for my own stuff, but I do have to use them often either with my work or with school assignments. Often these lists can be quite long, and have many lists nested within each other.</p>
<p>I was recently converting an outline from a Word document to an HTML document, and I wanted different list levels to be different list-types&#8212;similar to the results you would get in MS Word when you increase the indent of a list item. However, simply nesting the lists ended up in a reverting to regular Arabic numerals, so you ended up with a list that looked something like:</p>
<p>1. First Level Item 1<br />
2. First Level Item 2<br />
&nbsp;&nbsp;&nbsp;&nbsp;1. Second Level Item 1<br />
&nbsp;&nbsp;&nbsp;&nbsp;2. Second Level Item 2</p>
<p>while what I wanted was something like:</p>
<p>1. First Level Item 1<br />
2. First Level Item 2<br />
&nbsp;&nbsp;&nbsp;&nbsp;I. Second Level Item 1<br />
&nbsp;&nbsp;&nbsp;&nbsp;II. Second Level Item 2</p>
<p><span id="more-87"></span></p>
<p>My first roundabout solution was to give the different lists a different class and then apply that class to each list item. But that seemed like it was not the correct way to do it, so I poked around on a few sites and checked out the stylesheets on a few WordPress themes to see if I could figure anything out.</p>
<p>And here&#8217;s the fun solution:</p>
<p>In your stylesheet, add definitions for your &#8220;ol&#8221; and &#8220;ul&#8221; tags, declaring what the list style type for the different levels would be. How might that look?</p>
<pre class="brush: css;">
ol {list-style-type:decimal;}
ol ol {list-style-type:upper-roman;}
ol ol ol {list-style-type:lower-roman;}
ol ol ol ol {list-style-type:upper-alpha;}
... and so on
</pre>
<p>If your lists appear in a certain div, you may need to identify the div too. For this WordPress theme, for example, they are all within the &#8220;content&#8221; div, so my CSS includes the following:</p>
<pre class="brush: css;">
#content ol {list-style-type:decimal;}
#content ol ol {list-style-type:upper-roman;}
#content ol ol ol {list-style-type:lower-roman;}
#content ol ol ol ol {list-style-type:upper-alpha;}
</pre>
<p>Here is an example list:</p>
<ol>
<li>First Level Item 1</li>
<li>First Level Item 2</li>
<ol>
<li>Second Level Item 1</li>
<li>Second Level Item 2</li>
<ol>
<li>Third Level Item 1</li>
<li>Third Level Item 2</li>
<ol>
<li>Fourth Level Item 1</li>
</ol>
</ol>
</ol>
<li>First Level Item 3</li>
</ol>


<p>Related posts:<ol><li><a href='http://news.mrdwab.com/2009-09-21/drop-caps-with-openoffice-org-writer/' rel='bookmark' title='Permanent Link: Drop caps with OpenOffice.org Writer'>Drop caps with OpenOffice.org Writer</a> <small>Tutorial Level: Elementary From time to time, I like some...</small></li>
<li><a href='http://news.mrdwab.com/2009-11-19/making-an-a6-booklet-in-openoffice-org-the-easy-way/' rel='bookmark' title='Permanent Link: Making an A6 booklet in OpenOffice.org the easy way'>Making an A6 booklet in OpenOffice.org the easy way</a> <small>Tutorial level: Elementary I recently had to create an A6...</small></li>
<li><a href='http://news.mrdwab.com/2008-06-23/2657-productions-facelift/' rel='bookmark' title='Permanent Link: 2657 Productions is going to get a facelift'>2657 Productions is going to get a facelift</a> <small>I&#8217;ve been trying to keep myself busy recently. As I...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://news.mrdwab.com/2007-03-02/nested-lists-and-css/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>&#8220;Las Historias de Ladera&#8221; re-design</title>
		<link>http://news.mrdwab.com/2006-10-06/ladera-site-redesign/</link>
		<comments>http://news.mrdwab.com/2006-10-06/ladera-site-redesign/#comments</comments>
		<pubDate>Fri, 06 Oct 2006 11:56:43 +0000</pubDate>
		<dc:creator>Ananda Mahto</dc:creator>
				<category><![CDATA[(all categories)]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Geekiness]]></category>
		<category><![CDATA[Website]]></category>

		<guid isPermaLink="false">http://news.mrdwab.com/2006-10-06/ladera-site-redesign/</guid>
		<description><![CDATA[New projects to keep me busy—more adventures into CSS. Yes, I&#8217;m busy procrastinating and doing geeky stuff to keep myself entertained in the interim. So, what do I do? Try something new&#8230; -ish&#8230;. So, for the project of killing time at hand, I decided to re-do the &#8220;Las Historias de Ladera&#8221; site that I did [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>New projects to keep me busy—more adventures into CSS. Yes, I&#8217;m busy procrastinating and doing geeky stuff to keep myself entertained in the interim. So, what do I do? Try something new&#8230; -ish&#8230;.</p>
<p><a href="http://mrdwab.com/ladera-2/"><img src="http://news.mrdwab.com/wp-content/uploads/2006/10/ladera.gif" alt="Ladera TOC page" /></a></p>
<p>So, for the project of killing time at hand, I decided to re-do the &#8220;<a href="http://pshhc.org/ladera/" target="_blank">Las Historias de Ladera</a>&#8221; site that I did some years back for <a href="http://pshhc.org" target="_blank">Peoples&#8217; Self-Help Housing</a>. My main motivation for re-doing the site is that the site in its original form made extensive use of frames.</p>
<p><span id="more-58"></span></p>
<p>Why frames? I didn&#8217;t know better at the time. They seemed convenient, and got the job done.</p>
<p>Why not frames? A few reasons&#8230;.</p>
<ul>
<li>First, they are pretty cumbersome in general. For each page of the Ladera website, I had the static frameset that included a header, footer, left, right, and center borders, and two areas in which to load the English and Spanish versions of each of the pages.</li>
<li>Second, because we wanted the page title to show up for each of the pages properly and I didn&#8217;t know any better, I duplicated the frameset for each of the pages. Thus, while there were 10 stories and a total of about 7 other pages, there were actually some 50+ HTML pages in the end—not counting the photo gallery pages! Well, not only does that defeat the whole claimed advantage of using frames, but compare that to the sleek 17 pages total in the revised version!</li>
<li>Third, I had to do funny things to make sure that people always got the full frameset and not just one of the frames that made up the page. In other words, if someone searched in Google and got a link to the Spanish version of a page, I needed to make sure that when they clicked on the indexed link, it would (1) pop the page back in the frameset and (2) make sure it stayed on the page the user wanted and not take them back to the home page. Fortunately, GoLive, which is what I used when I was originally designing that site, had some readymade JavaScripts to help me out with that&#8230;.</li>
</ul>
<p>Well, since I&#8217;ve explored more web-technologies in the time since I originally did the Ladera site, frames have become #1 on my list of least favorite web-design tools. Granted, part of this stems from the website for my current workplace, which includes a big-yet-ineffective navigation frame across the top, but in general, I haven&#8217;t found much use for them in recent months.</p>
<p>So, with that in mind, I decided to check out what I could do with CSS instead, and here&#8217;s what I did.</p>
<ul>
<li>First, I mapped out my page as logically as I could. Fortunately, since I already had a design that everyone was happy with, this step was easy. The top of the page would have basic site-specific navigation. The left and right borders would mirror each other. English would be on the left part of the screen, Spanish on the right, and a decorative border in-between. Finally, there would be a decorative border at the bottom of the page.</li>
<li>Second, I sized my graphics as best as I could. All the graphics would be implemented using the CSS &#8220;background-image&#8221; property, repeat/no-repeat as necessary&#8230;.</li>
<li>Third, I created my basic div tags. Header, Left, English, Center, Spanish, Right, Footer. I decided on a fixed width of 795px and a fixed height for the text area of 500px (since this matched the size of the graphic I had for the left and right borders).</li>
<li>Fourth, I went ahead in Dreamweaver and started making my template. I ran into a few problems when testing out my initial layout.
<ul>
<li>Things weren&#8217;t going in quite the right places. They were sort of stacking on each other instead of going side-by-side as they should. To solve this, I remembered that rather than positioning the middle row of div tags (Left, English, Center, Spanish, Right) I could have them just all float left and wrap them all in a div tag together.</li>
<li>Since I don&#8217;t like HTML tables too much and I wanted to use CSS as much as possible, I needed to find a way to center my page horizontally and vertically. I looked around a bit and came across <a href="http://codesnippets.joyent.com/posts/show/658" target="_blank">two</a> <a href="http://www.jakpsatweb.cz/css/css-vertical-center-solution.html" target="_blank">sets</a> of CSS snippets that would help me. I don&#8217;t remember exactly what I did, but it ended up working for me.</li>
<li>When I first tried using the solutions mentioned at the above links, some stuff still wasn&#8217;t working out right. For example, the middle section, presumably because I was using the &#8220;float&#8221; CSS property, &#8220;floated&#8221; all the way to the left of the screen instead of being centered as I had hoped. So, I created divs to go around each horizontal section of the page (header section, content section, and footer section). Additionally, these three divs were themselves within another set of div tags.</li>
<li>For the centering horizontally and vertically, one thing that I noticed was that in Firefox at least, I was getting a scroll bar all the time when it wasn&#8217;t necessary. So, to solve that, instead of making the body and html height 100%, I changed it to 90%&#8230;. And no more scrollbar!</li>
</ul>
</li>
</ul>
<p>In the end, here&#8217;s what the basic skeleton for the HTML page was:</p>
<pre class="brush: xml;">
&lt;body&gt;
	&lt;div id=&quot;mainwrap&quot;&gt;
		&lt;div id=&quot;contentarea-a&quot;&gt;
			&lt;div id=&quot;header&quot;&gt;&lt;!--navigation stuff went here--&gt;&lt;/div&gt;
		&lt;/div&gt;
		&lt;div id=&quot;contentarea-b&quot;&gt;
			&lt;div id=&quot;left&quot;&gt;&lt;!--empty--had a background graphic--&gt;&lt;/div&gt;
			&lt;div id=&quot;english&quot;&gt;&lt;!--English section of the page--&gt;&lt;/div&gt;
			&lt;div id=&quot;center&quot;&gt;&lt;!--empty--had a background graphic--&gt;&lt;/div&gt;
			&lt;div id=&quot;spanish&quot;&gt;&lt;!--Spanish section of the page--&gt;&lt;/div&gt;
			&lt;div id=&quot;right&quot;&gt;&lt;!--empty--had a background graphic--&gt;&lt;/div&gt;
		&lt;/div&gt;
		&lt;div id=&quot;contentarea-c&quot;&gt;
			&lt;div id=&quot;footer&quot;&gt;&lt;!--empty--had a background graphic--&gt;&lt;/div&gt;
		&lt;/div&gt;
	&lt;/div&gt;
&lt;/body&gt;
</pre>
<p>And here&#8217;s what the basic CSS for layout was:</p>
<pre class="brush: css;">
body, html { height:90%; }
#mainwrap, #contentarea-a, #contentarea-b, #contentarea-c, #header, #footer { position:relative; }
#mainwrap {
	min-width:795px;
	max-width:795px;
	margin:auto;
	text-align:center;
}
#header {
	width:795px;
	height:20px;
	z-index:4;
	overflow: hidden;
	text-align: center;
	background-color: #FFFFCC;
}
#header, #header.a {padding-top:12px; }
#contentarea-b {
	height:500px;
	width:795px;
}
#left, #right, #english, #spanish, #center  {
	position:relative;
	height:500px;
	z-index:4;
	float:left;
}
#left, #right {
	width:80px;
	overflow: hidden;
}
#left {
	background:url(images/left_column.jpg) no-repeat;
}
#english, #spanish {
	width:300px;
	overflow: auto;
	text-align:left;
}
#center {
	width:35px;
	overflow: hidden;
	vertical-align:middle;
	background:url(images/center.jpg) repeat-y;
}
#right {
	background:url(images/right_column.jpg) no-repeat;
}
#footer {
	left:0;
	top:0;
	width:795px;
	height:36px;
	z-index:5;
	overflow: hidden;
	background:url(images/tile.jpg) repeat-x;
}
</pre>
<p>Now, with that out of the way, and with all the content transferred to my new, sleek 17 page site, I added some old tricks to add some new functionality. Since Spanish is of no use to me—and presumably, I&#8217;m not the only one in this case—and since the same can be said of English for some of the site&#8217;s viewers, I thought, why not give the users the option to view either one or the other rather than making them have to view both all the time.</p>
<p>Well, since I used CSS, that was a breeze to do. Two more stylesheets later and <a href="http://www.dynamicdrive.com/dynamicindex9/stylesheetswitcher.htm" target="_blank">one of my favorite little JavaScripts</a>, and a single language version was a click away.</p>
<p>Now, the last section of the site that needed to be addressed was the photo section. For this section, I created a div in which all the thumbnails would be located and a div in which the larger photos would be loaded. The thumbnail div was a fixed height and would scroll to accommodate the number of thumbnails I included and the main photo div filled the remaining screen real-estate&#8230;. I used <a href="http://www.dynamicdrive.com/dynamicindex4/thumbnail2.htm" target="_blank">a cool little JavaScript thing</a> I found for the photos, and used some CSS to preload the thumbnails while viewers were reading different pages of the site, and overall, I&#8217;m pretty happy with the re-designed site!</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://news.mrdwab.com/2006-10-06/ladera-site-redesign/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
