|
Printed
from BasicTips.com,
FREE helpful articles
and tips for Webmasters and Business Owners Co-Sponsored by Effective-Website-Secrets.com Category: CSS
Another article you should read is "External, Internal or Inline? Which Method is Best?" to familiarize yourself with why "external" style sheets is the most effective method to use on your site. Ready to learn how to customize your current date feature utilizing CSS (cascading style sheets)? You will find it easy to do, easy to change and pleasing to the eye. Place the following code in your external style sheet: What does this mean and how can you change it to fit your own needs?
First of all, we created a style "class" and name it "date".
We specified the following cosmetic characteristics: font-family: Geneva, Arial, Helvetica, San-serif (change these fonts to whatever you wish and separate each with a comma) font-size: 12 px (change the size to whatever you wish but be sure to keep it in pixels) font-style: italic (change the style to whatever you wish: normal, italic, oblique) color: #999999 (change the color to whatever you wish using a hex color code) text-align: center (change the alignment to whatever you wish: left, right, center, justify) We then assigned this date class to the HTML table cell in our web page that
displays the date. You can assign it to any HTML tag that makes sense for this
feature such as the p (paragraph) tag or span tag too. A working example of what this cosmetic CSS customization looks like is shown on the live example page. |
