Welcome, Guest
Please Login or Register.    Lost Password?
Go to bottomPage: 1
TOPIC: Embedded CSS
#1315
Embedded CSS 3 Years, 7 Months ago Karma: 0
Is there a reason you have embedded the container and content in the index.php file?
earthrat
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#1316
Re:Embedded CSS 3 Years, 7 Months ago Karma: 12
Yes. This is to make use of php to detect if modules are published left or right. External style sheets could have been used but would have been more server requests for what equates to a couple of bytes of code.
Bambi
Moderator
Posts: 343
graphgraph
User Offline Click here to see the profile of this user
Gender: Male bambii7@msn.com Location: New Zealand Birthday: 12/21
The administrator has disabled public write access.
 
#1321
Re:Embedded CSS 3 Years, 7 Months ago Karma: 41
Hi Earthrat,
We have combined just a tiny amount of CSS into the PHP - just that which contains the column width information - Only the little snippet that pertains to your module layout will be publised - e.g. the source code for the demo home page at casenano.com shows:

<!--
#content {
padding-left:0px;
width: 500px;
}

#container {
background-image:url(/templates/polarbearpro/ images/body.png);
}

-->

It really is a negligible amount of markup, as Bambii said, but if it concerns you, and you intend to use only one of the column configurations for your whole site (1,2 or 3), then you could easily strip out the dynamic php and move the column width css into template.css - It would take less than 1KB off your page load.

Let us know if you have any more questions.
Big Bear
Administrator
Posts: 1004
graph
User Offline Click here to see the profile of this user
Joomla Templates
The administrator has disabled public write access.
 
Go to topPage: 1
Moderators: Support
 
JOOMLA TEMPLATES Joomla Templates By JoomlaBear