Design

Source order and display order should match

Years ago, when using CSS for layout was still rather new, one of the common arguments for using CSS instead of tables for layout was that it enables you to change the layout order without editing your markup.

A typical example is a page with a vertical sub-navigation to the left, a centered content area, and a sidebar to the right. If you use tables for layout you will need to change the HTML to move the columns around, say if you wanted the navigation on the right and the sidebar on the left. With CSS you can change the visual order of the columns without touching the HTML.

But, there is a but.

Read full post

Posted in , .



Adobe InDesign Tips I Wish I’d Known When Starting Out

Advertisement in Adobe InDesign Tips I Wish Id Known When Starting Out
 in Adobe InDesign Tips I Wish Id Known When Starting Out  in Adobe InDesign Tips I Wish Id Known When Starting Out  in Adobe InDesign Tips I Wish Id Known When Starting Out

I love Adobe InDesign. For multi-page documents, it’s the most flexible and complete application out there. Yet I remember how counter-intuitive some things were when I was learning it for the first time. Here are some tips I wish I had known when starting out, as well as some answers to questions that others often ask me. This is not intended to be a manual; some good ones are already out there (although I personally learned by doing). Hopefully, these tips will help you make the best of your day-to-day use of InDesign.

Margins And Bleeds

If you are preparing a document for print, keep your margins and bleeds in mind from the beginning. Your printer will give you the measurements for the bleed, but generally 1/8 inch or 3 mm should suffice. Approximately the same area within the document should be kept free of text and important graphic elements (such as the logo). Set up your document for bleed in InDesign as you create it by selecting the correct settings in the document set-up box.

Smashing-InDesign-1 in Adobe InDesign Tips I Wish Id Known When Starting Out

Master Pages

When you have a multiple-page document, such as a brochure or catalog, using master pages will save you time. Master pages are used to automatically insert layout elements on various pages. All elements of the master page are placed onto any page you choose, and these are by default not selectable, which allows you to further develop the page without worrying about accidentally modifying the pre-defined elements (such as page numbers, grids and guides, and graphic elements).

To set them up, bring up the Pages palette and double-click on “A-Master.�

Smashing-InDesign-2 in Adobe InDesign Tips I Wish Id Known When Starting Out

Add all of the elements that are repeated throughout most of your document: guides, page numbers, a running text box, image frames, graphic elements, etc. You can have more than one set of master pages in a document, which is particularly useful for brochures, whose content often varies (for example, with a mostly textual introduction followed by image-heavy pages).

To apply your master page to new pages, simply drag it from the Master Pages pane onto the Pages pane in the palette. If you’ve already started working on layout elements but forgot to make a master page, you can turn any page into a master page. Just drag it from the Pages pane to the Master Pages pane.

And yes, you can modify master page elements on a particular page if you need to. Triple-click on the element — that is, click on it while holding down Shift +Command (on a Mac) or Shift + Control (Windows). Now you can select and edit it on the page you are working on while leaving it unchanged on all other pages.

Frames

InDesign places your content in frames. This goes for both text and images as well as databases and interactive content.

There are two types of frames: text and image.

Smashing-Indesign-3A in Adobe InDesign Tips I Wish Id Known When Starting OutSmashing-Indesign-3B in Adobe InDesign Tips I Wish Id Known When Starting Out

The text frame is fairly self-explanatory. After creating the shape for a text frame (typically a rectangle, but it could be a circle or a custom shape drawn with the Pen tool), you have two options: either type directly in the frame or import content from another document. To import, go to the File menu and choose Place (or use the shortcut: Command + D on a Mac and Control + D on Windows).

Image frames work in a similar way. After creating an image frame (either by selecting one of the default shapes or drawing one yourself), you can fill it with color or place an image from your computer inside it. Again, this is done by going to FilePlace (or using the shortcut).

Another way to import images and text is to simply drag them onto the document (from Mac’s Finder or Windows Explorer). This will automatically create an image or text frame, import the content and create a link to that file. If you drag content on top of an existing frame, it will replace the existing content but leave the size and cropping intact.

Resizing Content in a Frame

The set of shortcuts for fitting an image to a frame is also useful, and with it you can easily adapt content the way you want. To keep the frame the same size and fit the content proportionally, press Command + Option + Shift + E. (Note that if the image and frame have different proportions, then some white space will be left.)

To fill the frame proportionally, use Command + Option + Shift + C. (If the image and frame have different proportions, then the image will be resized and end up larger than the frame, being cropped the edges.)

To center the content in the frame, use Command + Shift + E. And if you want the image to stay the same and resize the frame instead, then fit the frame to the content with Command + Option + C.

Selecting Frames

Selecting the top frame is easy, but if a lot of frames are overlapping or one is on top of the other, you can cycle through them by holding Command on Mac and Control on Windows and then clicking on the frames to select the lower one. Keep clicking to cycle through them if you have several frames.

Image Formats

InDesign can import many image formats (including JPEG, PNG, EPS, PICT, PDF, PSD and TIFF). If you are preparing a file for print, make sure the images are in an acceptable format. If you’re using a file format that allows for low-resolution settings, such as JPEG, check that the images have a resolution of 300 pixels per inch (PPI) and are saved in CMYK color mode.

Place images at no higher than 100% of their size. That is, if your original image is 3 × 5 inches, don’t blow it up to 12 × 20, because the results would be obviously pixelated.

To be on the safe side, avoid JPEG altogether, and stick with formats that are intended for print, such as EPS and TIFF.

Importing PSD Files

The PSD image format deserves special mention. Being able to import PSD files into InDesign is extremely useful when working with elaborate graphics that have transparent or semi-transparent elements, especially if they are to be placed over colored backgrounds or textures. Another useful feature is the ability to turn the layers in a PSD file on and off directly in InDesign (i.e. without having to open Photoshop).

PSDs take up significant memory, which can sometime cause problems when exporting as PDF. I would recommend avoiding PSD files for simple images that could just as easily be flattened when saved as TIFF or EPS. But in cases where using a PSD file really solves a problem, make sure it is 300 PPI and in CMYK color mode, and keep it at its actual size. And when exporting to PDF, double-check that the transparency flattening is set to high.

Transparency Flattening Presets

You can create custom transparency settings by going to EditTransparency Flattener Presets:

Smashing-Indesign-4B in Adobe InDesign Tips I Wish Id Known When Starting Out

In most cases, the “High Resolution� setting will suffice. You can make sure this preset is used when exporting to PDF by going to FileExport, selecting PDF and then clicking on the “Advanced� tab. You can now set the “Transparency Flattener� option to “High Resolution� by default.

Smashing-Indesign-5B in Adobe InDesign Tips I Wish Id Known When Starting Out

Should You Copy And Paste?

One feature of the Adobe Creative Suite is the ability to copy and paste between its applications. But just because you can do this doesn’t mean you should. Vector files should still be created in Illustrator, and raster images should be saved in Photoshop. Not only will you be able to maintain control of these elements, but you’ll be saved from having to update every single occurrence of a given element in multi-page documents. Keep a given graphic in a separate Illustrator or Photoshop file, and you’ll be able to update all occurrences of it with one click.

Every image in an InDesign document can be viewed from the Links palette. Bring it up by going to WindowLinks or by pressing Command/Control + Shift + D.

Smashing-Indesign-6B in Adobe InDesign Tips I Wish Id Known When Starting Out

You can update placed images or check their locations directly from the Links palette. To bring up the Links menu, select the name of the image and click on the arrow to the right.

Smashing-Indesign-6C in Adobe InDesign Tips I Wish Id Known When Starting Out

Working With Color

InDesign is set up exactly like Illustrator in terms of using colors. You have the option of working with color sliders directly, and in either RGB or CMYK mode (remember to use CMYK if creating a document for print!). Press F5 to bring up the Color palette, and adjust the CMYK values in the sliders to change the color of the fill or stroke.

Smashing-Indesign-7 in Adobe InDesign Tips I Wish Id Known When Starting Out

You could also select a color from the Swatches palette or add a new swatch. Bring up the Swatches palette by pressing F6. Saving a color as a swatch makes sense if you use it frequently. Alternatively, you could import swatches that you’ve already created in Illustrator or Photoshop.

Smashing-Indesign-8 in Adobe InDesign Tips I Wish Id Known When Starting Out

You can also select spot colors from existing libraries, such as Pantone’s. But keep this in mind: if the document will be printed in CMYK only, without using Pantone colors, then you’re better off converting the colors to CMYK so that you get an accurate preview of the result.

Use The Right Black

There seems to be some confusion about the use of rich black, which is made up of all CMYK colors (for example, 40, 40, 30, 100). Rich black is excellent for large areas of black, such as logos and black backgrounds. It prevents fading (to a dull gray), which is especially useful for outdoor posters and flyers.

However, body text should always be in process black (i.e. 100% K) to avoid trapping problems. For the same reason, registration black (which is composed of 100% CMYK) should never be used for body text or thin lines.

Paragraph and Character Styles

The ability to create custom paragraph and character styles is an excellent time-saving feature. This pane is visible in the work area by default, and if you’ve hidden it for some reason, you can bring it up by pressing Command/Control + F11. You can create styles exactly to your liking using many options; and then you can apply them to a portion of text with just one click.

Smashing-Indesign-9 in Adobe InDesign Tips I Wish Id Known When Starting Out

Character styles work in a similar way, but they don’t have to be separated by the paragraph indents. This is very useful for highlighting words and phrases in a paragraph. You can even embed a character style in a paragraph and then define variables to apply it to certain words or before certain characters.

Special Characters

Special characters — an apparently underused InDesign feature — include things like date, page numbers and the “page 1 of (x)â€� format. Special characters free you from having to insert this data by hand (or having to modify it by hand whenever significant changes are in order).

In small documents, minor changes are not a major undertaking, but imagine working on a 164-page catalog or a 200-page book. Manually changing all of the page numbers would be a big hassle (trust me: I know from personal experience). To insert special characters, go to the Edit menu.

Smashing-Indesign-10B in Adobe InDesign Tips I Wish Id Known When Starting Out

Alternatively, simply right-click on active text to bring up the menu. Explore the options; you can insert a variety of symbols, dashes, spaces and indents through this menu, including the very useful “Indent to here.�

Glyphs

These are worth mentioning. With them, you can explore all of the characters in a font, which is handy when you’re looking for a particular symbol or working in a language that has accented characters.

Smashing-Indesign-11 in Adobe InDesign Tips I Wish Id Known When Starting Out

Use Find/Change

Another extremely useful feature for text-heavy documents is Find/Change. I don’t know about you, but in my experience, the longer the text, the greater the chance that the client will ask me to replace all occurrences of a certain phrase or title. When you have a fully laid-out 192-page book with footnotes, glossary and index, the task of manually replacing phrases is rather daunting.

In such cases, smart use of Find/Change comes to the rescue. You can find it under the Edit menu or press Command/Control + F. If it’s an unusual phrase or title, this is fairly easy: type the original phrase and the new one, and hit “Replace all.� There are advanced options to replace hyphens, em dashes and quotation marks as well.

Smashing-Indesign-12D in Adobe InDesign Tips I Wish Id Known When Starting Out

If it’s something complex, such as a word that has to be changed only in titles, you can use the advanced options to isolate some distinguishing feature. For example, if the titles are in a different font than the body text, you can use that. Use the font options in the “Find format� box.

You could include things like empty spaces and paragraph breaks in your search if you know, for example, that the word that has to change is followed by a space. Insert these special characters by clicking the “@� arrow to the right of the Find box, or search for a particular glyph by going to the Glyph tab. Replacing glyphs one by one might be best, so that you can monitor your work and progress.

You can even search for objects by using specific formatting options. For example, if all of your frames have a black stroke, and would like to remove the stroke, you can do so by selecting the appropriate options in the Object tab of the Find/Change box.

Of course, if you use Object Styles, which work like Paragraph Styles, then you don’t need this feature. Still, it’s the fastest way to do it if you’ve forgotten to save the style, or if you’re working on a document created by someone else or if you want to change one detail that’s common to several different saved styles.

Smashing-Indesign-12E in Adobe InDesign Tips I Wish Id Known When Starting Out

Toggle The Preview

Instead of hiding all the guides, you can hit the W key (make sure the text tool isn’t active) to quickly toggle between the document view and the working (or “Normal�) view, which has all of the margins, guides and outlines. I frequently use it for composition checks, because guides tend to distract from the big picture.

Data Import Feature

Few people think this feature is handy. Yet many of us frequently work with tables given to us by clients. The one I run into most often is the Excel spreadsheet of price listings and item features, which I have to make presentable for a catalog or sales collateral. Many designers recreate these tables from scratch to make them clean and attractive, but this can be time-consuming, especially with large tables.

There is a better way. InDesign has an “Import table� feature. You can import the client’s table from Excel and style it however you want. Use the “Place file� option in the File menu (or Command/Control + D), select “Show import options,� and you’ll be able to define the cells to import on the next screen and then style them as a group.

Smashing-Indesign-13 in Adobe InDesign Tips I Wish Id Known When Starting Out

Learn By Doing

Theory is great, and articles like this one can give you quick useful tips, but the best way to learn is by practice. If you are new to InDesign, try this: use an existing layout as a guide (anything you want: a page from a magazine, a poster or a business card), and try to recreate it from scratch. Familiarize yourself with the tools, menus and options. If you get stuck, you can always search for tips and tutorials or ask a friend.

Adobe InDesign is a versatile application, and there is always something new to learn. Have fun exploring it!

Want To Know More?

Here are a few articles that go into more detail on some of the topics we just covered:

(al)


© Lisa for Smashing Magazine, 2011. | Permalink | Post a comment | Smashing Shop | Smashing Network | About Us
Post tags: , , ,


4 Reasons You Should Add Photos or Illustrations to Every Blog Post

always use images in your blog postsHumor me for a moment and go dig out a copy of the White Pages — you remember, it’s that 10-pound behemoth gathering dust under the sink. Now, flip it open to any page and tell me the truth? Are you pulled into the content? Do you have any desire to continue reading or have you already closed it up and moved on to the next thing?

Online or offline, people constantly come across content and make a split-second decision about whether to stay or go. Often, the decision is made before the content is even assessed. It’s a sub-concious decision to leave based purely on looks.

continue reading 4 Reasons You Should Add Photos or Illustrations to Every Blog Post


© Barbara Holbrook for Tutorial Blog | 20 comments | Add to del.icio.us

4 Reasons You Should Add Photos or Illustrations to Every Blog Post is a post from: Tutorial Blog


Why User Experience Cannot Be Designed

Advertisement in Why User Experience Cannot Be Designed
 in Why User Experience Cannot Be Designed  in Why User Experience Cannot Be Designed  in Why User Experience Cannot Be Designed

A lot of designers seem to be talking about user experience (UX) these days. We’re supposed to delight our users, even provide them with magic, so that they love our websites, apps and start-ups. User experience is a very blurry concept. Consequently, many people use the term incorrectly. Furthermore, many designers seem to have a firm (and often unrealistic) belief in how they can craft the user experience of their product. However, UX depends not only on how something is designed, but also other aspects. In this article, I will try to clarify why UX cannot be designed.

Heterogeneous Interpretations of UX

I recently visited the elegant website of a design agency. The website looked great, and the agency has been showcased several times. I am sure it delivers high-quality products. But when it presents its UX work, the agency talks about UX as if it were equal to information architecture (IA): site maps, wireframes and all that. This may not be fundamentally wrong, but it narrows UX to something less than what it really is.

The perception might not be representative of our industry, but it illustrates that UX is perceived in different ways and that it is sometimes used as a buzzword for usability (for more, see Hans-Christian Jetter and Jens Gerken’s article “A simplified model of user experience for practical application�). But UX is not only about human-computer interaction (HCI), usability or IA, albeit usability probably is the most important factor that shapes UX.

Some research indicates that perceptions of UX are different. Still, everyone tends to agree that UX takes a broader approach to communication between computer and human than traditional HCI (see Effie Lai-Chong Law et al’s article “Understanding, scoping and defining user experience: a survey approach�). Whereas HCI is concerned with task solution, final goals and achievements, UX goes beyond these. UX takes other aspects into consideration as well, such as emotional, hedonic, aesthetic, affective and experiential variables. Usability in general can be measured, but many of the other variables integral to UX are not as easy to measure.

Hassenzahl’s Model Of UX

Hassenzahls-model2 in Why User Experience Cannot Be Designed
Hassenzahl’s “Model of User Experience�.

Several models of UX have been suggested, some of which are based on Hassenzahl’s model. This model assumes that each user assigns some attributes to a product or service when using it. As we will see, these attributes are different for each individual user. UX is the consequences of these attributes plus the situation in which the product is used.

The attributes can all be grouped into four main categories: manipulation, identification, stimulation and evocation. These categories can, on a higher level, be grouped into pragmatic and hedonic attributes. Whereas the pragmatic attributes relate to the practical usage and functions of the product, the hedonic attributes relate to the user’s psychological well-being. Understanding the divide can help us to understand how to design products with respect to UX, and the split also clarifies why UX itself cannot be designed.

Manipulation

Hammer-sm in Why User Experience Cannot Be Designed
Hassenzahl explains the hedonic and pragmatic qualities with a hammer metaphor. The pragmatic qualities are the function and a way for us to use that function. However, a hammer can also have hedonic qualities; for instance, if it is used to communicate professionalism or to elicit memories. (Image: Velo Steve)

In this model, the pragmatic attributes relate to manipulation of the software. Essentially, manipulation is about the core functionalities of a product and the ways to use those functions. Typically, we relate these attributes to usability. A consequence of pragmatic qualities is satisfaction. Satisfaction emerges if a user uses a product or service to achieve certain goals and the product or service fulfills those goals.

Examples of attributes that are typically assigned to websites (and software in general) are “supporting,� “useful,� “clear� and “controllable.� The purpose of a product should be clear, and the user should understand how to use it. To this end, manipulation is often considered the most important attribute that contributes to the UX.

Identification

Although manipulation is important, a product can have other functions as well. The first of these is called identification. Think about it: many of the items connected to you right now could probably be used to get an idea of who you are and what you care about, even though some of them would be more important or descriptive than others. The secondary function of an object is to communicate your identity to others. Therefore, to fulfill this function, objects need to enable users to express themselves.

The growth of social media can be explained by this identification function. Previously, we used personal websites to tell the world about our hobbies and pets. Now, we use social media.

Facebook, blogs and many other online services help us to communicate who we are and what we do; the products are designed to support this identification need. MySpace, for example, takes advantage of this identification function; it allows users to customize their profiles in order to express themselves. WordPress and other platforms let bloggers select themes and express themselves through content, just as users do through status updates on Facebook, Twitter and all the other social platforms out there.

Stimulation

Gmail-sm-3 in Why User Experience Cannot Be Designed
Gmail notifies users when they forget to attach a file to an email.

The Pareto principle, also known as the 80-20 rule, states that 80% of the available resources are typically used by 20% of the operations. It has been suggested, therefore, that in traditional usability engineering, features should have to fight to be included, because the vast majority of them are rarely used anyway.

This is necessarily not the case with UX, because rarely used functions can fill a hedonic function called stimulation. Rarely used functions can stimulate the user and satisfy the human urge for personal development and more skills. Certain objects could help us in doing so by providing insights and surprises.

From this perspective, unused functions should not be dropped from software merely because they are used once in a blue moon. If they are kept, they could one day be discovered by a user and give them a surprise and positive user experience. As a result, the user might think “What a brilliant application this is!� and love it even more.

In fact, this is exactly what I thought (and found myself tweeting) when Gmail notified me that I had forgotten to attach the file I’d mentioned in an email. If you do a Twitter search for “gmail attachment,� you’ll probably find many others who feel the same.

Furthermore, I think “Pretty cool!� when YouTube enhances its presence by modifying its logo on Super Bowl Sunday (or Valentine’s Day). I also discovered something new when MailChimp’s monkey whispered, “Psst, Helge, I heard a rumor…� and linked me to a Bananarama song on YouTube. There are many examples, but the best “stimulating� functions are probably those that are unexpected but still welcome (like the Gmail notification).

Evocation

Souvenirs-sm in Why User Experience Cannot Be Designed
Souvenirs tend to have weak manipulative qualities, but they can be evocative when they elicit memories. (Image: meddygarnet)

The fourth function that a product can have, according to Hassenzahl’s model, is evocation, which is about recalling the past through memory. We enjoy talking and thinking about the good old days (even yesterday), and we want objects to help us with this. Even weird, dusty and practically useless souvenirs (with weak manipulative qualities) have evocative function because they help us to recall the past.

In design, we can certainly give a website a vintage look and feel to remind us of our childhood, high school or the ’60s… or the ’30s. But even websites with a modern and minimalist design can have evocative attributes. For instance, don’t Facebook and Flickr (by way of their users and your friends) provide you with a huge number of pictures from the past, some of which are highly evocative?

Thus, UX Cannot Be Designed

Mailchimp-sm in Why User Experience Cannot Be Designed
The MailChimp monkey’s words will probably appeal to some users more than others.

Having said all this, why is it argued that UX cannot be designed? It’s because UX depends not only on the product itself, but on the user and the situation in which they use the product.

You Cannot Design the User

Users are different. Some are able to easily use a website to perform their task. Other simply are not. The stimulation that a product provides depends on the individual user’s experience with similar products. Users compare websites and have different expectations. Furthermore, they have different goals, and so they use what you have made in different modes.

Think about it: when judging the food and service at a restaurant, you will always compare what you experience to other restaurants you have been to. They have shaped your experience. Your companions compare it to their previous experiences, which are certainly different from yours. The same goes for software, websites and apps. Evocative qualities vary even more, simply because all users have a unique history and unique memories.

You Cannot Design the Situation

UX also depends on the context in which the product is used. A situation goes beyond what can be designed. It can determine why a product is being used, and it can shape a user’s expectations.

On some occasions, you may want to explore and take advantage of the wealth of features in WordPress. In other situations, the same functions may make things too complex for you. On some occasions, you may find it totally cool that the MailChimp monkey tells you randomly that, “It’s five o’clock somewhere,� but in other cases it would feel entirely weird and annoying, because you are using the application in a different mode.

Furthermore, UX evolves over time. The first time a user tries an application, they may be confused by it and have a slightly negative experience. Later, when they get used to it and discover its wealth of features and potential and learn how to handle it, they might get emotionally attached to it, and the UX would become more positive.

We Can Design For UX

Rollercoaster in Why User Experience Cannot Be Designed
Are roller coasters fun, thrilling and exciting or just breathtakingly scary? It’s hard to tell. (Image: foilman)

Many designers label themselves “UX designers.� This implies great confidence in the capabilities of the designer; it suggests that the user experience can be designed. But as explained, we cannot do this. Instead, we can design for UX. We can design the product or service, and we can have a certain kind of user experience in mind when we design it. However, there is no guarantee that our product will be appreciated the way we want it to be (again, see Hassenzahl). We can shape neither our users’ expectations nor the situation in which they use what we have designed.

It is certainly possible to have a fairly good idea of the potential ways a user will judge what we make, as Oliver Reichenstein points out. Movies, rhetoric and branding demonstrate as much: they predict certain experiences, and they often achieve their goals, too.

However, a thrilling movie is probably more thrilling in the theater than at home, because the physical environment (i.e. the situation that shapes the UX) is different. In the same way, the effectiveness of an advertisement will always depend on the context in which it is consumed and the critical sense and knowledge of the consumer (i.e. the user’s prior experience). The commercials are designed to elicit certain experiences, but their level of success does not depend solely on the commercials themselves.

The difference between designing UX and designing for UX is subtle but important. It can help us understand and remind us of our limitations. It can help us think of how we want the UX to be.

It has been suggested, for instance, that UX is the sum of certain factors, such as fun, emotion, usability, motivation, co-experience, user involvement and user engagement (for more, see Marianna Obrist et al’s article “Evaluating user-generated content creation across contexts and cultures�). In turn, we must address some of these factors when we design for UX, depending on how we want our product to be perceived. If we want an application to be fun, then we need to add some features that will entertain; a joke, a challenging quiz, a funny video, a competitive aspect or something else. We should keep in mind, however, that, as designers, we can never really predict that the application will be perceived as fun by the user. Users have different standards, and sometimes they aren’t even willing to be entertained.

Extra Credit: How To Design For UX

Facets-of-ux in Why User Experience Cannot Be Designed
Peter Morville’s “Facets of User Experience.� (Image: Semantic Studios)

Understand UX

If we want to design for UX, then we need to understand what UX is all about. For example, knowing which variables make users judge a product might be advantageous, and Hassenzahl’s UX model is one such model for this.

Other models have been suggested as well, such as Peter Morville’s “seven facets of user experience.� Here, UX is split into useful, usable, desirable, findable, accessible, credible and valuable. As you may have noticed, these facets fit Hassenzahl’s model pretty well: useful, usable, findable, credible  and accessible could all be considered as pragmatic (i.e. utilitarian and usability-related) qualities, while desirable and valuable would qualify as hedonic (well-being-related) qualities.

As mentioned, UX has also been viewed as the sum of particular factors. Other models have been suggested as well, some of which are linked to at the bottom of this article.

Understand Users

Following this, we need to understand our users. Traditional methods are certainly applicable, such as user research with surveys, interviews and observation. Also, personas have been suggested as a means of designing for UX, as have UX patterns. Smashing Magazine has already presented a round-up of methods.

Exceed Expectations

Finally, give users what they want — and a little more. In addition to enabling users to use your service effectively and efficiently, make them also think, “Wow, this application is genius.â€� Exceed their expectations desirably. If you do so, they will use your website or app not because they have to but because they want to.

Other Resources

To learn more about UX, you may want to read the following:

(al)


© Helge Fredheim for Smashing Magazine, 2011. | Permalink | Post a comment | Smashing Shop | Smashing Network | About Us
Post tags: , ,


Technical Web Typography: Guidelines and Techniques

Advertisement in Technical Web Typography: Guidelines and Techniques
 in Technical Web Typography: Guidelines and Techniques  in Technical Web Typography: Guidelines and Techniques  in Technical Web Typography: Guidelines and Techniques

The Web is 95% typography, or so they say. I think this is a pretty accurate statement: we visit websites largely with the intention of reading. That’s what you’re doing now — reading. With this in mind, does it not stand to reason that your typography should be one of the most considered aspects of your designs?

Unfortunately, for every person who is obsessed with even the tiniest details of typography, a dozen or so people seem to be indifferent. It’s a shame; if you’re going to spend time writing something, don’t you want it to look great and be easy to read?

Creative and Technical Typography

I’m not sure these two categories are recognized in the industry but, in my mind, the two main types of typography are creative and technical.

Creative typography involves making design decisions such as which face to use, what mood the type should create, how it should be set, what tone it should have — for example, should it be airy, spacious and open (light) or condensed, bold and tight, with less white space (dark)? These decisions must be made on a per-project basis. You probably wouldn’t use the same font on a girl’s party invitation and an obituary. For me, this is creative typography: it is design-related and changes according to its application.

Technical typography is like type theory; certain rules and practices apply to party invitations just as well as they do to obituaries. These are little rules that always hold, are proven to work and are independent of design. The good news is that, because they are rules, even the most design-challenged people can make use of them and instantly raise the quality of their text from bog-standard to bang-tidy.

We’ll focus on technical type in this article. We’ll discuss the intricacies and nuances of a small set of rules while learning the code to create them.

We’ll learn about:

Fair warning: this is an in-depth article. It requires some basic CSS knowledge. If you’d rather learn a little at a time, use the links above to jump from section to section.

If any of the code examples seem out of context or confusing, then here is the final piece that we’re going to create (merely for your reference).

Setting Things Up

To begin, copy and paste this into an index.html file, and save it to your desktop:

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8" />
  <title>Your Name</title>
  <link rel="stylesheet" type="text/css" href="css/style.css" />
</head>
<body>

  <h1>Your Name</h1>

</body>
</html>

Next, copy and paste this (slightly modified) CSS reset into your style.css sheet, and save that to your machine, too:

/*------------------------------------*\
  RESET
\*------------------------------------*/
body, div, dl, dt, dd, ul, ol, li,
h1, h2, h3, h4, h5, h6,
pre, form, fieldset, input, textarea,
p, blockquote, th, td {
  margin: 0;
  padding: 0;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
fieldset, img {
  border: 0;
}
address, caption, cite, dfn, th, var {
  font-style: normal;
  font-weight: normal;
}
caption, th {
  text-align: left;
}
h1, h2, h3, h4, h5, h6 {
  font-size: 100%;
  font-weight: normal;
}
q:before, q:after {
  content: '';
}
abbr, acronym {
  border: 0;
}

/*------------------------------------*\
  MAIN
\*------------------------------------*/
html {
  background: #fff;
  color: #333;
}

Choosing A Font Face

First, let’s choose a face in which to set our project. There is, as you know, a solid base of Web-safe fonts to choose from. There are also amazing services like Fontdeck and Typekit that leverage @font-face to add non-standard fonts in a fairly robust way.

We’re not going to use any of those, though. To prove that technical type can make anything look better, let’s restrict ourselves to a typical font stack.

Let’s use a serif stack for this project, because technical type works wonders on serif faces:

html {
  font-family: Cambria, Georgia, "Times New Roman", Times, serif;
  background: #fff;
  color: #333;
}

Cambria is a beautiful font, specifically designed for on-screen reading and to be aesthetically pleasing when printed at small sizes. If you want to alter this or use a sans-serif stack, be my guest.

On Using Helvetica

If you’d like to use Helvetica in your stack, remember that Helvetica looks awful as body copy on a PC. To alleviate this, use the following trick to serve Helvetica to Macs and Arial to PCs (you can find more details about this trick in Chris Coyier’s recent article Sans-Serif):

html {
  font-family: sans-serif; /* Serve the machine’s default sans face. */
  background: #fff;
  color: #333;
}

Beware! This is a hack. It works by using a system’s default sans font as the font for the page. By default, a Mac will use Helvetica and a PC will use Arial. However, if a user has changed their system preferences, this will not be the case, so use with caution.

Choosing A Font Size

Oliver Reichenstein authored an inspiring article, way back in 2006, stating that the ideal size for type on the Web is 16 pixels: the user agents’ standard. This insightful article changed the way I work with type; it’s well worth a read. We’ll use 16 pixels as a base size, then. If you want to use another font size, feel free, but if you stick with 16 pixels, your CSS should look something like this:

html {
  font-family: Cambria, Georgia, "Times New Roman", Times, serif;
  background: #fff;
  color: #333;
}

If you want to use, say, 12 pixels, it will look like this:

html {
  font-family: Cambria, Georgia, "Times New Roman", Times, serif;
  font-size: 0.75em; /* 16 * 0.75 = 12 */
  background: #fff;
  color: #333;
}

You’ll be left with a basic layout (demo).

Choosing A Grid System

The grid is an amazing tool, and it’s not just for typographical ventures. It ensures order and harmony in your designs.

Some grid systems out there, in my opinion, go a little overboard and offer 30 or more columns, all awkwardly sized. For this tutorial, we’ll use Nathan Smith’s 16-column 960 Grid System (demo). 960.gs is amazing; its beauty lies in its simplicity. It is an ideal size for designs narrower than 1020 pixels, it has a good number of columns, and the numbers are easy to work with. You might also notice that the 960 Grid System only has 940 pixels of usable space. “960� comes from the 10 pixels of gutter space on either side.

Update your CSS to use a guide background image:

html {
  font-family: Cambria, Georgia, "Times New Roman", Times, serif;
  background: url(…/img/css/grid-01.png) center top repeat-y #fff;
  color: #333;
  width: 940px;
  padding: 0 10px;
  margin: 0 auto;
}

You should now have something like this:

02 in Technical Web Typography: Guidelines and Techniques

Choosing A Measure

We have our font size, so now we need to work out our ideal line length, or “measure.� Robert Bringhurst writes in The Elements of Typographic Style that, “anything from 45 to 75 characters is widely regarded as a satisfactory length of line….�

A measure that is too short causes the eye to jump awkwardly from the end of line x to the start of line x + 1, and a measure that’s too long can cause the reader’s eye to double back. You can circumvent this somewhat by following these rules of thumb:

  • for a longer measure, use slightly greater leading;
  • for a shorter measure, use slightly smaller leading.

So, a measure of 45 to 75 characters is the optimum for readability in columns of text. I can pretty much guarantee that after you learn this, every massively, overly long measure you see on the Web will annoy you spectacularly.

Here are 69 characters, a nice middle ground between the recommended 45 and 75:

Lorem ipsum dolor sit amet, consectetuer adipiscing elit accumsan

Paste that into your page, and count how many red columns it covers. This is how wide your measure will be:

03 in Technical Web Typography: Guidelines and Techniques

Here we have text spanning eight columns, which is 460 pixels of 960.gs. Update your CSS to read as follows:

/*------------------------------------*\
  MAIN
\*------------------------------------*/

html {
  font-family: Cambria, Georgia, "Times New Roman", Times, serif;
  background: url(…/img/css/grid-01.png) center top repeat-y #fff;
  color: #333;
}

body {
  width: 460px;
  margin: 0 auto;
}

04 in Technical Web Typography: Guidelines and Techniques

If you picked a font size other than 16 pixels, make sure your measurements reflect this!

Vertical Rhythm: Setting A Baseline

Leading (which rhymes with “wedding�) is a typographical term from way back when typographers manually set type in letterpress machines and the like. The term refers to the act of placing lead between lines of type in order to add vertical space. In CSS, we call this line-height.

Line height should be around 140%. This isn’t a great number to work with, and it’s only a general rule, so we’ll use 150% (or 1.5 em). This way, we simply need to multiply the font size by one and a half to determine our leading.

Some general rules for leading:

  • with continuous copy, use large leading;
  • with light text on dark background, use large leading;
  • with long line lengths, use large leading;
  • with large x-height, use large leading;
  • with short burst of information, use small leading.

If you used a 16-pixel font size, then your line height will be 24 pixels (16 pixels × 1.5 em = 24 pixels). If you used a 12-pixel font size, then your line height will be 18 pixels (12 pixels × 1.5 em = 18 pixels).

The Magic Number

For math-based tips on typography, check out this video on Web type by Tim Brown. The fun starts at 13:35.

The pixel value for your line height (24 pixels) will now be your magic number. This number means everything to your design. All line heights and margins will be this number or multiples thereof. I find it useful to always keep it in mind and stick to it.

Now that we know our general line height, we can define a baseline grid. The grid we currently have aligns only the elements in the y axis (up and down). A baseline grid aligns in the x axis, too. We need to update our background image now to be 24 pixels high and have a solid 1-pixel line at the bottom, like this.

Again, if you chose a font size of 12 pixels and your line height became 18 pixels, then your background image needs to be 18 pixels high with a solid horizontal line on the 18th row of pixels.

Your CSS should now look something like this:

html {
  …
}

body {
  width: 460px;
  margin: 0 auto;
  line-height: 1.5em;
}

Your page should now look something like this:

05 in Technical Web Typography: Guidelines and Techniques

As you can see, the text hovers slightly above the horizontal guideline. This doesn’t mean that anything is set incorrectly; it is merely the offset. This could hinder the process, so either tweak the padding on the body to move the page or alter the position of the background image to move it around a little. Some tinkering in Firebug tells me that the CSS needs to be as follows:

html {
  …
  background: url(…/img/css/grid.png) center -6px repeat-y #fff;
  …
}

That gives me the following — and everything lines up perfectly:

06 in Technical Web Typography: Guidelines and Techniques

Now, let’s get back to the magic number. Maybe you think the text is sitting too close to the top of the screen? Well, to remedy that, we’ll move the text down the page by a multiple of that magic number — let’s say 72 (3 × 24 = 72 pixels). Now adjust your CSS to read:

body {
  width: 460px;
  margin: 0 auto;
  line-height: 1.5em;
  padding-top: 72px;
}

Substitute your own magic number if you used a different font size.

We should get this:

07 in Technical Web Typography: Guidelines and Techniques

It took some doing, but our canvas is ready at last!

Setting A Scale

Okay, our reset has made our h1 and p the same size. We need to get some basic font styles in there. Add this block of code to the end of your CSS:

/*------------------------------------*\
  TYPE
\*------------------------------------*/
/*--- HEADINGS ---*/

h1, h2, h3, h4, h5, h6 {
  margin-bottom: 24px;
  font-weight: bold;
}

/*--- PARAGRAPHS ---*/

p {
  margin-bottom: 24px;
}

Recognize your magic number? Let’s refresh the page and take a look:

08 in Technical Web Typography: Guidelines and Techniques

Your magic number will now be the default margin-bottom value for all of your elements. This, combined with the line height, will keep everything on the baseline grid.

What we now need, though, are some different font sizes for the headings. We need a typographic scale. I suggest this:

  • h1 = 24 pixels,
  • h2 = 22 pixels,
  • h3 = 20 pixels,
  • h4 = 18 pixels,
  • h5 = 16 pixels,
  • h6 = 16 pixels.

Many people work in pixels, but I much prefer working in ems. An em is proportional to the current size of the font: 1 em in 72-point Georgia is 72 points, and 1 em in 8-point Garamond is 8 points.

So, if our base font size is 16 pixels (1 em), then 24 pixels would be 1.5 ems (24 ÷ 16 = 1.5). If we continue, we end up with:

  • h1 = 24 pixels → 24 ÷ 16 = 1.5 ems
  • h2 = 22 pixels → 22 ÷ 16 = 1.375 ems
  • h3 = 20 pixels → 20 ÷ 16 = 1.25 ems
  • h4 = 18 pixels → 18 ÷ 16 = 1.125 ems
  • h5 = 16 pixels → 16 ÷ 16 = 1 ems
  • h6 = 16 pixels → 16 ÷ 16 = 1 ems

Next, we need to make sure the line height of each is 24 pixels. This means that the h1 at a 24-point font size will have a line height of 1 em. Here’s the math:

(magic number) ÷ (font size) = (line height)

Using our scale, the full CSS for the headings (including the math) is:

/*--- HEADINGS ---*/
h1, h2, h3, h4, h5, h6 {
  margin-bottom: 24px;
  font-weight: bold;
}

h1 {
  font-size: 1.5em; /* 24px --> 24 ÷ 16 = 1.5 */
  line-height: 1em; /* 24px --> 24 ÷ 24 = 1 */
}

h2 {
  font-size: 1.375em; /* 22px --> 22 ÷ 16 = 1.375 */
  line-height: 1.0909em; /* 24px --> 24 ÷ 22 = 1.090909(09) */
}

h3 {
  font-size: 1.25em; /* 20px --> 20 ÷ 16 = 1.25 */
  line-height: 1.2em; /* 24px --> 24 ÷ 20 = 1.2 */
}

h4 {
  font-size: 1.125em; /* 18px --> 18 ÷ 16 = 1.125 */
  line-height: 1.333em; /* 24px --> 24 ÷ 18 = 1.3333333(3) */
}

h5, h6 {
  font-size: 1em; /* 16px --> 16 ÷ 16 = 1 */
  line-height: 1.5em; /* 24px --> 24 ÷ 16 = 1.5 */
}

There’s our typographic scale.

Now, to test it, let’s try the following markup:

<body>

  <h1>Your Name</h1>

  <h2>Your Name</h2>

  <h3>Your Name</h3>

  <h4>Your Name</h4>

  <h5>Your Name</h5>

  <h6>Your Name</h6>

  <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit accumsan</p>

</body>

You might notice that not all of the lines of text sit perfectly on a gridline, but that’s okay because they all honor the baseline! This is what I get:

09 in Technical Web Typography: Guidelines and Techniques

You might think that something has gone wrong. But if you look, the paragraph lies just fine once you get back to the normal font size. To be honest, I’m not entirely sure about what causes this effect; the numbers we used are all correct, and the vertical rhythm as a whole remains intact, but individual lines of larger text appear to be offset from the baseline. I think this could be due, in part, to the glyphs’ setting in their em box.

What Next?

Head back into your markup and remove everything except the h1. Now we’re ready to do something useful. Let’s make a little “About you”-page.

The h1 is the name. And the markup can simply be:

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8" />
  <title>Harry Roberts</title>
  <link rel="stylesheet" type="text/css" href="css/style.css" />
</head>

<body>

  <h1>Harry Roberts</h1>

</body>
</html>

Now let’s add a little introductory paragraph about yourself. Mine reads:

<p>Hi there. My name is Harry Roberts.
I am a Web developer and type geek from the UK.
I love all things Web dev, and I am a huge advocate
of Web standards and proper ethics.</p>

Let’s experiment with altering the font size arbitrarily. Add this to your CSS:

*--- PARAGRAPHS ---*/
p {
  margin-bottom: 24px;
}

body > p:first-of-type {
  font-size: 1.125em;
    /* 18px → 18 ÷ 16 = 1.125 */

  line-height: 1.333em;
    /* 24px → 24 ÷ 18 = 1.3333(3) */
}

Here we’re giving the first paragraph — a direct descendant of the body element — a font size of 18 pixels and a line height of 24 pixels. See, there’s your magic number again!

You might again see slight oddities with the paragraph sitting on the baseline. To make sure the vertical rhythm is still intact, duplicate the paragraph once more. You should get this:

10 in Technical Web Typography: Guidelines and Techniques

Here you can see that the vertical rhythm is still intact and working correctly.

Now for the best bits.

Tips on Technical Typography

There’s a good chance that you won’t want the grid to always be on, so change this CSS:

/*------------------------------------*\
  MAIN
\*------------------------------------*/

html {
  font-family: Cambria, Georgia, "Times New Roman", Times, serif;
  background: url(…/img/css/grid.png) center -6px repeat-y #fff;
  color: #333;
}

body {
  width: 460px;
  margin: 0 auto;
  line-height: 1.5em;
  padding-top: 72px;
}

… to this:

/*------------------------------------*\
  MAIN
\*------------------------------------*/

html {
  font-family: Cambria, Georgia, "Times New Roman", Times, serif;
  color: #333;
}

body {
  width: 460px;
  margin: 0 auto;
  line-height: 1.5em;
  padding-top: 72px;
  background: #fff;
}

body:hover {
  background: url(…/img/css/grid.png) center -6px repeat-y #fff;
}

This will show the grid when you hover over the body, and hide it when you don’t.

Spacing And Setting Paragraphs

We’ve sorted out the magic number, and we know we should use it to space the elements, but there’s more than one way to denote the beginning of a new paragraph. One is the method we’re already using: inserting a blank space (one magic number) between the paragraphs. The second is indentation.

Typically, you would indent every paragraph except the first in a body of text; the first paragraph has no indent and the second, third, fourth and so on do have an indent (typically with a width of 1 em).

Enric Jardi writes in Twenty-Two Tips on Typography that, “… you must not use both indentation and a line break at the same time; that is redundant.�

Here’s some quick CSS for indenting only the second and subsequent paragraphs in a body of text:

p {
  margin-bottom: 24px;
}

p+p {
  text-indent: 1em;
  margin-top: -24px;
}

For an explanation of how and why this works, refer to my other article, “Mo’ Robust Paragraph Indenting.� You might also want to look at Jon Tan’s silo.

Alignment

When setting type on the Web, use a range-left, ragged-right style. This basically means left-justifying the type. If you use a sufficiently long measure, then your rags (the uneven edges on the right side of a left-aligned paragraph) will generally be clean; the raggedness of their appearance can, however, be exacerbated at short measures, where a large percentage of each line could end up as white space.

Justified typesetting can look great but lead to unsightly “rivers� in the text. To avoid this, rewrite the copy to remove them, or use something like Hyphenator.js, which is remarkably effective.

Proper Quotations Marks, Dashes And Ellipses

Quotation Marks

Many people are unaware that there are proper quotation marks and “ambidextrous� quotation marks. The single- and double-quotation keys on your keyboard are not, in fact, true quotation marks. They are catch-alls that can function as both left and right single and double quotation marks; they are, essentially, four glyphs in one key.

The reason behind this is simply space. A keyboard cannot feasibly fit proper left and right single and double quotation marks.

So, what is a proper quotation mark? A curly (or “bookâ€�) quotation mark is rounded and more angular than an ambidextrous (keyboard-style) quotation mark. Left single and left double quotation marks look like this: ‘ and “ (&lsquo; and &ldquo;, respectively). Right single and right double quotation marks look like this: ’ and ” (&rsquo; and &rdquo;, respectively).

Many people incorrectly refer to ambidextrous quotation marks as “primes,â€� but a prime is a different glyph. Single and double primes look like this: ′ and ″ (&prime; and &Prime;, respectively). They are used to denote feet and inches (e.g. 5′10″).

I said that one key incorporates four glyphs. In fact, two keys incorporate six glyphs.

Which Quotation Marks Should You Use?

The type of quotation marks to use (double or single) varies from country to country and style guide to style guide. Double quotation marks are typically used to quote a written or spoken source, and single quotation marks are used for quotes within quotes.

However, I much prefer Jost Hochuli’s advice in Detail in Typography: “… the appearance is improved by using the more obtrusive double quotation marks for the less frequent quotations within quotations.� Which basically means, for a nicer appearance, use single quotation marks, and then double quotation marks for quotes within quotes. (If I had a penny for every time I said quotes in this section.)

For example:

‘And then he said to me, “Do you like typography?” And naturally I said that I did.’

Use a right single quotation mark where you’d normally use an apostrophe in text: “I’m a massive typography nerd!� (I&rsquo;m a massive typography nerd!)

In short, stop using those horrible keyboard quotation marks, and start using lovely curly marks in your work.

Non-English Quotation Marks

The quotation marks we’ve covered are used in English, but quotes look different in other languages.

French and Spanish use guillemets, «like this» (&laquo;like this&raquo;). In Danish, they are used »like this« (&raquo;like this&laquo;). In German, using a combination of bottom and regular double quotation marks is common, „like this“ (&bdquo;like this&ldquo;).

For a great overview of other non-English quotation marks, see the Wikipedia entry on “Non-English Usage of Quotation Marks.�

Dashes

We know that keyboards can’t accommodate all quotation marks; and they can’t accommodate all types of dashes either. The hyphen key (-) is another catch-all. There are three main types of dash: the em dash, en dash and hyphen.

The em dash (&mdash;) denotes a break in thought—like this. It’s called the “emâ€� dash because, traditionally, it is one em wide. Em dashes are usually set without spaces on either side (as above).

The en dash (&ndash;) is traditionally half the width of an em dash. It is used to denote ranges, as in “please read pages 17–25â€� (17&ndash;25). It can also denote relational phrases, as in “father–sonâ€� or “New York–London.â€�

The hyphen simply ties together compound words, as in “front-end developer.�

The em dash, en dash and hyphen are different, and each has unique uses.

Ellipsis

An ellipsis is used to denote a thought trailing off. It is also used as a placeholder for omitted text in lengthy quotations.

The ellipsis has become the bane of my life. I often come across people who use a series of dots (periods) in place of a proper ellipsis, like so……

An ellipsis is not three dots. It is one glyph that looks like three dots. Its HTML entity is &hellip; (as in horizontal ellipsis).

So there were a few glyphs for you to use with quotes, primes, dashes and ellipses. Let’s recap:

Name/GlyphHTML entityExample
Quotes and primes
Left single quote ‘ and right single quote ’&lsquo; and &rsquo;‘Hey, this is a quote!’
Left double quote “ and right double quote ”&ldquo; and &rdquo;‘Hey, this is a quote “within another” quote!’
Single prime ′ and double prime ″&prime; and &Prime;The girl is 7′10″!
Dashes
Em dash —&mdash;A break in thought—like this
En dash –&ndash;Ages 2–5
Hyphen -- keyfront-end developer
Ellipsis
Ellipsis …&hellip;To be continued…

In addition to these common glyphs, there are numerous others: from the division symbol (÷ or &divide;) to the section symbol (§ or &sect;). If you’re interested in special characters and glyphs, then Wikipedia’s article on “Punctuationâ€� is a good place to start (just keep clicking from there).

Hanging Punctuation

Punctuation should be hung; quotation marks and bullet points should be clear of the edges of surrounding text. If that doesn’t make sense, don’t worry! Let’s add a new section to your page. Remove that duplicated paragraph and replace it with a list of facts about yourself. Mine looks like this:

<ul>
  <li>
    Web development
    <ul>
      <li>HTML(5)</li>
      <li>CSS(3)</li>
      <li>Accessibility</li>
      <li>Progressive enhancement</li>
    </ul>
  </li>
  <li>
    Web design
    <ul>
      <li>Typography</li>
      <li>Grids</li>
    </ul>
  </li>
</ul>

Add this to the end of your CSS sheet:

/*--- LISTS ---*/
ul, ol {
  margin-bottom: 24px;
    /* Remember, if your magic number is
    different to this, use your own. */
}

ul {
  list-style: square outside;
}

ul ul,
ol ol {
  margin: 0 0 0 60px;
}

My page now looks like this:

11 in Technical Web Typography: Guidelines and Techniques

We’ve given the lists our magic number as a margin, set the bullets to be hung outside of the text (i.e. the bullets will sit in the white of the gutter, not the pink of the column) and indented lists within lists by one grid column.

Experiment by nesting lists more and more deeply:

12 in Technical Web Typography: Guidelines and Techniques

Hang quotation marks as well as bullets. Let’s add some more text and a quote to our page:

<p>Vestibulum adipiscing lectus ut risus adipiscing
mattis sed ac lectus. Cras pharetra lorem eget diam
consectetur sit amet congue nunc consequat. Curabitur
consectetur ullamcorper varius. Nulla sit amet sem ac
velit auctor aliquet. Quisque nec arcu non nulla adipiscing
rhoncus ut nec lorem. Vestibulum non ipsum arcu. Quisque
dapibus orci vitae massa fringilla sit amet viverra nulla.</p>

<blockquote>

  <p>&ldquo;Lorem ipsum dolor sit amet,
  consectetuer adipiscing elit. In accumsan diam
  vitae velit. Aliquam vehicula, turpis sed egestas
  porttitor, est ligula egestas leo, at interdum
  leo ante ut risus.&rdquo;
  <b>&mdash;Joe Bloggs</b></p>

</blockquote>

The markup here is pretty straightforward: a blockquote surrounding a paragraph. You might also notice the use of a b element to mark up the name. The HTML spec states that “The b element [is used for] spans of text whose typical typographic presentation is boldened.� This is a loose definition, so its use for bolding the name of a person is acceptable.

Now, add this to the end of your CSS sheet:

/*--- QUOTES ---*/
blockquote {
  margin: 0 60px 0 45px;
  border-left: 5px solid #ccc;
  padding-left: 10px;
  text-indent: -0.4em;
}

blockquote b {
  display: block;
  text-indent: 0;
}

Here we indent the quote by 60 pixels from the left and right (i.e. 45-pixel margin + 5-pixel border + 10-pixel padding = 60 pixels), taking it in by one column of the grid. We then use a negative text-indent to make the opening quote hang outside of the body of text. The number I used works perfectly for Cambria, but you can experiment with the font of your choice. (Don’t forget to remove the text-indent on the b.) Now we know how to hang bullets and quotation marks.

13 in Technical Web Typography: Guidelines and Techniques

Maybe you’re wondering why I’m using double quotation marks here after recommending single quotation marks. The reason is purely aesthetic. Hanging double quotation marks in blockquote tags simply looks nicer.

Guillemets

Now that we’ve done that, let’s add a “Read moreâ€� link to get us from this little page to, say, our portfolio’s full “Aboutâ€� page. We want to imply direction or movement with this link because it’s going to take us elsewhere. We could, as many people do, use a guillemet (», &raquo;), but — as we covered earlier — French, German and other languages use this glyph as a quotation mark. Therefore, it shouldn’t be used stylistically. Add this markup to your page:

<p><a href="http://csswizardry.com/about/"
class="read-more">Read more</a></p>

Add this to the end of your CSS file:

/*--- LINKS ---*/
a {
  color: #09f;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:active,
a:focus {
  position: relative;
  top: 1px;
}

.read-more:after {
  content: "\00A0\000BB"; /* Insert a space then right angled-quote */
}

This simply places an encoded space and right-angled quotation mark after the “Read more� link by using CSS, which means you don’t have to add that quotation mark to your markup.

14 in Technical Web Typography: Guidelines and Techniques

You can use content:""; to keep the markup clean. This means that other things, such as stylistic right-angled quotation marks and other decorative items of type, can be added with CSS to keep the markup free of non-semantic elements.

Let’s say you wanted to add tildes to either side of a heading:

h1 {
  text-align: center;
}
h1:before {
  content: "\007E\00A0"; /* Insert an tilde, then a space. */
}
h1:after {
  content: "\00A0\007E"; /* Insert a space, then an tilde. */
}

Some Images

Elements such as tables and images are notoriously difficult to fit into baseline grids unless you save every one as a multiple of your magic number. However, we can float images left and right within the y axis of the grid and allow text to fit the baseline around it. Grab an image of yourself (or your cat or whatever) and crop it to a width that fits our 16-column 960.gs. I’m going to use a 160-pixel-wide image (i.e. three grid columns).

Place it in the markup just after your h1, thus:

…
<body>

  <h1>Harry Roberts</h1>

  <img src="img/me.jpg" alt="A photo of me." id="me" />

If you hit “Refreshâ€� now, it will likely break the baseline. Never fear — add this CSS:

/*------------------------------------*\
  IMAGES
\*------------------------------------*/

#me {
  float: right;
  margin: 0 0 0 20px;
  display: block;
  width: 148px;
  height: auto;
  padding: 5px;
  border: 1px solid #ccc;

  -moz-border-radius: 2px;
  -webkit-border-radius: 2px;
  -o-border-radius: 2px;
  border-radius: 2px;
}

Notice how the image doesn’t appear to sit on the baseline, but the rest of the text does? Beautiful, isn’t it?

So, there you have it. Using nothing more than plain ol’ browser text, one image, a lot of typography knowledge and some careful, caring attention, you’ve made a full page of typographic splendor — a page that uses a grid, a baseline, proper punctuation and glyphs, an ideal measure and leading and a typographic scale.

Now get in there! Add elements, subtract them, add colors, add your own creative type. Just remember the few simple rules and your magic number, and you’re away!

15 in Technical Web Typography: Guidelines and Techniques
The final piece, with the grid.

16 in Technical Web Typography: Guidelines and Techniques
The final piece, without the grid.

Final Words

In this admittedly long piece, we have discussed only technical typography. Everything in this article can be applied to almost any project. None of it was speculation; these are tried and tested methods and proven tips for beautiful Web type.

If you’d like to see more creative applications of Web type, then check out the work of the following creatives (each of whom has had much influence on my career so far):

  • Oliver Reichenstein of Information Architects
    A huge inspiration to me and a very knowledgeable guy who has a passion and talent for readable, sensible and beautiful type on the Web.
  • Jon Tan
    Jon’s website is gorgeous. He is a member of the International Society of Typographic Designers (ISTD), and his writings and “silo� (on his personal website) are a hive of typographical information.
  • Jos Buivenga
    Not strictly a Web-type guy, but Jos is the creator of some of the most beautiful (and free!) fonts in existence. His work got me hooked on typography.
  • Khoi Vinh
    His timelessly beautiful website spurred my love for grids. He also recently wrote a book on that very subject.

Keep in mind that you don’t have to be the world’s best designer to create beautiful type. You just have to care.

Further Reading

(al)


© Harry Roberts for Smashing Magazine, 2011. | Permalink | Post a comment | Smashing Shop | Smashing Network | About Us
Post tags: , , ,


  •   
  • Copyright © 1996-2010 BlogmyQuery - BMQ. All rights reserved.
    iDream theme by Templates Next | Powered by WordPress