SuperArticlez
 

Fun CSS Tricks You Can Use


CSS or Cascading Style Sheets allow you to implement a few neat effects on your webpages easily. You can implement these CSS effects on your site by simply copying and pasting the code.

ROLLOVER COLOR TEXT LINKS

Have your text links change color when the mouse passes over them by inserting this code into the HEAD of your document:

<style type="text/css"> <!-- A:hover {color:red} --> </style>

LINKS WITH NO UNDERLINE

Remove the underline from any or all of the links on your page by putting this in the HEAD of your document:

<style type="text/css"> <!-- A:link {text-decoration:none} A:visited {text-decoration:none} --> </style>

Or, remove the underline form individual links by forming them like this:

<a href="page.html" style="text-decoration: none">link</a>

LINKS WITH A LINE ABOVE AND BELOW THEM

This is an interesting look that works especially well as a hover attribute for your links, but can also be applied to all of your links. It will show the normal underline and a line above the link:

<style type="text/css"> <!-- A:hover {text-decoration:overline underline} --> </style>

HIGHLIGHTED TEXT

Highlight important text on your page or words you want to stand out, easily:

<span style="background-color:yellow">highlighted text</span>

Try adding it to your link hover for a neat effect:

<style type="text/css"> <!-- A:hover {background-color: orange} --> </style>

BACKGROUND IMAGE THAT ISNT TILED

This will create a background image that doesn't repeat:

<style type="text/css"> <!-- BODY {background: #ffffff url(bg.gif) no-repeat} --> </style>

You can also center it, however it will be centered as the background of the entire document, not centered on the screenful:

<style type="text/css"> <!-- BODY {background: #ffffff url(bg.gif) no-repeat center} --> </style>

Tags

, , , , , , , , , , , , , , ,

Share article "Fun CSS Tricks You Can Use"

Delicious Digg Newsvine Furl Google Yahoo Technorati Facebook

 

Related Articles

Submit an Article

 

 

Latest Articles from Category "Web Development"

Free Online Tools to Design (and Maintain) Your Website

These days, it seems that everyone has a website. Unfortunately, many of these websites are either bland, or sloppily designed by people who don't understand how to use HTML effectively or are intimidated by it. And, they don't have the money to spend on a good page editor, so they limp along using the page templates that their website might provide, or they attempt to use programs like MS Word, which offers conversion to HTML. [Read more]

Keep Them Coming Back - Update Your Site

If you are anything like me, your website is a reflection of yourself. It contains your thoughts and communications, exposed to the entire world at all times. Look at virtually any non-commercial web site and you will get a glimpse at the person behind the monitor. [Read more]

Transforming A Site From Good To Excellent

One of the challenges of moving a web site up from good to excellent is transforming it from just a bunch of web pages and graphics to an interactive experience. Another term for this is community - a place where people can come to communicate with others. The very best web sites have mastered this transformation, thus attracting return visitors again and again. [Read more]

Fun CSS Tricks You Can Use

CSS or Cascading Style Sheets allow you to implement a few neat effects on your webpages easily. You can implement these CSS effects on your site by simply copying and pasting the code.ROLLOVER COLOR TEXT LINKSHave your text links change color when the mouse passes over them by inserting this code into the HEAD of your document:<style type="text/css"><!--A:hover {color:red}--></style>LINKS WITH NO UNDERLINERemove the underline from any or all of the links on your page by putting this in the HEAD of your document:<style type="text/css"><!--A:link {text-decoration:none}A:visited {text-decoration:none}--></style>Or, remove the underline form individual links by forming them like this:<a href="page. [Read more]

 

Copyright © 2008 SuperArticlez. All Rights Reserved. SuperArticlez RSS feed (all posts)