I have a page where class names are dynamically generated. The class has the "writing-mode: tb-rl;" property but I would like to add the other properties needed for vertical text in other browsers than IE.
Link to JSFiddle Example: http://jsfiddle.net/VheJd/1/
Full HTML:
<html>
<head>
<title>test page</title>
<style type="text/css">
.dynamic_name {
writing-mode: tb-rl;
/*Would like to find the class by the writing-mode property then add the properties below:*/
/*-webkit-transform: rotate(90deg);
-moz-transform: rotate(90deg);
-o-transform: rotate(90deg);*/
}
</style>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script type="text/javascript">
$(function () {
//find classes with writing-mode: tb-rl and add -moz-transform etc... properties
});
</script>
</head>
<body>
<table>
<tr>
<td class="dynamic_name">text 1</td>
<td class="dynamic_name">text 2</td>
</tr>
<tr>
<td>hello</td>
<td>world</td>
</tr>
</table>
</body>
</html>