B {font-weight: 700;}

Values

normal | bold | bolder | lighter | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900

Default

normal

Inherited

yes

Applies to

Friday 20th of October 2017 03:41:08 AM

Book Home

Cascading Style Sheets: The Definitive GuideSearch this book

Index

Symbols | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z



Library Navigation Links

Copyright © 2002 O'Reilly & Associates, Inc. All Rights Reserved.

combine to determine how a document is laid out. In most cases, theheight and width are automatically determined by the browser, basedon the available display region and other factors. Under CSS, ofcourse, you can assert more direct control over the way elements aresized and displayed. There are different effects to consider forhorizontal and vertical layout, so we'll tackle themseparately.

8.2.1. Vertical Formatting

DIV * {color: purple;}

At first glance, this seems no different than if the* were left out, instead relying on inheritance tocarry the color to all descendants ofDIV. However, there is a very real difference: therule shown would match every DIV descendant, andtherefore override the inheritance mechanism. Thus, even anchors(which are descendants of a DIV) would be madepurple under the given rule, whereas simple inheritance would not besufficient to make them purple.