[TYPO3-rte] Custom Id-Attribute for Body-Tag?

Martin Kutschker masi-no at spam-typo3.org
Tue Oct 27 08:57:40 CET 2009


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