Aswathy S Aswathy S - 1 year ago 134
CSS Question

How to include a custom CSS file in TYPO3

I need to build an Extension in typo3 7.6.I include a css file in setup.txt using

page.IncludeCSS = Ext.Path_to_css_file.css

But the styles in my css file is override by some other custom styles.How can I prevent this.Any Idea? I am new to typo3.Please help me.Thank you in advance.

Answer Source

You have to give each css file you want to include a unique key (e.g. myCssFile1). Also use a colon after the EXT:. So the correct way of including a CSS file with TypoScript would be

page.includeCSS.myCssFile1 = EXT:my_ext/Path/to/css_file.css
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download