Customized Feedburner Subscription Box

by Doug Cloud · 12 comments

I received a great deal of positive feedback on the RSS subscribe box I made for my Blogger site. Some folks were curious as to how I put it together. This tutorial describes how I stylized my subscribe box and inserted the code into a text widget.

For this tutorial I will be using Photoshop (version CS). If you do not have Photoshop you can use Gimp, which is an excellent graphics program. It's also free.

And so, on with the show ...

How to create the design with PhotoShop

I wasn't too thrilled about the subscription code which Feedburner provides. Naturally I had to give it a personal touch. I already had the design envisioned in my head so all I had to do was build it in Photoshop, slice it up, and put some code around it.

Draw Shape and Guides

  1. Create a Photoshop document the same width and fill as the sidebar area ( in my case, 223 pixels).
  2. Draw an odd-shaped background with the Pen Tool
  3. and (for continuity's sake) fill it with the same color as the content area.
  4. Lay out a few guides to give the Feedburner code some room in the middle of this design.

Select the Font and Adjust Lettering

  • I used Sanitarium from Blambot Fonts because it's wacky just like me. When I typed out the words I wasn't too thrilled with the placement of the letters so I had to do some adjusting.
  • Convert the type layer to paths, by going to
    Layer > Type > Create Work Path
  • When you're satisfied with the arrangement of the letters, fill the text paths and move the title into place.I added a stroke and a drop shadow to give it some pop.

How to Style the CSS Code

Add Images and Link Icons

For my box I dropped in my mascots, the FatBirds. The blue FatBird saying 'Via RSS' would become a link to my Feedburner feed and the yellow FatBird saying 'What's RSS?' would be a link to the Feedurner FAQ page describing RSS for people who don't yet know what it is. It is now time to slice the design up and build some code around it. You'll need to adjust for your design in terms of color and width values.

In the past year or so I have read a ton of design-related articles that suggest using CSS to build your content, as opposed to tables. So for this tutorial I will be using CSS to position and style everything in the subscribe box.

The Design

The CSS Code:

<style type="text/css">.container {
background:#FEF6D2;
width: 206px;
margin: auto;
}
.top {
height: 78px;
margin: auto;
}.rss {
height: 76px;
margin: auto;
}.leftnav {
float: left;
width: 16px;
background: url(images/sub_left.gif) no-repeat;
height: 137px;
margin: auto;
}.rightnav {
float: right;
width: 21px;
background: url(images/sub_right.gif) no-repeat;
height: 137px;
margin: auto;
}.content {
text-align:center;
background:#FEF6D2;
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
color: #4F3314;
font-size:11px;
margin: auto;
}.footer {
clear: both;
height: 62px;
margin: auto;
}

</style>

How to Create the Html Code

Here's the html for the box so you have something to refer back to ... Remember this code refers to The Blog of Doug Cloud (TBODC) which is now longer active. You need to substitute your blog and Feedburner info.

<div class="container">
<div class="top"><img alt="Subscribe to TBODC" src="images/sub_top.gif" title="Subscribe to TBODC"/></div>
<div class="<span class=">rss"><a href="http://feeds.feedburner.com/blogofdc"><img title="Subscribe via RSS" src="images/sub_rss.gif" border="0" alt="Subscribe via RSS" /></a></div>
</div>
<div class="<span class=">leftnav"></div>
<div class="<span class=">rightnav"></div>
<div class="content">

<form action="http://www.feedburner.com/fb/a/emailverify" target="popupwindow" method="post" onsubmit="window.open("http://www.feedburner.com/fb/a/emailverifySubmit?feedId=2060905", "popupwindow", "scrollbars=yes,width=550,height=520");return true">
<div style="margin: <span class=;">5px 0 5px 9px;">Or Subscribe by E-mail:</div>
<input style="width:140px; margin: 0 0 5px 10px;" name="email" type="text"/>
<input value="http://feeds.feedburner.com/~e?ffid=2060905" name="url" type="hidden"/>
<input value="The Blog of Doug Cloud" name="title" type="hidden"/>
<input value="en_US" name="loc" type="hidden"/>

<input style="margin: <span class=;" />3px 0 0 9px;" value="Subscribe" type="submit"/>

</form>
<div style="margin: <span class=;">5px 9px">Delivered by <a href="http://www.feedburner.com" target="_blank">FeedBurner</a></div>
<a href="http://feeds.feedburner.com/blogofdc"><img width="88" style="margin: 0 0 0 6px; border:0" alt="" src="http://feeds.feedburner.com/~fc/blogofdc?bg=4F3314&fg=FEF6D2&anim=0" height="26"/></a>
<div class="footer"><a href="http://www.google.com/support/feedburner/bin/answer.py?answer=79408"><img border="0" alt="What"s RSS?" width="206" src="images/sub_whatsrss.gif" height="62" title="What"s RSS?"/></a></div>
</div>

Now let's take a closer look at the above code. The top section is the CSS, contained within the tags. Below that are the divisions, more commonly referred to as divs.

Understanding the Divides Styling

Each div is defined by a class selector in the CSS. A selector is simply a name that can be used to define the attributes of an HTML element. For instance, the div which houses all the other divs is called the 'container' (represented by the thick red outline in the image below). Think of this main container as a table, and all the other divs (white sections) are like nested tables within this main one.

Every div has it's own unique class. The position and style of the main 'container' as well as all the other divs will be determined by the attributes I give them in the CSS. For instance the container div would get it's appearance from the CSS attributes I defined in the styles.

Divides

CSS

Container - has a background color, a width, and automatic margins, all defined by the class selector (.container) in the CSS above. I used automatic margins to keep the design from having unnecessary spaces when rendered by different browsers.
.container {
background:#FEF6D2;
width: 206px;
margin: auto;
}
Top, Rss, Footer - These divs will just be housing images so they don't really need any fancy attributes, aside from the ones I've assigned them...
.top {
height: 78px;
margin: auto;
}.rss {
height: 76px;
margin: auto;
}.footer {
clear: both;
height: 62px;
margin: auto;
}
Leftnav, rightnav - As you can see these classes don't have a lot of fancy CSS, just height and margin properties. I used the property "clear: both;" only for the footer image. The reason I did this is because the left and right images for the sides of the container are floated, like so.You only need the clear property when you have elements below a floated element which must remain below it, as in the image below...

.leftnav {
float: left;
width: 16px;
background: url(images/sub_left.gif) no-repeat;
height: 137px;
margin: auto;
}.rightnav {
float: right;
width: 21px;
background: url(images/sub_right.gif) no-repeat;
height: 137px;
margin: auto;
}
Which value to give the clear property depends entirely on the direction you give the floats. If you give an element 'float: left' and you need subsequent elements to clear it, use 'clear: left'. If you give an element 'float: right', then use 'clear: right'. The property 'clear: both' is only needed when you have both left and right floated elements that need to be cleared, such as the footer.

Adding the Feedburner Code

Next I pasted the entire Feedburner form code into the middle div giving it an class of 'content', like so...

.content {
text-align:center;
background:#FEF6D2;
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
color: #4F3314;
font-size:11px;
margin: auto;
}

The content class in the CSS (above) defines the appearance for that particular div. The form itself did not need any styles except for some elements that I needed to align, such as the text, text box, Subscribe button, and FeedCounter (numbers 1 thru 5 in the image below --- get the actual code from the Html box above ). For these elements I used inline styles (highlighted in yellow).

The Finish

W3Schools.com recommends using inline styles sparingly. It is always best to write the attributes for your elements in a CSS stylesheet, but that's not always possible unless you know a lot about coding (which I don't). For me it was easier to style the five elements above with inline styles. If you're more knowledgeable than me about coding then you'll obviously use a more efficient method. So for Blogger, you create a text/html gadget to hold the inline CSS and Html code.

And thus we have the finished subscribe box...

It took me about a week to figure all of this out and it may take you some time, too. Learning even simple HTML and CSS is not an over night process, but in the end there is no greater satisfaction when learning how to do something like this yourself. Hopefully I have explained enough so that you can get a good start on how to proceed with your own design. If you do create your own subscribe box please don’t use the graphics in this tutorial (make your own).

Additional Resources

Jacob Gube over at Six Revisions posted 20 Websites To Help You Learn and Master CSS. I suggest you bone up on these articles for a better understanding of the styling and divide concepts in this tutorial:

For writing the code I have always used NoteTab Pro, which is a great text editor with many excellent features. Another nice editor is Notepad++. I highly suggest using a text editor to write the code in because it makes things much easier in the long run. Most editors have the ability to preview your code in any browser of your choosing so you can see how you're doing.

The subscription box is one of those important 'above the fold' items to attract readers! I hope this tutorial has inspired you to redesign that boring Feedburner box on your site. If you do undertake this redesign let us know so we can come check out your work. As always if you have any questions let us know in the comments.

0saves
If you enjoyed this post, please consider leaving a comment or subscribing to the RSS feed to have future articles delivered to your feed reader.
4 Reasons For Subscribing
  • Get Full Posts Delivered Directly To Your Inbox.
  • Get Exclusive Freebies For Subscribers.
  • No "Buy This, Buy That" Mails!
  • 100% Privacy. Your EMail Address Will Never Be Shared With Any Third Party.
About Writer [Blogging With Success]About Author Guest Author: Doug Cloud is a professional graphic artist from Michigan who specializes in illustration, character design, and branding. When he isn't creating characters he's busy being one. For quotes on professional design work visit DougDraws.

Leave a Comment

CommentLuv Enabled

{ 10 comments… read them below or add one }

Shubh -RBT April 7, 2010 at 6:31 PM

Great tips! have a look at my subscription form.

Reply

timethief April 16, 2010 at 10:01 PM

WOW! I love the creative design aspect of this and I expect other bloggers will love it too. In my case I’m such an eccentric minmalist that I use an icon.

Reply

Doug C. April 19, 2010 at 8:32 AM

C’mon, T, where’s your sense of adventure? Give it a whirl.
Doug C.´s recent blog ..Designer’s Rant: Psychotic Photoshop My ComLuv Profile

Reply

timethief April 20, 2010 at 3:14 AM

Nope. I changed themes this weekend and I have eliminated everything except for the bare essentials. My blog loads quickly and as Google has made page loading time a ranking factor, I’m happy with the speed that resulted from letting go of some sidebar stuff.

Reply

Doug C. April 20, 2010 at 3:58 AM

The page loading rank is not a big deal. Google still puts much more weight on factors like relevance, topicality, reputation, value-add, etc. Compared to those signals, site speed will carry much less weight. In fact, if you read the official blog post, you’ll notice that the current implementation mentions that fewer than 1% of search queries will change as a result of incorporating site speed into our ranking.

Reply

timethief April 20, 2010 at 5:51 AM

Granted. However geeky people who code scare me. I’m into having a “nude” blog and was grasping for a cover-up. …lol :D
timethief´s recent blog ..No More Ning Freebies My ComLuv Profile

Alamin April 19, 2010 at 8:07 AM

Oh my god! I never knew that. Thanks a lot. Every Blogger should read it. I am sure all of them it love it like me

Reply

Doug C. April 19, 2010 at 8:34 AM

Alamin, thanks for the comment. To make sure every blogger reads this you can always Tweet about it [hint-hint].
Doug C.´s recent blog ..Designer’s Rant: Psychotic Photoshop My ComLuv Profile

Reply

Doug C. April 20, 2010 at 5:59 AM

T, you have given me the motivation to “slim down” my own website. Test driving some new themes now. WooThemes has this neat area where you can log into an actual WP dashboard and upload their themes to test them out. Pretty cool. My plan: no more big graphics, blog, or tutorials – focusing just on my artwork, front and center – period.

Ok, maybe a nice subscribe box…..

Reply

Ralph May 10, 2010 at 8:01 AM

Great Blog WoW!

Reply

{ 2 trackbacks }

Previous post:

Next post: