Blog Styling Tips: Introduction

by SBA · 11 comments

in Tips

This article holds the index for tutorials on blog styling tips, related resources and some background on CSS/HTML for the beginner. Every successful blogger needs to know the basics for some Do-It-Yourself post formatting and template design.

Tutorials- Blog Styling Tips

Text Shadow Create text effects without using images
Drop Caps Make first letter of the page stand out and span several lines

Resources

CSS Cheat Sheet To refer to when you experiment with custom styling.
Tag Reference Guide Look up html tags by category
CSS Font Family Glossary Look up web safe fonts and set a default family
Margins, Padding and Borders Explanation of the html box model for framing content
How to Gussy Up Your Best Blog Posts Tips for adding flare and lighting up post content
Note: Tutorial code may contain a green arrow to mark line continuation.greenarrow copyhtml Hover the mouse over any line. Small toolbar pops up. Click second icon to copy the code to clipboard. Then paste into your html editor. Use third icon to print.

We need to take a quick detour— look under the hood — before we get into some styling tips to personalize your blog design or gussy up blog posts. Skip this section if you know about using html to change page properties. The page source or html instructs the browser how to display your home or individual post pages. If you want to see html for this screen then right click the page, select ‘view page source’. You write the post content, but everything else comes from the blogging platform and template code. They work magic behind the scenes and most of us could care less.

Quick Definitions

These are some quick definitions and terms used in our tutorial:

  1. Tag – this is the html language that tells your browser to interpret something. The ’something’ appears between the less-than, greater-than markers: example for the image tag
    < img> -
    This interpretation is sometimes referred to as parse or read programming code.Tags come in pairs, one to ‘open’ and one to ‘close’.
    </img>
    -The close tag starts with a slash and repeats the tag name.
  2. Element – the ’something’ inside the opening and closing tags that needs to be parsed or interpreted by the browser or platform editor like WP or Blogger. For example a text link for our blog’s url:
    <a
    href=”http://bloggingwithsuccess.net”>BloggingWithSuccess </a>
  3. Attribute – often you have multiple attributes for one tag, so you can specify different values and customize to your liking. For the link tag you can use href= for the url or image address and target= for the type of window. This example opens the page in a new window:
    <a href=
    “http://bloggingwithsuccess.net” target=”_blank”>BloggingWithSuccess </a>

CSS/Html Background

We use WP or Blogger’s WYSIWYG editors to style text color, boldness and alignment. The editors turn this into html instructions for the page source. For example, a bullet list displays :

On Your Screen In Html Page Source
  • Item one
<ul><li>Item one</li></ul>

There are two ways to control what gets into the page source.

  1. External” – The method that makes us cringe involves CSS (Cascade Styling Sheet) and Html of the actual template/theme you’re using. Most bloggers’ eyes glaze over when you mention “opening up the CSS or Html code.” Although many bloggers on Blogger.com are more apt to dig into the ‘HTML’ tab using a good tutorial, most WP users search for a plugin or new template. Example of bullet styling of items in an unordered list:

    .post ul li {
    list-style-type: square;margin: 0, 0, 2, 15 ;
    padding-top: 1,0,0,0;}

  2. In-line” – The second method is used within the post or gadget to override template defaults. The html view in Blogger or WP lets you add and override template styling. The page source code for the bullet above would be

    <ul><li style=”list-style-type: square; margin: 0, 0, 2, 15 ; padding-top: 1,0,0,0;”>
    Item one</li></ul>

    Notice the same values but external style definition uses the { } while in-line uses the keyword style=” ” with values in quotes. To override the bullet type for a circle image you would use:

    <ul><li style=”list-style-type: circle;“>

    letting other values default from the template.

Summary

Even if our tips show in-line styling, you can translate it to the template CSS if you want it to become your blog’s default. You just need to know the element to attach the styling (e.g. header, post, comment, etc.)

Just take a minute to reread this and understand the methods rather than the details of what the keywords mean. One is your template language CSS while the second is your post or gadget html. The CSS guides the way each element of your page is shown on the screen and becomes html attached to each element. It’s important to note that when you view html in the post Editor, you do not see the default or ‘inherited’ styling from the template! After all, that would get very very messy (take a look at that page source again if you dare!)

Bookmark this page for future tutorials which we’ll add periodically.

Happy Styling. Leave a comment here or use our contact form We look forward to any suggestions.

SBA
SBA is a web designer and co-founder of BloggingWithSuccess.net. She publishes BPWebNews a place for Blogspot tips and tricks. You can also find her on Twitter. Read SBA's other posts. She's also published a couple of guest posts.

{ 11 comments… read them below or add one }

Creative Junkie July 1, 2009 at 7:49 PM

My blogging life would be so much easier if I was well versed in CSS and HTML. Seriously, it would be such a stress reliever to be able to tweak my blog without yanking out handfuls of hair.

Reply

SBA July 2, 2009 at 7:53 PM

CJ, you have an inner ‘geek’, just face it and get in touch. Create a test blog on free platform and start tweaking. You can copy over the real post you may be struggling with, look at the html and use the resources listed in this post. As always, we are just an email away if you get stuck!

Reply

Mr. I July 2, 2009 at 8:23 PM

It is not that difficult to learn CSS/HTML.
Just keep breaking! Seriously!
Ask SBA how I have broken our theme 196(and counting! :-) ) times! When we moved to WordPress, SBA was only member in team with good knowledge of CSS. But I kept experimenting and now I know decent CSS and PHP to edit themes!

Reply

teratips July 2, 2009 at 1:51 AM

THANKS FOR SHARING

Reply

SBA July 2, 2009 at 8:00 PM

Glad you stopped by! I see your blog has a nice favicon, but If you need a gravatar image take a look at this post: How Much Is NOT Having a Gravatar Costing You

Reply

Eddie Gear July 2, 2009 at 4:33 PM

Hi there,

Its good to see a post on styling. I’m in the process of designing a WordPress theme, simple and clean and also it will be a low cost solution for bloggers. I’ve been learning a lot for the past few months and designing side by side and the package has come a long way. I will soon have it completed and probably bloggers and aspiring designers will come to know how useful articles like these are.

Cheers,
Eddie Gear

Reply

SBA July 2, 2009 at 8:05 PM

Eddie, I appreciate your encouragement. You can do so much more with just a few styling or html tags. CSS makes it so easy to customize even a template you purchase. Just changing the background color or header image can make a difference.

Good luck with your template. Designing is creative, frustrating and rewarding! I’d be happy to take a preview look.

Reply

Mr. I July 2, 2009 at 8:25 PM

Best of Luck with the theme.

Reply

Nihar July 3, 2009 at 4:39 PM

Nice post. It is to the basic for those who are looking for styling their blog.

Reply

fourposter beds July 13, 2009 at 9:58 AM

You are doing nice job to providing such tips to make the blog more efficient and impressive. That will be really prove helpful.

Reply

SBA July 13, 2009 at 7:53 PM

I’m still looking for your blog. Are you a web designer (using html, css)? It nice to see when someone uses our tutorials or blogging tips….

Reply

Leave a Comment

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Previous post:

Next post: