Publishers of technology books, eBooks, and videos for creative people

Home > Articles > Design > Voices That Matter

How to Overcome Browser Challenges in Web Design

Browsers have different levels of support for CSS features, as well as different interpretations of how to render HTML. By using tools like normalize.css and validating on multiple devices, we can address many of the challenges of web design. However, there’s no substitute for knowing and learning about your audience and working to build them the best site possible, as Christopher Schmitt advises in this chapter from Designing Web and Mobile Graphics: Fundamental concepts for web and interactive projects.
This chapter is from the book
  • “I like the challenge of trying different things and wondering whether it’s going to work or whether I’m going to fall flat on my face.”
  • —Johnny Depp

The Web Environment

Browsers have come a long way to produce a great base experience for visitors, but you might be inadvertently creating a situation where visitors see a different presentation than the one you think you’re giving them.

Revealing Browser Issues

The following screenshots show how one page compares in different browsers: Internet Explorer 9 (Figure 4.1), Safari (Figure 4.2), Chrome (Figure 4.3), Firefox (Figure 4.4), Nexus 7 Chrome (Figure 4.5), Opera (Figure 4.6), and Mobile Safari iOS on an iPad (Figure 4.7).

Figure 4.1

Figure 4.1. A test page in Internet Explorer 9.

Figure 4.2

Figure 4.2. A test page in Safari 6.

Figure 4.3

Figure 4.3. A test page in Chrome.

Figure 4.4

Figure 4.4. A test page in Firefox.

Figure 4.5

Figure 4.5. A test page in Nexus 7 Chrome.

Figure 4.6

Figure 4.6. A test page in Opera.

Figure 4.7

Figure 4.7. A test page in Mobile Safari on an iPad.

TABLE 4.1 showcases which Cascading Style Sheets (CSS) features are supported by various browsers. A “Y” means the browser supports the CSS feature natively. An “N” means the browser does not support it. A “P” means the browser does support the feature, but it needs a custom CSS prefix in order for the feature to display. The custom prefixes will be explained in more detail in Vendor Prefixes later in this chapter.

Table 4.1. CSS Feature Support by Browser

Browser

Columns

Border Image

Gradients

Text Shadows

Internet Explorer 9

N

N

N

Y

Safari 6

P

Y

P

Y

Chrome

P

Y

P

Y

Firefox

P

Y

P

Y

Nexus 7 Chrome

P

P

P

Y

Opera

Y

P

P

Y

Mobile Safari iOS on iPad

P

P

P

Y

Using a Test Page

Now let’s break down the test page to show which features are in it and how they are implemented. The test page covers some basic and advanced CSS functionality:

  • CSS3 multi-column lets you set text in columns. In web design, you don’t see multiple text columns unless the designer manually adjusts the number of words for each column or uses a JavaScript patch.
    div {
     column-count: 4;
    }
  • CSS3 border-image lets you wrap an image around an HTML element. As the HTML stretches as text is added or removed, for example, the image stretches and adapts.
    div {
     column-count: 4;
     border-image: url(border-img.png) 10px;
    }
  • CSS3 gradients sets color transitions in the background of elements.
    div {
     background: linear-gradient(to bottom,
     rgba(30,87,153,1) 0%,
     rgba(41,137,216,1) 50%,
     rgba(32,124,202,1) 51%,
     rgba(125,185,232,1) 100%);
    }
  • CSS3 text-shadows lets you put one or more shadows on text.
    div h1 {
    text-shadow: 0 1px 1px #bbb,
      0 2px 0 #999,
      0 3px 0 #888,
      0 4px 0 #777,
      0 5px 0 #666,
      0 6px 0 #555,
      0 7px 0 #444,
      0 8px 0 #333,
      0 9px 7px #302314;
    }

Color

We perceive the color around us thanks to our eyes, which are electromagnetic spectrum detectors. Colors make up only a small portion of this spectrum, which encompasses x-rays, gamma rays, microwaves, radio waves, all the colors we see, and much more.

A computer screen is made of tiny dots, or pixels, arranged in a grid. These pixels change color depending on what the computer instructs the monitor to display (Figure 4.8).

Figure 4.8

Figure 4.8. Zooming in closely on a raster image shows the blocks of color arranged in a grid like the grid of pixels that makes up the screen.

The screens in our desktop PCs and mobile devices don’t show colors the same way. No universal calibration system for on-screen color currently exists. Color on computer monitors can vary due to the display brand, the video card brand, the screen’s age, the operating system, the amount of ambient light, colors appearing next to each other, and the age and condition of the viewer’s eyes. A further translation happens in printing: some colors that are visible on a screen, where they’re made with light, can’t be printed with any kind of ink or toner (bright, pure blue is the classic example).

No matter how carefully you choose the colors on your screen, they’ll never be absolutely accurate since there is no single standard for displaying them.

Screens and Pixels

Units of measurement are expected to be a constant. The problem with constants is that they change.

Take the humble meter, for example. How we determine the starting and ending point of the meter has altered over human history. In the 17th century, a meter was proposed to be part of the distance of the equator to the North Pole. One ten-millionth of the distance to be exact.

In 1875, a meter was then defined as the length of a platinum-iridium bar created by the International Bureau of Weights and Measures near Paris (see http://museum.nist.gov/object.asp?ObjID=37). Numerous bars of the same length were made and distributed around the world.

Some two hundred years later, the meter transformed again and is no longer tied to a physical object. A meter is now the distance light travels in a vacuum over 1/299,792,458th of a second. What will it be in the future? And don’t ask me what happens to the length of a meter if you happen to be near a black hole, where light can’t escape.

Defining a Pixel

The pixel has similar identity issues. What defines a pixel is a matter of when you ask the question. If you are a web designer working in the 1990s, the pixel would be about 1/96th of an inch and it would be fairly constant across operating systems and monitors. Now when you ask about the size of a pixel, the answer will depend on which kind of pixel you mean.

These days, people aren’t “surfing the World Wide Web” with just the desktop anymore. The web can be accessed on screens that are 3.5 inches diagonal held close to the face, and on 60-inch TVs from across the room. To provide roughly the same experience on this wide range of devices, on-screen elements need to end up looking about the same whether they’re being seen from 10 inches or 10 feet.

Let’s say we set a head’s font size to 24px. If we then look at that head on a retina display and a regular laptop, there should be no difference in size (Figure 4.9).

Figure 4.9

Figure 4.9. The same headline seen in Chrome on an iPhone 5 with a 4-inch, 1136 × 640-pixel screen and in Safari on a MacBook Pro with a 13-inch, 1280 × 800-pixel screen.

The W3C has recommended a standard visual angle pixel size that hardware and software manufacturers can refer to while developing their products. What this means is that web developers can use the CSS pixel as their unit of measurement, and let the browser and OS take care of mapping it to the device pixel, whatever its physical size may be. (There’s just one hitch: so far, a perfect solution for scaling up photographic images hasn’t been found, as we’ll see in Chapter 13, “Images for Responsive Web Design.”) The CSS pixel is an absolute length unit that is anchored to the reference pixel, which is an angular measurement (TABLE 4.2).

Table 4.2. The CSS Pixel and the Reference Pixel

Type

Derived from

Used by

reference pixel

visual angle

physics of light

hardware+OS makers

CSS pixel

fixed+anchored

reference pixel

designers/developers

Accessibility

While monitors continue to improve in terms of color clarity, generating millions of colors as faithfully as possible, there are segments of the population who won’t be able to see them. Seven percent of men cannot distinguish between red and green colors. Can you see the colors in Figure 4.10?

Figure 4.10

Figure 4.10. A “normal” image compared to an image seen as a red-green color blind person sees it.

These deutan color vision deficiencies, along with others, must be taken into consideration when designing with color.

Testing for Color Blindness

To check your design for color blindness issues, there are a couple of online tools.

Color Vision Is Only One Part of Accessibility

Color blindness is just one accessibility issue. Designing for accessibility in general is another of the challenges of web design:

Peachpit Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from Peachpit and its family of brands. I can unsubscribe at any time.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about Peachpit products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites; develop new products and services; conduct educational research; and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email ask@peachpit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by Adobe Press. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.peachpit.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020