| In Part 1 of this series, we discussed the different | | | | To set all 4 margins at once use |
| waysof implementing style sheets into your site and | | | | Body {margin: 2 in } |
| the basiclayout of tags. Now, let's move on to some | | | | To set individual margins at once use |
| of the funways you can dress up your site with | | | | Body {margin: 2% 5% 10% 12% } |
| some standard CSStags. | | | | Did you know some sites even use CSS to lay out |
| Have you ever been to a website and saw text that | | | | theirtables? This is a pretty advanced topic and not |
| appearedto have been highlighted with a yellow | | | | for thefaint of heart: |
| highlighter pen? | | | | [ |
| Many sales-oriented sites use this technique to | | | | Want to keep a background image from tiling on |
| callattention to ad copy they want to stand out. | | | | your pages? |
| The tag looks like this: | | | | Body {background: #333399 url (filename.gif) |
| Text Here | | | | no-repeat center} |
| Pretty simple, really. How about sites that remove | | | | Think indenting paragraphs online is impossible? |
| theunderlining from hyperlinks? Think it can't be done? | | | | P { text-indent: .50in } |
| Think again. Here's how to do it:or like this - | | | | Tables don't have to be boring. You can give em |
| A:link, A:visited, A:active { text-decoration: none } | | | | fancy borders byinserting this instruction into your |
| How about setting your link colors? And how | | | | table tag: |
| aboutmaking the links change colors when you hover | | | | Style= "border: 4px solid red" |
| over them? | | | | You can change the above color and px size to |
| This is easy, too, but be aware it only works in | | | | whateveryou'd like. |
| Internet | | | | Ever notice how almost all submit buttons are all |
| Explorer 5.0 or higher. | | | | dullgray? Yours doesn't have to be. Use the |
| Many sites you go to these days have fancy colored | | | | followingtag between the tags. |
| scrollbars instead of boring gray ones. This code only | | | | For more information on dressing up your forms with |
| worksin Internet Explorer 5.5 or higher; Netscape | | | | CSS seethese tutorials: |
| users will stillsee the standard gray. | | | | These are just a few of the page elements you can |
| If you'd like some free software that will generate | | | | controlwith CSS. For more tricks and tips, visit some |
| thecolored scroll bar tags easily, go to | | | | of thesesites: |
| You'll also find an online tool you can use togenerate | | | | [ |
| the code at: | | | | [ |
| Page Margins are easy to control with CSS and can | | | | Using CSS to dress up your site is really pretty |
| beset in mm,cm,in,points (pt) or pixels (px). | | | | simple. |
| Example: To set a left marginmargin-left: 2.0 in; | | | | |