Home arrow Style Sheets arrow Page 4 - Appending Grid Units with the Blueprint CSS Framework
STYLE SHEETS

Appending Grid Units with the Blueprint CSS Framework


If you’re searching for a friendly guide that shows you how to utilize Blueprint CSS for building your own web page designs with a grid-based approach, then begin reading this series of articles now! In this this third part to a seven-part series, you will learn a new way to use the framework's background grid with the help of the append-x class.

Author Info:
By: Alejandro Gervasio
Rating: 4 stars4 stars4 stars4 stars4 stars / 3
May 21, 2009
TABLE OF CONTENTS:
  1. · Appending Grid Units with the Blueprint CSS Framework
  2. · Review: two-column web page design with Blueprint CSS
  3. · Using the generic append-x CSS classes
  4. · Styling the markup of the previous (X)HTML file

print this article
SEARCH DEVARTICLES

TOOLS YOU CAN USE

advertisement
Appending Grid Units with the Blueprint CSS Framework - Styling the markup of the previous (X)HTML file
(Page 4 of 4 )

In the segment that you just read, I created a sample (X)HTML file that illustrated how to use the generic “append-x” CSS classes to aggregate grid units to the columns of a web document. Naturally, the signature of the file in question would be incomplete if it didn't include the dependencies of the Blueprint CSS framework.

So here’s the full signature of this example file, this time including the corresponding Blueprint CSS’s style sheets:


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<title>Using append class</title>

<!-- framework CSS source files-->

<link rel="stylesheet" href="blueprint/screen.css" type="text/css" media="screen, projection" />

<link rel="stylesheet" href="blueprint/print.css" type="text/css" media="print" />

<!--[if IE]><link rel="stylesheet" href="blueprint/ie.css" type="text/css" media="screen, projection" /><![endif]-->

</head>

<body>

<div class="container showgrid">

<div class="span-24">

<h1>Using the append class</h1>

<h2>This section spans 24 cols</h2>

<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>

</div>

<div class="span-6 append-1">

<h2>This section spans 7 cols</h2>

<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>

</div>

<div class="span-9 append-1">

<h2>This section spans 10 cols</h2>

<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>

</div>

<div class="span-6 append-1 last">

<h2>This section spans 7 cols</h2>

<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>

</div>

<div class="span-24">

<h2>This section spans 24 cols</h2>

<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>

</div>

</div>

</body>

</html>


Here you have it. Now the above (X)HTML file is complete. Regardless of its simplicity, it is helpful for demonstrating how the “append-x” CSS classes provided by Blueprint CSS can be used for manipulating grid units.

The following screen capture should give you a clearer idea of how the previous file is rendered on the browser:



And finally, with this last hands-on example I’m finishing this tutorial on appending grid units to columns of a web page. As usual, feel free to edit all of the code examples included in this article, so you can enhance your understanding of appending grid units with Blueprint CSS.

Final thoughts

Over this third part of the series, I provided you with a quick guide to using the generic “append-x” CSS classes that come included with Blueprint CSS to aggregate grid units to a selected column within a web document. As I explained before, it’s perfectly possible to append multiple units to the columns in question, so I suggest you use this feature more extensively when building your own web page layouts.

In the upcoming article, I’ll be discussing the use of another set of handy classes, called “prepend-x,” which will come in helpful for “pre-appending” a number of grid units to a given column.

That being said, here’s my final suggestion: don’t miss the next tutorial!


DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

blog comments powered by Disqus
STYLE SHEETS ARTICLES

- CSS Combinators: Working with Child Combinat...
- CSS Combinators: Using General Siblings
- Intro to CSS Combinators
- CSS Semicircles and Web Page Headers
- Drawing Circular Shapes with CSS3 and Border...
- More CSS Pagination Link Templates
- CSS Pagination Links
- Animated CSS3 Image Gallery: Advanced Transi...
- CSS3 Animated Image Gallery: Transitions
- CSS3 Properties: Fixed Heights with box-sizi...
- CSS3 Properties: Altering Strokes and 3D Eff...
- CSS3 Properties: Text-Stroke
- CSS3 Transitions: Width and Height Properties
- Creating a Drop Down Menu in CSS3
- Intro to CSS Transitions

Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 



© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 4 - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials