|
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 ![]() Figure 7-81. Using images as bulletsOf course, you should exercise care in the images you use, as thisexample makes painfully clear (shown in Figure 7-82): ![]() Figure 7-82. Using really big images as bulletsYou should usually provide afallback for the bullet type. Do this justin case your image doesn't load, or gets corrupted, or is in aformat that some user agents might not be able to display (as is the
|
Inhasn't been violated, because the values of the seven properties add up to the required total. It's a semantic dodge, but it's valid behavior.
Let's consider another example, illustrated in Figure 8-20, where the left margin is set to be negative:
DIV {width: 400px; border: 1px solid black;}
P.wide {margin-left: -50px; width: auto; margin-right: 10px;
border: 3px solid gray;}
