1. Computing

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

By

3 of 10

Including the YUI in Your Project

To include these stylesheets in your project, add two <link> tags to the header of the posts.html.erb layout file for the Posts controller. Though there are four libraries, the Reset, Grids and Fonts stylesheets are combined into one file to reduce bandwidth. Add the following two lines to your Posts layout file. At this time, you can also remove any existing stylesheets you find there (such as the scaffolding stylesheet) as they will no longer be needed.

<head>
<b> <title>Posts: <%= controller.action_name %></title>
<%= stylesheet_link_tag
'http://yui.yahooapis.com/2.5.2/build/reset-fonts-grids/reset-fonts-grids.css' %>
<%= stylesheet_link_tag
'http://yui.yahooapis.com/2.5.2/build/base/base-min.css' %>
</b>
</head>

©2014 About.com. All rights reserved.