|
CSS Tutorials |
CSS TutorialsWelcome to the CSS Tutorials. In this section we cover Cascading Style Sheets, the powerful supplement to HTML that allows you complete control over the look of your websites. We'll show you how to create Cascading Style Sheets, and some of the cool tricks you can achieve with them. |
For Beginners...Introduction to CSS CSS Units For Intermediate Users...Controlling Background Images and Colours Controlling Fonts with CSS Controlling Text Appearance with CSS Making Lists Look Nicer with CSS For Advanced Users...CSS Positioning |
If you'll remember, the terminology used in the previous section was that a border with a style of none does not exist. Those words were picked carefully because they help explain what's going on here. Since the border doesn't exist, it can't have any width, so the width is automatically set to 0 (zero). This may seem completely
Here arethe steps a user agent has to go through in order to generate a linebox. First, for each inline nonreplaced element (or string of textoutside of an inline element), the font-size isused to determine the initial content-height.Thus, if an inline element has a font-size of seems simple.
Padding and borders are applied to replaced elements as normal;padding inserts space around the actual content (for example, agraphic) and the border surrounds the padding. What'sinteresting is that these two things actually do influence the heightof the line box. Consider Figure 8-66.

Note that the "first" line box is tall enough to contain
<P STYLE="height: 10em;">
In this case, then the extra height is treated somewhat like extrapadding, as depicted in Figure 8-3.

If, on the other hand, the height isless than that needed to display the content:
<P STYLE="height: 3em;">
then the browser is supposed to provide a way to see all content