|
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 |
DIV#sidebar {position: absolute; top: 0; left: 0; width: 15%; height: 7em;overflow: scroll;}
P.new3 {border-style: ridge dashed double;}The result shown in Figure 7-35 wouldn't bewhat the author had in mind, of course, but it's technicallycorrect. So long as none andsolid are supported, and any other legal valuesare interpreted as solid, that's enough tobe CSS1-compliant. Accordingly, even though Navigator 4.x fails to
To avoid this sort of thing, and to make sure thatH2 elements do not coexist on a line with anyfloated elements, we use the value both. Thisvalue prevents coexistence with floated elements on both sides of theelement, as shown in Figure 7-76:
H2 {clear: both;}


The borders are placed as they are because the border edge of inlineelements is controlled by the font-size, not theline-height. In other words, if aSPAN element has a font-size of