Skip to main content
U.S. flag

An official website of the United States government

Here’s how you know

Dot gov

Official websites use .gov
A .gov website belongs to an official government organization in the United States.

HTTPS

Secure .gov websites use HTTPS
A lock (LockA locked padlock) or https:// means you’ve safely connected to the .gov website. Share sensitive information only on official, secure websites.

    • Environmental Topics
    • Air
    • Bed Bugs
    • Cancer
    • Chemicals, Toxics, and Pesticide
    • Emergency Response
    • Environmental Information by Location
    • Health
    • Land, Waste, and Cleanup
    • Lead
    • Mold
    • Radon
    • Research
    • Science Topics
    • Water Topics
    • A-Z Topic Index
    • Laws & Regulations
    • By Business Sector
    • By Topic
    • Compliance
    • Enforcement
    • Laws and Executive Orders
    • Regulations
    • Report a Violation
    • Environmental Violations
    • Fraud, Waste or Abuse
    • About EPA
    • Our Mission and What We Do
    • Headquarters Offices
    • Regional Offices
    • Labs and Research Centers
    • Planning, Budget, and Results
    • Organization Chart
    • EPA History

Breadcrumb

  1. Home
  2. Template

Style Guide Test Page

Related Info
  • Follow EPA Web Standards
  • WebCMS Editor Quick Reference Sheet
  • Take WebCMS Training

On This Page:

  • Pattern Lab Overview
  • Styles
  • WebCMS Rich Text Editor
  • JavaScript Snippets
  • Widgets and Other Styling Components

Pattern Lab Overview

What follows is a style guide and pattern library, showing many allowed elements for EPA.gov.

Use the pattern lab settings to customize it's view, located at the top right.

settings used to customize pattern lab view

Pattern lab is responsive. Use the icons, located at the top right of the screen, to view the code on various devices.

icons showing various devices to view pattern lab

The menu on the top left has all the elements for styling your content.

Menu used in the pattern lab

Styles

Components marked with an "*" can also be applied through the Rich Text Editor. If you can apply the information through the WYSIWYG editor, you should.

In-line Styles

  • Abbreviation *
  • Adding Definitions *
    • Definition List
  • Headings *
  • Highlighted Headings *
  • Horizontal Line *
  • iFrame (video) *
  • Other Elements
    • Italics *
    • Strong *
    • Small element *
    • Mark *
    • Super/ Subscripts *
    • Warning *
  • Pull Quote *

Forms

  • Web Standard: Web Forms
  • Create and Modify Forms
  • Validation to Stop Spam
  • Form Field Elements
  • Select list
  • Radio Buttons
    • Single Radio Option
    • Multiple Radio Options
  • Checkboxes
    • Single Checkbox
    • Multiple Checkboxes
  • Textfield/Textarea
  • Submit Buttons
  • Multiple Select Options
  • Range
  • Date

Images / Graphics

  • Web Standard: Graphics and Images
  • Overview
  • Image Types
    • Thumbnail *
    • Small *
    • Medium *
    • Large *
  • Slideshow *
  • Colorbox example
    • Colorbox requires Javascript
  • Media Block
    (was slats)
  • Maps
  • Responsive Image Maps
    • Image Maps require Javascript

Boxes

  • Web Standard: Boxes
  • About Boxes
  • Related Info *
  • Highlight *
  • News *
  • Alert *
  • Multipurpose Boxes
    • Without Title *
    • With Header and Border *
    • With Image Header *
  • Special One Item *
  • No Style (no Box) *
  • RSS *
  • Blog *
  • Box Alignment *
    • Left-Aligned
    • Right-Aligned
  • Clearing Box (and image) Floats

Lists

  • Basic list *
  • Ordered list *
  • Unordered list *
  • Clean list *
    (no bullets)
  • Definition list
  • Pipeline *
  • Tag list
  • Underlined list

On This Page

  • Web Standard: On This Page/Table of Contents
  • Creating On this Page Table of Contents

Tables

  • All Table Styles *
  • Column Headers (default)
  • Row Headers *
  • Column and Row Headers *
  • With Borders *
  • Without Borders *
  • Sortable Table
  • Striped Table *
  • Unstyled Table *
  • Accessible tables *
  • Datatables
    (sortable tables)
    • Requires Javascript

Microsites

  • Microsite Homepage
  • Sidenav Menu
  • HERO banner

Colors

  • Color Palette
  • U.S. Web Design Standards color page

Disclaimers

  • File Info
  • New! Icon *

Grid (Columns)

  • About Grids
  • Two Column
  • Three Column
  • Four Column
  • Six Column
  • USWDS grid

WebCMS Rich Text Editor

Using the Drupal WebCMS editor, you can apply many different styles and formats to your content. Note: many of the styles in the rich text editor toolbar are also found in the Pattern Lab.

image of the rte toolbar

The WebCMS Editor Quick Reference Sheet provides a description of each of the icons in the rich text editor.

JavaScript Snippets

  • Web Standard: Javascript
  • Adding your own JS files and libraries
  • Files and Libraries Review Process
  • Colorbox
    • Colorbox Examples
  • Dropdown Navigation
  • Maps, responsive image
  • Table, sortable
  • Timelines
  • Before and After Images
  • Creating a Quiz
  • Data Visualizations
  • Embed X Timelines
  • EPA Blog Feeds
  • Federal Register Feeds
  • Files and Libraries
  • Leaflet
  • RSS Feeds

Widgets and Other Styling Components

  • Email Signup
  • Search Box
  • EPA Public Search
  • Access to EPA Servers
  • Free Viewers and Readers

Clearing Floats

When adding boxes and images that are floated to the left or right, the following classes will "clear" the floated elements.

  • .u-clear-both,.clear-both{clear:both;}
  • .u-clear-left .clear-left{clear:left;}
  • u-clear-right .clear-right{clear:right;}

Example:

Image, floated right

Duis ut ante est. Suspendisse id tortor augue. Ut mauris dolor, elementum sed faucibus vitae, malesuada nec libero. Sed sed ipsum urna. Duis sed turpis ipsum, vel accumsan eros. Morbi in dolor quam, quis interdum felis. Aliquam commodo leo quis orci mattis eleifend. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc ac leo ac lectus fermentum lobortis. Phasellus dapibus quam id sem congue non aliquet nulla volutpat. Ut ullamcorper nulla nibh. Proin dapibus scelerisque nulla. Nunc pulvinar, odio in malesuada condimentum, libero justo consectetur odio, a volutpat risus orci nec augue. Nam eget tempor dolor. Aliquam in varius elit

Image, floated right, with "u-clear-right"

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut imperdiet aliquet sollicitudin. In lectus metus, rhoncus ut volutpat vel, aliquam nec mauris. Donec vestibulum consequat metus, a eleifend dui porttitor at. Nam cursus porttitor cursus. Cras vulputate adipiscing tortor, sed rutrum velit scelerisque non. Etiam iaculis accumsan sodales. Donec dolor eros, consectetur id aliquet quis, imperdiet sed lorem. In eget libero in ante molestie ullamcorper ut nec diam. Cras semper blandit est, id cursus magna porttitor quis. Vivamus quis dui eu purus ullamcorper adipiscing. Suspendisse rhoncus condimentum bibendum. Suspendisse vulputate neque quis tortor ornare elementum. Integer fringilla consectetur nunc, a mollis risus adipiscing vitae. Nulla varius egestas bibendum. Maecenas orci ipsum, feugiat nec posuere eu, facilisis malesuada mi.

How to:

  • First, add your content. Then add your floated images (or boxes, etc.).
  • Disable rich-text and add the appropriate class to the <p> or <div> you want to clear.
    • Match your clear to your float. If you float right, then clear right.
    • Image code example: <p class="u-clear-right">

Template

  • Basic Page 1
  • Basic Page 2
  • Publication Page for Template Compliancy
  • SI test of datatables
  • Slideshows example for template
  • Style Guide Test Page
  • Template Home
  • Template Test Page 2 for Events
  • Web Form Template
  • test of Boxes
Contact Us About Template Compliancy
Contact Us to ask a question, provide feedback, or report a problem.
Last updated on January 2, 2025
  • Assistance
  • Spanish
  • Arabic
  • Chinese (simplified)
  • Chinese (traditional)
  • French
  • Haitian Creole
  • Korean
  • Portuguese
  • Russian
  • Tagalog
  • Vietnamese
United States Environmental Protection Agency

Discover.

  • Accessibility Statement
  • Budget & Performance
  • Contracting
  • EPA www Web Snapshot
  • Grants
  • No FEAR Act Data
  • Plain Writing
  • Privacy
  • Privacy and Security Notice

Connect.

  • Data
  • Inspector General
  • Jobs
  • Newsroom
  • Regulations.gov
  • Subscribe
  • USA.gov
  • White House

Ask.

  • Contact EPA
  • EPA Disclaimers
  • Hotlines
  • FOIA Requests
  • Frequent Questions
  • Site Feedback

Follow.