Difference between revisions of "Rotate text"
From JSXGraph Wiki
Jump to navigationJump to searchA WASSERMANN (talk | contribs) |
A WASSERMANN (talk | contribs) |
||
Line 1: | Line 1: | ||
Text can be reotated with CSS transformations. In that case JSXGraph text elements have to be realized with HTML div elements, which is the default case. | Text can be reotated with CSS transformations. In that case JSXGraph text elements have to be realized with HTML div elements, which is the default case. | ||
+ | <html> | ||
+ | <style> | ||
+ | #my_s { | ||
+ | -webkit-transform: rotate(-90deg); | ||
+ | -moz-transform: rotate(-90deg); | ||
+ | filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3); | ||
+ | } | ||
+ | </style> | ||
+ | </html> | ||
<jsxgraph> | <jsxgraph> | ||
var brd = JXG.JSXGraph.initBoard('jxgbox',{boundingbox:[-5,5,5,-5], grid:true}); | var brd = JXG.JSXGraph.initBoard('jxgbox',{boundingbox:[-5,5,5,-5], grid:true}); |
Revision as of 12:28, 15 December 2009
Text can be reotated with CSS transformations. In that case JSXGraph text elements have to be realized with HTML div elements, which is the default case.