[TYPO3] tcdirectmail external css file problem
Daniel Schledermann
daniel at typoconsult.dk
Tue Jan 23 13:07:55 CET 2007
Benjamin Todd wrote:
> Hi,
>
>
>
> I am trying to use tcdirectmail and it is working great apart from the
> stylesheet. The mail validity page states that the page uses an external
> stylesheet and tcdirectmail will include it inside the email. The
> problem is, it doesn't :/
:-(
>
>
>
> Have I got something setup worng? Or maybe there is some typoscript to
> convert external css into internal css at runtime?
Depends on how your stylesheet are written. Some like to make a central
style sheet like.
page.includeCSS.styles = fileadmin/templates/styles.css
The style.css file the contains links to other stylesheets like:
@import url('tt_news.css');
@import url('indexed_search.css');
@import url('flexcontent.css');
@import url('content.css');
This setup WONT work. Instead you should include them one by one.
page.includeCSS {
ttnews = fileadmin/templates/tt_news.css
indexedsearch = fileadmin/templates/indexed_search.css
flexcontent = fileadmin/templates/flexcontent.css
content = fileadmin/templates/content.css
}
Even better, identify what styles you plan to use in your newsletter,
and write a stylesheet containing only the styles needed. Remember that
unnessesary styles take up bytes on your newsletter.
Even better yet, write the styles inline in your newsletter. This way
you can also trick hotmail, gmail and the like to display the styles.
Hope it helps.
/Daniel
More information about the TYPO3-english
mailing list