1. Computing

Using Yahoo! UI to Give Your Blog That "Blog Look"

By

4 of 10

The Basic Layout
Using Yahoo! UI to Give Your Blog That

Now that you have the YUI stylesheets in place, it's time to add a basic layout. A center-column layout with a narrow width is typical for a blog, so we'll use YUI's 750px center-column layout. To do this, enclose everything in your body in a div tag with the id doc. This div should surround your yield block and any other HTML you have in the body.

<div id="doc"> <%= yield %> </div>
  1. About.com
  2. Computing
  3. Ruby
  4. Ruby on Rails
  5. The Basic Layout

©2014 About.com. All rights reserved.