<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "How to include custom CSS"]]></title>
		<link>http://mango.serotoninsoftware.com/forum/posts/list/1.page</link>
		<description><![CDATA[Latest messages posted in the topic "How to include custom CSS"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>How to include custom CSS</title>
				<description><![CDATA[ In order to format the view effectively, I am using a server-side script as follows:<br /> mytxt='&lt;style type="text/css"&gt;.PCMSBox {'<br /> mytxt+='height: 70px;'<br /> mytxt+='width:  70px;'<br /> mytxt+='border: 2px solid orange;'<br /> mytxt+='background-color: yellow;'<br /> mytxt+='text-align:center;'<br /> mytxt+='	font-size: 20px;'<br /> mytxt+='	font-weight: bold;'<br /> mytxt+='}&lt;/style&gt;'<br /> mytxt+='&lt;div class="PCMSBox"&gt;'<br /> mytxt+=htmlText<br /> mytxt+='&lt;/div&gt;'<br /> return mytxt<br /> <br /> This formats the point value into a 70x70 box for display. Is there any way to put the CSS style declaration in a file so that it is available client side? This way, if I decide to change the border from orange to green, for example, I wouldn't have to change the script for each point, but rather just change 1 css definition. I tried to add to common.css and include the css in the html script, but it did not work for some reason.]]></description>
				<guid isPermaLink="true">http://mango.serotoninsoftware.com/forum/posts/preList/456/2181.page</guid>
				<link>http://mango.serotoninsoftware.com/forum/posts/preList/456/2181.page</link>
				<pubDate><![CDATA[Mon, 19 Jul 2010 17:37:25]]> GMT</pubDate>
				<author><![CDATA[ shriniarole]]></author>
			</item>
			<item>
				<title>Re:How to include custom CSS</title>
				<description><![CDATA[ Putting your CSS in common.css should work.]]></description>
				<guid isPermaLink="true">http://mango.serotoninsoftware.com/forum/posts/preList/456/2196.page</guid>
				<link>http://mango.serotoninsoftware.com/forum/posts/preList/456/2196.page</link>
				<pubDate><![CDATA[Wed, 21 Jul 2010 11:24:43]]> GMT</pubDate>
				<author><![CDATA[ mlohbihler]]></author>
			</item>
			<item>
				<title>Re:How to include custom CSS</title>
				<description><![CDATA[ I got the effect I needed.. but not through the common.cs<br /> <br /> I discovered that if I had a server-side script on the view that had a style definition in it, I could use that definition in any html/script tag on the view. So -- I just created a placeholder server side script to hold the css and used those style defs in the other points.. <br /> <br /> I'd still prefer to use common.cs though -- so I'll play with that some more. So far, no luck though.<br /> ]]></description>
				<guid isPermaLink="true">http://mango.serotoninsoftware.com/forum/posts/preList/456/2206.page</guid>
				<link>http://mango.serotoninsoftware.com/forum/posts/preList/456/2206.page</link>
				<pubDate><![CDATA[Wed, 21 Jul 2010 12:46:16]]> GMT</pubDate>
				<author><![CDATA[ shriniarole]]></author>
			</item>
			<item>
				<title>Re:How to include custom CSS</title>
				<description><![CDATA[ Putting your styles in a view element will work, but of course only on that view. ]]></description>
				<guid isPermaLink="true">http://mango.serotoninsoftware.com/forum/posts/preList/456/2207.page</guid>
				<link>http://mango.serotoninsoftware.com/forum/posts/preList/456/2207.page</link>
				<pubDate><![CDATA[Wed, 21 Jul 2010 13:07:39]]> GMT</pubDate>
				<author><![CDATA[ mlohbihler]]></author>
			</item>
			<item>
				<title>Re:How to include custom CSS</title>
				<description><![CDATA[ Ah! Got it to work. Stupid mistake. I add a comment to the CSS before my declaration and used the hash mark (too much shell scripting lately) rather than the /* */ comment... Once I changed that, it works great.<br /> <br /> In case anyone else wants to do, here is what I did:<br /> <br /> common.css as following lines:<br /> /* custom CSS -- S. Arole. */<br /> .PCMSBox {<br />     height: 70px;<br />     width:  70px;<br />     border: 2px solid orange;<br />     background-color: yellow;<br />     text-align:center;<br /> 	font-size: 20px;<br /> 	font-weight: bold;<br /> }<br /> <br /> and the server-side script tag has the following:<br /> mytxt='&lt;div class="PCMSBox"&gt;'<br /> mytxt+=htmlText<br /> mytxt+='&lt;/div&gt;'<br /> return mytxt<br /> <br /> Thanks!]]></description>
				<guid isPermaLink="true">http://mango.serotoninsoftware.com/forum/posts/preList/456/2208.page</guid>
				<link>http://mango.serotoninsoftware.com/forum/posts/preList/456/2208.page</link>
				<pubDate><![CDATA[Wed, 21 Jul 2010 13:10:59]]> GMT</pubDate>
				<author><![CDATA[ shriniarole]]></author>
			</item>
	</channel>
</rss>
