Bug #23184
closed
page.CSS_inlineStyle doesn't work
Added by Björn Paulsen over 14 years ago.
Updated over 11 years ago.
Description
In Typo3 4.4 the Setup Code
page.CSS_inlineStyle (
#col3 {margin:0;}
)
makes nothing. But it should set in Frontend
<style>
#col3 {margin:0;}
</style>
(issue imported from #M15120)
Maybe the same mistake as #0014167 for page.inlineJS?
I don't think so!
page.cssInline put the CSS Code in a temporary CSS-File like typo3temp/stylesheet_824112cd03.css?1279048005
But I don't want this. I want a <style></style> Tag. Because <style>-Tag override the CSS-Files and the temporary created CSS-File is the first of all. So all CSS-Styles overwrite "page.cssInline styles".
I have the same Problem. I have updated from TYPO3 4.2.13 to 4.4.1 and have made all changes in the update wizard. After Clearing the Cache the temporary CSS-Files are not created, but linked in the created HTML-Output-Page.
<b>Update:</b>
<i>Workaround:</i>
config.inlineStyle2TempFile = 0
The default-value for this config property has changed with TYPO3 Version 4.0.
In my case clearing the typo3temp-directory with the install-tool has fixed the problem.
Currently I don´t have the Problem anymore.
<b>Update2:</b>
The Problem was the baseUrl. I have moved my TYPO3 Installation from one Server to another. The DNS-Records of the tested Domain directed still to the old Server. But i have tested on the new Server. So the Browser has tried to load the css file from the baseurl. This temporary file don´t exist on the old Server. Changing the baseurl to the domain-name, which i have used to test the new server solved the Problem.
Björn Paulsen, have you still the same problem or was the post from Jens Hirschfeld helpful and we can close this (bug)?
Can not reproduce your problem on trunk version 4.5.
- Status changed from Needs Feedback to Closed
- Target version deleted (
0)
No feedback provided within 90 days. Closing the issue.
Issue confirmed in TYPo3 4.5.6.
If using config.inlineStyle2TempFile = 1 page.CSS_inlineStyle will not add any CSS neither in the external CSS file nor in the HTML source. If config.inlineStyle2TempFile = 1 is set the CSS is rendered inline in the HTML.
Should be reopened.
- Status changed from Closed to New
After some research on a clean TYPO3 4.5.6 installation I must confess I overlooked the second temp CSS file which contains the missing CSS declarations. The second file is at another position (seems like plugin CSS temp file, all includeCSS files, CSS_inlineStyle CSS file). Is there any reason why these inline CSS files wont be merged?
Technically this could be closed again. Sorry for the inconvenience.
according to the last comment, this issue can be closed
thanks
- Status changed from New to Closed
Also available in: Atom
PDF