Home arrow Style Sheets arrow Page 4 - More Uses for the Thin and Caps CSS Classes in BlueTrip
STYLE SHEETS

More Uses for the Thin and Caps CSS Classes in BlueTrip


In this sixth part of a seven-part series on the BlueTrip CSS framework, you will learn how to assign the “thin” and “caps” CSS classes to H2 and H3 elements of a web page. The use of these classes makes the elements look more elegant and visually appealing.

Author Info:
By: Alejandro Gervasio
Rating: 5 stars5 stars5 stars5 stars5 stars / 2
November 18, 2009
TABLE OF CONTENTS:
  1. · More Uses for the Thin and Caps CSS Classes in BlueTrip
  2. · Review: styling definition lists with BlueTrip
  3. · Tying thin CSS classes to H3 elements
  4. · Assigning caps CSS classes to H2 and H3 elements

print this article
SEARCH DEVARTICLES

TOOLS YOU CAN USE

advertisement
More Uses for the Thin and Caps CSS Classes in BlueTrip - Assigning caps CSS classes to H2 and H3 elements
(Page 4 of 4 )

In reality, turning H2 and H3 headers into upper case elements in only a matter of assigning to them the “caps” BlueTrip CSS class, and nothing else. The following example demonstrates the use of this class with both H2 and H3 headers. Here it is:

<!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>Basic example on using BlueTrip (using h2 and h3 heading levels with caps class)</title>

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

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

<!--[if IE]>

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

<![endif]-->

</head>

<body>

<div class="container">

<div class="span-24">

<h1 class="caps">BlueTrip CSS Grid example using h2 and h3 heading levels with caps class</h1>

</div>

<div class="span-8">

<h2 class="caps">Level 2 heading</h2>

<h3 class="caps">Level 3 heading</h3>

<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-8">

<h2 class="caps">Level 2 heading</h2>

<h3 class="caps">Level 3 heading</h3>

<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-8 last">

<h2 class="caps">Level 2 heading</h2>

<h3 class="caps">Level 3 heading</h3>

<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-16">

<h2 class="caps">Level 2 heading</h2>

<h3 class="caps">Level 3 heading</h3>

<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-8 last">

<h2 class="caps">Level 2 heading</h2>

<h3 class="caps">Level 3 heading</h3>

<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. From the above code sample, it’s clear to see that upper-casing H2 and H3 headers is a truly straightforward process that can be tackled with minor effort.

Considering that the previous example is indeed way too easy to follow, you should look at the following screen shot, which shows how these HTML headers are displayed on screen after being styled with the “caps” CSS class:

As you might have guessed, it’s also possible to upper case all of the text-based HTML elements of a web document by using the “caps” class. In this particular case I decided to perform this task only with H2 and H3 headers, but you can try it out with lists, paragraphs, and so forth. The possibilities are endless.

And finally, feel free to edit all of the code samples shown in this article to help you build a better background in using the most relevant styles that come packaged by default with the BlueTrip CSS framework. The experience will be educational and why not, also fun!

Final thoughts

In this sixth episode of the series, you learned how to assign the “thin” and “caps” CSS classes provided by BlueTrip to H2 and H3 elements of a web page. As you saw in the complementary images that accompanied each of the previous code samples, the use of these classes makes the elements look more elegant and visually appealing.

Moving forward, in the last installment I’m going to demonstrate how to work with three useful classes that come with this framework, called “success,” “warning” and “error” respectively. As their names suggest, they can be used for informing users in a visual and clean way when some of these events occur.

Don’t miss the last part of the series!


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 8 - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials