[TYPO3-rte] Custom Id-Attribute for Body-Tag?
Uschi Renziehausen
typo3news at otherone.de
Thu Jan 14 10:44:01 CET 2010
Hi all,
my way of doing is that I split up my FE-css in content.css and other css-files, where content.css contains all those
classes that I need in FE and RTE.
Then I have a rte.css that has an @import content.css.
Because I do not allow tagfree classes in my rte.css I do things like this:
div.lightblue,
table.lightblue {}
There are certain occasions where I would like to be able to set the class atrribute of the rte body to a custom value
or at least add it to the default one in order to not have doubled up selectors in my content.css like e.g.
.content a, .htmlarea-content-body a {
color: #2748B1;
text-decoration: none;
background-position: 0px 1ex;
background-repeat: no-repeat;
}
Kind regards, Uschi
Martin Kutschker schrieb:
> Benjamin Wolf schrieb:
>> Hi there,
>>
>> the CSS is use on my site is like the following:
>>
>> #content h1 {color:red};
>>
>> I want to use this stylesheet in the RTE to get the same formatting on the
>> RTE and on the frontend.
>> The problem is that the container needs the ID 'content' to show the correct
>> formatting.
>
> I agree that setting a custom id to the body or an inner wrapper would ease the writing of CSS.
>
> Like Benjamin my CSS often looks like this:
>
> #content h1, .htmlarea-content-body h1 { ...}
>
> Quite burdensome if you have many rules.
>
> Masi
More information about the TYPO3-project-rte
mailing list