Username:
Password:
Enter your Keywords to
Search the Tips Archives


Search By Date:



    Join the List
    Bravenet Home










Webmaster Tips and Tricks
Newsletter Archives


More magic with style sheets
May 5th, 2003

The old way of attributing properties to text was with font tags.
<font face="Arial,sans-serif" size="4">some text</font>
With the introduction of Cascading Style Sheets, this process becomes far easier.

You can simplify and speed up your coding with css by joining several properties together at one time. An example of this would be
<span style="font: italic bolder 12px arial,sans-serif;">some text</span>

With this, all the text contained within the <span> tags will share the properties as they are listed.

<span style="font: italic bolder 12px arial,sans-serif;">Note that the order that the properties are listed is critical.</span>
Build your very first live Database Driven Website using PHP & MySQL. Instantly apply working code examples from the book to your Website. Get it Now! 295 pages.
Write faster loading, dramatically smaller pages. ‘Now You Too Can Easily Create Modern 'Table-free' Websites Using CSS from scratch’. Get it Now! 480 pages.
All contents copyright 1997-2003 Bravenet Web Services Inc.