If in presentation mode, hit the space bar to start the presentation.

BlogHer

Blog customization:
DIY or Hire and What to Expect

By Mir Verburg and Tiffany Brown

(Friday, July 28, 2006)

Follow along at http://www.tiffanybbrown.com/blogher06/slides/

To view as a slide show, you’ll need the Opera browser. Hit F11 (Windows) or Alt + F11 (Mac) to start presentation mode. Use the space key to navigate forward between slides. Use Shift + Space to navigate backwards between slides.

What we’ll cover:

Do It Yourself or Hire? How to Decide

Ask yourself:

Reasonable expectations: Price and the Client-Developer Relationship

Four major factors influence project cost:

Market size

Company size

One person shops may be more affordable than multi-person firms.

Experience of the developer

Green designers

Pros

Cons

Experience of the developer (continued)

Veteran Designers/Shops

Pros

Cons

Scope of the project

Considerations when hiring

If you decide to hire

Designer/ developer

Client:

The “Third Way”

Use and modify an existing blog template

Plenty of blog templates available for free, or low cost. A few are below. (More on our web sites. Or search the web for some.)

WordPress (full version)
themes.wordpress.net
Blogger.com
blogger-templates.blogspot.com
Open (Source) Web Design
openwebdesign.org (Most of these designs will require you to add your own template tags.)
MovableType Style Library
www.sixapart.com/movabletype/styles/library

Cascading Stylesheets: An overview

We’ll cover

How cascading style sheets work

CSS Syntax

Selectors can be:

How to use CSS

Four ways to include CSS in your HTML file.

Inline styles

Applying styles directly to a tag using the style attribute.

<tagname style="property:value;">
		     		 

Because they’re applied to the tag, inline styles don’t require a selector.

Embedded styles

Included in the HTML document between the <head> and </head> tags

     <head>
     <title>Your document</title>
	 
	 <style type="text/css">
	       	 selector{ 
	       	     property1: value;
	       	     property2: value;
	       	 }
	 </style>
	 
     </head>

Called “embedded” because they’re included in the HTML file.

Linked styles

Using an external file to apply styles to your HTML file. Uses the <link> element between the <head> and </head> tags.

      <head>
      <title>Your document</title>
       <link rel="text/stylesheet" href="externalfilename.css">
      </head>

Then in the style sheet, you use the same syntax you use for embedded style sheets.

Imported styles

A way of linking external style sheets or combining multiple style sheets.

	     @import: url(path_to_style_sheet.css);
        

CSS Tricks

(We’ll try our best to get through all of these.)

  1. Align text to the left, right or center
  2. Change font color, weight, or size
  3. Add a background image
  4. Align an image
  5. A simple two-column layout
  6. Making bullets using images
  7. Selector states for links

Text alignment

Uses the text-align: property, which has four possible values. Doesn't apply to all HTML tags/elements. Can only use with block-level elements such as div and p.


left


right


center


justify

Changing font weight, size color or style

Collection of font properties, and the color property. Learn more

font-weight: bold | normal
font-style: italic | normal | oblique
font-family: font name | serif | sans-serif | cursive | fantasy | monospace
font-variant: normal | small-caps
font-size: XXpx

color: color code

Changing font weight, size color or style: An example

p{ font-weight: bold;
font-style: italic;
font-family:
Georgia, serif;
font-size: 80px;
color:#c09; }

This is some text.

Can also use shorthand syntax: font: style weight variant size / line-height family (order matters).

Using shorthand, the above would be p{ font: bold italic 80px Georgia, serif; color:#c09;}

Adding a background

A collection of background properties. Can apply to almost any HTML element.

background-color:color code
background-image: url(path_to_image.jpg)
background-attachment: fixed | scroll
background-repeat: repeat-x | repeat-y | repeat | no-repeat
background-position: top | left | center | bottom | right | percentage | pixels

Adding a background

div{ background-color:#09f; background-image: url(divbak.gif);
background-repeat:repeat-y; }

Some foreground text

Can also use shorthand syntax for backgrounds:

div { background: color image repeat attachment position; }

The above would be:

div { background: #09f url(divbak.gif) bottom repeat-x; }

Aligning an image

CSS

1  img {
2	  float: right;
3	  margin-left; 10px;
4	  margin-right: 5px;
5	  margin-top: 5px;
6         margin-bottom: 10px;
7         padding: 4px;
8    }
		

XHTML

<img src="../path/to/image" >

Example: here

Simple two-column layout

HTML

<div id="wrap">

Example: here

Two columns (continued)

Universal styles

body, html {
         margin:0;
         padding:0;
         background:#eeeeee;
         color:#000;
         font-family: arial, helvetica,
         sans-serif;   }
    
body{ min-width:750px;}
#wrap{ background:#B6D96C; margin:0 auto; width:850px; }

Two columns (continued)

header styles

#header {
    background:#E7FBBB;
    }
#header h1 {
    padding:5px;
    margin:0;
    }

/*nav styles */

#nav {
    background:#cccccc;
    padding:5px;
    }

Two columns (continued)

main styles

#main {
    background:#ffffff;
    float:left;
    width:600px;
    }

#main h2, #main h3, #main p {
    padding:0 10px;
    }

Two columns (continued)

sidebar styles

#sidebar {
    background:#B6D96C;
    float:right;
    width:240px;
    padding-top: 10px;
    }
#sidebar h3, #sidebar p {
    padding:0 10px 0 0;
   }

Two columns (continued)

footer styles

#footer {
    background:#cccccc;
    clear:both;
  }

#footer p {
    padding:5px;
    margin:0;
  }

Two columns (continued)

class using float from example four

.rightfloat {
 	float: right;
	margin-left: 10px;
	margin-right: 5px;
	margin-top: 5px;
	margin-bottom: 10px;
	padding: 4px;
}

xhtml example:

<img src="../path/to/image" class="rightfloat" >

Making bullets using images

XHTML

	<div id="sidebar"> 
	<ul>
	<li>Item one</a></li> 
	<li><a href="#">Item two</a></li>
	<li><a href="#">Item three</a></li>
	<li><a href="#">Item four</a></li>
	<li><a href="#">Item five</a></li>
	</ul>

Example: here

Making bullets (continued)

CSS

#sidebar ul { list-style-image: url(star.png); }

Selector states for links

XHTML

	<div id="sidebar">
	<ul>
	<li>Item one</a></li>
	<li><a href="#">Item two</a></li>
	<li><a href="#">Item three</a></li>
	<li><a href="#">Item four</a></li>
	<li><a href="#">Item five</a></li>
	</ul>

Example: here

Selectors (continued)

CSS

#sidebar a:link{
	      background-position:left 40%;
              color: #FF007E;
              font-weight: bold;
              text-decoration: none;
              padding-left: 18px;

         }

Selectors (continued)

CSS

#sidebar a:visited{
              background-image: url(star.png);
              background-repeat: no-repeat;
              background-position:left 40%;
              color: #FF007E;
              font-weight: normal;
              text-decoration: none;
              padding-left: 18px;
         }

Selectors (continued)

CSS


#sidebar a:hover{
              background-image: url(gstar.png);
              background-repeat: no-repeat;
              background-position:left 40%;
              color:#7EFF00;
              font-weight: bold;
              padding-left: 18px;
              text-decoration: none;
         }

Where to learn more

We’ve got links, these slides and a bibiliography online at

www.flinknet.com/blogher06

OR

www.tiffanybbrown.com/blogher06