<html>
<head>
<title>Abakada CSS Demo: text-transform Attribute</title>
<link rel="stylesheet" href="/shared/netdemos.css">
<style type="text/css">
<!--
button { background: #345; color: ddf; font: bold }
-->
</style>
</head>
<body>
<!-- #include virtual="~/shared/top.inc" -->
<div class="header"><h2>Abakada CSS Demo: text-transform Attribute</h2></div>
<hr size=1 width=92%>
<center>
<h5>This example shows the effects of applying the different values possible for the CSS <b>text-transform</b> style attribute.</h5>
<p id="msg"> Select from the text-transform options below to see how the style is applied, and note the resulting CSS syntax for the style declaration. </p>
<h5 id="theSyntax">Syntax { text-transform: none }</h5>
<table cellpadding=5>
<tr>
<td>Options</td>
<td><select name="units" tabindex=1 onchange="chgProp ( this.value )">
<option value="none">none
<option value="capitalize">capitalize
<option value="uppercase">uppercase
<option value="lowercase">lowercase
</select></td>
<td><button onclick="reset ( )">Reset</button></td>
</tr>
</table>
</center>
<script language="JavaScript">
<!--
function chgProp ( tt ) {
msg.style.textTransform = tt;
txt = "Syntax { text-transform: " + tt + " }";
theSyntax.innerText = txt;
}
function reset ( ) {
units.value = "none"
msg.style.textTransform = "none";
theSyntax.innerText = "Syntax { text-transform: none }";
}
//-->
</script>
<hr size=1 width=92%>
<!-- #include virtual="~/shared/viewsrc.inc" -->
</body>
</html>