[TYPO3-UG Italy] RE. formatare il testo al centro

kingster46 kingster46 at libero.it
Mon Sep 28 20:14:36 CEST 2009


Ciao Nicola, controllato, niente, non compare la classe che allinea il testo, penso si debba inserire la parte che ho evidenziato in rosso ( come scritto sulla guida di typo3 ) , purtroppo però non riesco a trovare dove, hai per caso una qualche idea?
Grazie
saluti
Cesare

Using Your Own CSS Styles
It is possible to combine the CSS styles of the editor with those of the front-end page. The styles used in the editor can also be used for the creation of the web pages. The CSS statements for the alignment of text, for instance, is one of these styles. In order for these CSS styles to be used, the HTMLArea CSS file must be loaded in the
front end.
page.includeCSS {
file1 = fileadmin(mycss.css
file2 = typo3/sysext/rtehtmlarea/htmlarea/plugins/DynamicCSS/
dynamic.css
In order to be able to use your own styles in the editor, the dynamic.css file has to be customized. Simply add the desired CSS definitions.
p.mytext{color:#fff000; border:solid 1px}
In addition, the CSS classes have to be activated. To do that, the TSConfig field of the root page is expanded with the following entry:
RTE.default.classes.Paragraph = mytext
Now you can mark the desired text in the editor and format it with the newly installed CSS style in the selection box. And since the CSS file is also used in the front end, this new CSS style is indeed used.
Using Your Own CSS Styles
It is possible to combine the CSS styles of the editor with those of the front-end page. The styles used in the editor can also be used for the creation of the web pages. The CSS statements for the alignment of text, for instance, is one of these styles. In order for these CSS styles to be used, the HTMLArea CSS file must be loaded in the
front end.
page.includeCSS {
file1 = fileadmin(mycss.css
file2 = typo3/sysext/rtehtmlarea/htmlarea/plugins/DynamicCSS/
dynamic.css
In order to be able to use your own styles in the editor, the dynamic.css file has to be customized. Simply add the desired CSS definitions.
p.mytext{color:#fff000; border:solid 1px}
In addition, the CSS classes have to be activated. To do that, the TSConfig field of the root page is expanded with the following entry:
RTE.default.classes.Paragraph = mytext
Now you can mark the desired text in the editor and format it with the newly installed CSS style in the selection box. And since the CSS file is also used in the front end, this new CSS style is indeed used.


More information about the TYPO3-UG-Italy mailing list