| [Index of Lessons] [Advanced Lesson 2] [Advanced Lesson 4] |
A3. Hard Rules |
| Hard Rules NetScape's first HTML extensions offers more formatting options for the <hr> tag (Hard Rule) than was previously shown. The NetScape browser can display the solid line separator with a three- dimensional, shaded look rather than the solid line as implemented in a previous lesson.
Line Thickness where N is the thickness of the line in pixels. Let's look at some examples to show the effect. <hr size=8> : <hr size=30> : Line Width The other formatting option for the <hr> tag is to adjust the width of the line- it does not necessarily have to stretch across the whole page. You can do this by using this format: where X is a number of pixels for the width and Z is the percentage of the current web page. In general it is recommend using the percentage as it will adjust itself the width of the browser window used by the person reading your pages (some out there are using 2-page high resolution monitors while others are squinting into their 13" screen). Here are some examples (notice how the size tag is included): <hr width=50% size=15> : |
|
| No Shading Finally, there may be a case where you do not want the 3D shading on the <hr> tag. It is as simple as: |
| Click on Advanced Lesson 4 to continue, or click here (Top) to return to the top of document |