Formats and Styles

Typography refers to the general appearance of text on your website. Each theme has different styles for the various types of text, based on the look and feel of the site i.e. Heading styles, table styles, paragraph styles.

When adding content to your page, you can use the WYSIWYG toolbar to change the format, improving usability. These formatting options enforce the integrity of site design by only allowing fonts, sizes and styles that are part of the design. The WYSIWYG toolbar allows you to easily change the format to create bold or italic text, bulleted or numbered lists, special characters, and much more. This page provides a visual guide to the various styles for the YaleSites Standard themes.

This is the Alt textHeading 2 sub-head

Second level heading used in the body section of the page. Vel ancillae volutpat eu, est everti dolores definitionem ad, eum noster sapientem similique ea. Te per esse tamquam, pro dicunt aeterno appetere ad. Iusto scripta id vix, ad nam causae inermis definitionem, ad sea vidit habeo.

Heading 3 sub-head

Third level heading used in the body section of the page. Ut illum paulo eam, inani salutatus vis eu. Natum movet libris ius ex, an eum noster feugiat explicari, eu nec graece scribentur. Mel cibo fuisset albucius ut, ferri consul ut has. Primis moderatius consectetuer vim te.

Heading 4 sub-head

Fourth level heading used in the body section of the page. Vim ne summo senserit, justo graeco molestie vis at. Vis corpora pericula eu. Error blandit id qui. Facilisis laboramus honestatis pro ut.

Heading 5 sub-head

Iusto scripta id vix, ad nam causae inermis definitionem, ad sea vidit habeo. Facilisis laboramus honestatis pro ut. Illud ceteros no duo, at ceteros eligendi tincidunt usu.

Heading 6 sub-head

Iusto scripta id vix, ad nam causae inermis definitionem, ad sea vidit habeo. Facilisis laboramus honestatis pro ut. Illud ceteros no duo, at ceteros eligendi tincidunt usu.

Lists

See Create Lists for detailed instructions on how to configure nested lists.

Bulleted List
  • Bulleted list item 1
  • Bulleted list item 2
  • Bulleted list item 3
  • Bulleted list item 4
Numbered List
  1. Numbered list item 1
  2. Numbered list item 2
  3. Numbered list item 3
  4. Numbered list item 4
Nested Lists

You can mix and match bulleted and numbered lists anyway you want.

  1. Step One
  2. Step Two
    • A statement about step two
    • Another statement about step two
  3. Step Three
  4. Step Four
  • Step One
  • Step Two
    1. A statement about step two
    2. Another statement about step two
  • Step Three
  • Step Four

Blockquote. Use the Blockquote button Blockquote button on the WYSIWYG toolbar to add these quotation marks around paragraph text. Sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip.

Tables

Tables should only be used when you have data that needs to be stored in tabular form. CSS, not tables, should be used for layout purposes.

Here is a sample table with a Header text

Header Header Header Header
Data Data Data Data
Data Data Data Data
Data Data Data Data

Here is a table with the Grid Table class

Header Header Header Header
Data Data Data Data
Data Data Data Data
Data Data Data Data
Horizontal Rule

Other Formats
  • Special characters can be used for languages other than English. click on the Special Character icon Special Character icon and choose the character to add.  i.e. ñ ë
  • Superscript and subscript can be used to add characters for math or chemical formulas i.e. H20, 102. Select the character and use the superscript Superscript icon and subscript Subscript icons on the WYSIWYG toolbar.
  • You can use strikethrough to create a line through a word or phrase. Select the word or phrase and use the strikethrough Strikethrough icon icons.

Ligatures

A ligature is a character, stroke or bar that connects two letters. These character combinations are particularly important with the Yale Design Fonts to ensure the proper spacing of the letters when rendering the headings on a browser window.

How was this done?

The YaleSites themes incorporate the Typogrify module to adjust the characters for readability. This solution allows content editors to write the way they normally do without requiring the use of special keystrokes or character maps to produce ligatures. In addition, words keep their correct spelling for accessibility and search engine optimization.

As distributed, the Yale Design fonts have their ffi, ffl and ff characters mapped to non-standard Unicode entity values. This first required correcting the OpenType fonts so that these ligatures were mapped to their standard Unicode values. A JavaScript was then added that looks for headings containing the “f” character strings and replaces these with their Unicode ligatures. Finally, the module was configured to replace typographers quotation marks and dashes. Optional filters for the Typogrify module include:

  • Multiple adjacent capital letters can be made small-caps
  • Ampersands can be made italic

Important Notes:

  • Menus and breadcrumbs only show normal letters, not ligatures. The menu item at left and the breadcrumb item at top reflect the page title.
  • Verdana body text remains unchanged because ligatures in this font do not display properly in Windows, fi ff fl ffi ffl

Examples of Character Combinations

The Yale typeface have been typed as normal letters and they’re replaced with ligatures automatically to ensure proper spacing.

fi ff fl ffi ffl

Roman

Bold

Italic

Bold Italic

Accent and Diacritic Marks: double dash becomes endash, triple dash becomes emdash.

Ò » ñ é ç–ô—ü í…

 ”Straight quotes” are converted to curly quotes, and an initial quote hangs left. A single quotation mark produces an apostrophe. This only applies to header text.

“Jayhawks” & KU fans behave extremely obnoxiously.

Widow control is also enabled in heading text, as demonstrated above.

Hyphens, em dashes and en dashes

There are times when you need to separate words or phrases in the content for your site. In the world of typography, there are distinct differences between a hyphen, en dashes and em dashes used to separate words or phrases. Often, when writing for a website, you need to use cumbersome keystroke combinations to get the correct size of your dash. However, if you follow these simple conventions, the text on your YaleSite will display dashes correctly.

- press the dash key once Separate words or breaks in words such as compound words (How-to Guide, grouped phone numbers 555-860-5086)
– press the dash key twice double dash displays an en-dash; generally joins grouped numbers such as years or pages (1200–1400 B.C. or pages 1–5)
— press the dash key three times triple dash displays an em-dash; used to separate main clauses in a sentence (I love YaleSites — It makes building a web site so easy!

Small Photos Page

This page is all about images and the placement of images in the body area of the page. As you can see from the images below, you can vary the size and location of your images, as well as include captions below the images.

Demo image that demonstrates alt tag

To create an image that spans across the top of the content page, upload an image that is 450px wide and whatever height you want. If you are using this page as a news article, you should put content above the page, otherwise the teaser in the view will not display.

Placing an image to the left of the page

 Here's the alt tagYou can place an image to the left of the text by assigning the Image Left style from the WYSIWYG toolbar. Simply select the image and select the style from the list and the image will float to the left.

 

Placing the image to the right of the page

 Here's the alt tagYou can place an image to the right of the text by assigning the Image Right style from the WYSIWYG toolbar. Simply select the image and select the style from the list and the image will float to the left.

Important Note: The Left and Right image styles do not show up in the list until the image is selected.

Adding the Caption

Captions can now be placed below the image that is entered in the body section of the text. When you add the image, click on the Advanced tab and enter the text in the Advisory Title field. This text displays below the image.

 Here's the alt tagTigerman’s work has earned him critical acclaim and countless awards, especially in Chicago, where his practice has flourished for more than a half-century. The work of his firm has been exhibited more than 300 times in major galleries and art museums around the world, including the Art Institute of Chicago, the Metropolitan Museum and the Museum of Modern Art in New York. In 2007, Tigerman and his partner, Margaret McCurry, were named by Architectural Digest to its list of the top 100 architects and designers in the world.

 Here's the alt tagThe opening of “Ceci n’est pas une reverie” in New Haven coincides with the book launch of Tigerman’s collected writings 1964-2011, titled “Schlepping Through Ambivalence: Essays on an American Architectural Condition,” published by Yale University Press. It also coincides with the release of Tigerman’s autobiography, “Designing Bridges to Burn: Architectural Memoirs by Stanley Tigerman,” published by ORO Editions.

Also on display are such diverse objects as tableware Tigerman designed for Swid Powell, and his designs for Cannon Fieldcrest and Alessi. The exhibit also includes oil paintings from the “I Pledge Allegiance” series in the mid-1960s, “Architoons” and travel sketches from the 1970s onwards. The exhibition will be accompanied by both historical video material of Tigerman’s lectures and interviews, and a new video interview with Tigerman and others, produced by Karen Carter Lynch.

Add syntax highlighting

Syntax highlighting is a feature that allows source code to be formatted and highlighted correctly based on a programming language. To add this to your site:

  1. Enable the Syntax Highlighter module by visiting the Modules page.
  2. Next, visit the Filtered HTML text format page by navigating to Configuration > Content authoring > Text formats > Filtered HTML.
  3. Under Enabled Filters, check Syntax Highlighter, then under Filter processing order below that, drag the Syntax Highlighter filter below the WYSIWYG Filter. This order is important, as syntax highlighting will not work in any other order.
  4. Visit the Syntax highlighter setting page under Configuration > Content authoring > Syntax highlighter. From this page, enable programming languages that should have their syntax highlighted, then Save.
  5. Last, you need to configure the CKEditor button settings. Visit Configuration > Content authoring > CKEditor and edit the Advanced profile. Expand the Editor Appearance fieldset, scroll down to Plugins, and check Plugin file: syntaxhighlight. This will enable the {…} code button on the toolbar.
  6. Scroll down and expand the Advanced options fieldset, and set the Spellchecker setting to No. This disables the automatic Spell Check As You Type feature, since there is an incompatibility with syntax highlighting. Click the Save button to save the CKEditor settings.
  7. You can now edit or create new content, and click the {…} code button on the toolbar to insert source code. Pick a language and enter your code, and it will automatically format it after saving the content.