css

From Microformats Wiki
Revision as of 20:29, 12 January 2008 by AndyMabbett (talk | contribs) (24 ways: Styling hCards with CSS)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

CSS

The following CSS code may be applied to microformats. Please feel free to modify it to suit your own site.

Objects

To hide objects which exist as part of the include-pattern:

object.include 
	{
	width: 0;
	height: 0;
	display: none;
	}

Telephone numbers

To ensure that telephone numbers are read out properly by aural devices or applications (e.g "one-two-three-four", not "one thousand, two hundred and thirty-four"):

.tel
	{
	speak: spell-out;
	speak-numeral: digits;
	}

External discussion