Dress Up Your Website With Fantastic CSS Tricks

In Part 1 of this series, we discussed the differentTo set all 4 margins at once use
waysof implementing style sheets into your site andBody {margin: 2 in }
the basiclayout of tags. Now, let's move on to someTo set individual margins at once use
of the funways you can dress up your site withBody {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 thattheirtables? This is a pretty advanced topic and not
appearedto have been highlighted with a yellowfor thefaint of heart:
highlighter pen?[
Many sales-oriented sites use this technique toWant 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 Hereno-repeat center}
Pretty simple, really. How about sites that removeThink 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 howtable tag:
aboutmaking the links change colors when you hoverStyle= "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 inwhateveryou'd like.
InternetEver 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 coloredfollowingtag between the tags.
scrollbars instead of boring gray ones. This code onlyFor more information on dressing up your forms with
worksin Internet Explorer 5.5 or higher; NetscapeCSS 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 generatecontrolwith CSS. For more tricks and tips, visit some
thecolored scroll bar tags easily, go toof thesesites:
You'll also find an online tool you can use togenerate[
the code at:[
Page Margins are easy to control with CSS and canUsing 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;