Using CSS styles: Difference between revisions

From JSXGraph Wiki
(Created page with "<html> <h1>Test</h1> </html> <jsxgraph width="600" height="600"> var board = JXG.JSXGraph.initBoard('jxgbox', { boundingbox: [-5,5,5,-5], keepaspectratio: true, axis:fals...")
 
No edit summary
Line 1: Line 1:
<html>
<html>
<h1>Test</h1>
<style type="text/css">
.myfont {
    font-family: "Avant Garde", Avantgarde, "Century Gothic", CenturyGothic, "AppleGothic", sans-serif;
    border: 1px solid black;
    padding: 5px;
    border-radius:5px;
    color: red;
}
 
.mySerifFont {
    font-family: Palatino, "Palatino Linotype", "Palatino LT STD", "Book Antiqua", Georgia, serif;
}
 
</style>
</html>
</html>
<jsxgraph width="600" height="600">
<jsxgraph width="600" height="600">
var board = JXG.JSXGraph.initBoard('jxgbox', {
var board = JXG.JSXGraph.initBoard('jxgbox', {boundingbox: [-5,5,5,-5]});
    boundingbox: [-5,5,5,-5],
 
    keepaspectratio: true, axis:false, grid:true
var txt = board.create('text', [1,2, "Hello world"], {cssClass:'myfont'});
    });
 
</jsxgraph>
</jsxgraph>



Revision as of 09:02, 10 October 2012

The JavaScript code