Graphic Design Series, Part Two: Sidebar Menus, Explained

Good navigation on your blog is important to your readers. Having a clean site helps them find everything easily and I thought I'd talk a bit about the sidebar, and how to roll up those lists.

Blogrolls can be rolled up using services such as (more about that in a minute), or dropdown menus, as shown here:
Photobucket - Video and Image Hosting

Here's the code for a dropdown menu:

<form action="blogroll.php" method="get" target="_blank">
<select onchange="[this.selectedIndex].value);
this.selectedIndex=0;" name="link">

<option>Click for Blogroll...</option>
<option value="" target="_blank">BlogHer</option>
         <option value="" target="_blank">Motherless</option>
         <option value="" target="_blank">Troll Baby</option>

<input type="submit" value="Go" />

This code will open the blogroll options in a new window - ideal for both the blogger and readers, so that they don't get lost and lose your blog in the process.

To put your blogroll in a scroll box, like the one pictured below, use this code, along with the javascript code from
Photobucket - Video and Image Hosting

<div style="width: 170px;height: 200px;overflow: auto;"><script language="javascript" type="text/javascript" src=""></script></div>

Where this part is the code from

<script language="javascript" type="text/javascript" src=""></script>

Either left align your sidebar or center it, don't attempt to do both. It is pleasing to the eye to keep things one way or the other.

You can roll up your archives on Blogger, and or your previous posts by using this hack by Glenn from (For Previous Posts, just replace your Archives code with your Previous Items code below.

<select name="archivemenu" onchange="document.location.href=this.options[this.selectedIndex].value;" style="background-color:#FFFFFF; color:#000000"> 

<option selected> - Click for blog Archives - </option> 

<!--Reverse Sort Archive Menu Blogger Hack created by Glenn from ROVEBERG.COM -->

<script type="text/javascript">

var archives = new Array();

archives[archives.length] = new Array('<$BlogArchiveURL$>', '<$BlogArchiveName$>');

for (var i=archives.length-1;i>=0;i--) {
document.write('<option value=\"' + archives[i][0] + '\">' + archives[i][1] + '</option>');


Also, since Blogger does not have a categories feature at the moment, you can create your own using this handy hack from Net Compact Framework Tutorials. Basically it uses the Blogger search function and a little bit of code.

For more about dressing your blog up, see the BlogHer Entry, Sourcing Images for Graphic Design, the first installment of the Graphic Design series.

Contributing Editor Karen Rani also blogs at Troll Baby and owns Troll Baby Graphics.


In order to comment on, you'll need to be logged in. You'll be given the option to log in or create an account when you publish your comment. If you do not log in or create an account, your comment will not be displayed.

Recent Posts by Karen Rani

Recent Posts