Using CSS styles: Difference between revisions
From JSXGraph Wiki
| A WASSERMANN (talk | contribs)  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..." | A WASSERMANN (talk | contribs) No edit summary | ||
| Line 1: | Line 1: | ||
| <html> | <html> | ||
| < | <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]}); | ||
| var txt = board.create('text', [1,2, "Hello world"], {cssClass:'myfont'}); | |||
| </jsxgraph> | </jsxgraph> | ||
Revision as of 09:02, 10 October 2012
