Dont let headings float

Space should help people see what goes with what on web pages, and one important relationship is that between headings and text. One of the most serious problems on many web pages is that the headings are the same distance from the text before them as they are from the text after them. The headings float in space, seemingly unconnected to the text they cover.

When headings come right on top of the text, you have no question about what text each heading goes with. Look back at the Stanford University page in Figure 7-10 and notice how clear the relationship is between headings and text.

The headings on the web page in Figure 7-12 from a New Zealand health site, however, don't do as well. When I show a page like this one in my workshops, people find lots to like about it. It's broken into small pieces. The sentences are short. It has bold headings. But they also complain that it's hard to know what goes with what. They have trouble putting the headings and text together properly.

What's wrong? The problem is that the headings float in space. To make headings work well, you need to put the active space above the heading and not between the heading and the text it goes with.

For more about headings, see Chapter 10.

Floating headings come naturally with ordinary HTML. To put the headings directly on top of the text they cover, use cascading style sheets (CSS). You get much more with a CSS than just solving the problems of floating headings, but it's worth learning about and using a CSS even if this is the only problem that you have. Keeping the headings from floating is that important!

The space between the introduction to a list and the first list item is a similar problem. Use CSS to remove that space, too. For more on lists, see Chapter 9.

COUGHS, COLDS AND FLU - MYTH S AND FACTS

Myth: An upset stomach Is a symptom of the flu.

COUGHS, COLDS AND FLU - MYTH S AND FACTS

Chicken soup not so hot?

(t people believed ai we old wives' tales about catching ana preventing coles ana flu, they would stock their cupboards with chicken soup an winter and never step cut mio the cold. Bui the myths often have no place m scientific reality so if you wonder whether you should starve a cold and feed a fever (or if you've got fl the wrong way around}. try this qyn (originally written by the American Lung Association),

Myth: Spending time outside in cold weather can cause a cold or flu.

Fact Exposure to cow weather does not bnng on a cold or ft». R can. however, cause pneumonia, which can come about when someone already has the flu. This is the most serious complication of we flu and is more nicely to occur in the elderly and people whose immune systems have been weakened by other medical conditions

Myth: It is possible to catch the flu from a flu shot.

Fact- Ttie flu vaccine a made from an inactive virus, so it is impossible to get the flu from it Some people may be sore where the vaccine * injected and may feel unwell for a couple of days with fever and muscle aches Anyone who is acutely 1 wih fever or is alergic to egg or another component of the vaccine should not get the flu shot

Myth: An upset stomach Is a symptom of the flu.

Fact Stomach o&tress is rarely a symptom of the flu Other viruses, bacteria and food poisoning are more common causes of nausea, vomiting and diarrhoea

Myth: Large doses of vitamin C can prevent colds and cure them quickly.

Fact: This is not proven, although consuming the daily requirement of vitamin C ts good for overall health,

Myth: Herbal treatments such as echinacea and zinc will cure a cold quickly.

To (bar* « no awcbti» *ri*fttffic ftvidenr» can cure or prftxflfit a

Figure 7-12 Put headings closer to the text they go with than to the text of the previous section. Don't let them float in space. Use cascading style sheets to control how you place the headings. www.everybody.co.nz

0 0

Post a comment