<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Axelology &#187; CSS</title>
	<atom:link href="http://www.axelscript.com/category/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.axelscript.com</link>
	<description>Axel Jensen on Flex, Coldfusion and... other stuff</description>
	<lastBuildDate>Thu, 29 Dec 2011 17:03:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Improving compile times with runtime css</title>
		<link>http://www.axelscript.com/2008/10/03/improving-compile-times-with-runtime-css/</link>
		<comments>http://www.axelscript.com/2008/10/03/improving-compile-times-with-runtime-css/#comments</comments>
		<pubDate>Fri, 03 Oct 2008 19:36:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[Air]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Flex Builder Tips]]></category>
		<category><![CDATA[VideoBlog]]></category>

		<guid isPermaLink="false">http://www.axelscript.com/?p=170</guid>
		<description><![CDATA[This post is a video showing how embedding fonts and images can have a drastic effect on compile times.  It goes on in the video to show a possible way to improve those compile times with runtime css. Here is the zip of the Project &#8211; SOURCE The Problem When you embed a lot of [...]]]></description>
			<content:encoded><![CDATA[<p>This post is a video showing how embedding fonts and images can have a drastic effect on compile times.  It goes on in the video to show a possible way to improve those compile times with runtime css.</p>
<p>Here is the zip of the Project &#8211; <a href="http://axelscript.com/wp-content/Examples/RuntimeCSS/RuntimeCSS.zip" target="_blank">SOURCE</a></p>
<h4>The Problem</h4>
<p>When you embed a lot of fonts you immediately hurt your compile times.  In the video I go about showing you how just embedding a few fonts can&#8217;t hurt your compile times, I have about 8 fonts embedded and 2 of them with bold font embeddings as well.  This slowed down my compile time to 8 seconds, with barely any mxml, it&#8217;s all css and embedding fonts that caused the issue.  This post goes to show you how to create a separate project to hold your css and how to include it as runtime css in your original project.</p>
<p><span id="more-170"></span></p>
<h4>A (possible) Solution</h4>
<p>The solution is to create a separate project to hold you css and embedded assets, the reason for this is most the time in your development cycle once you are done setting up the style it just sets there&#8230; and then you work on the logic of the application&#8230;</p>
<p>So what you do is create a separate project put your css and the embedded assets in the seperate project, and set its output folder to be the actual project&#8217;s html-template folder, then you right-click the css file and make sure &#8220;Compile CSS to SWF&#8221; is checked.  This tells flexbuilder to compile a swf just for the css file&#8230; NOTE: you may have to make a change to the css file to get it to output the swf.</p>
<p>Once the file is a swf, and the output folder is your destination project you simply use StyleManager.loadStyleDeclarations(&#8216;somecss.swf&#8217;); to load your css on the &#8220;initialize&#8221; event of the main application mxml file.</p>
<p>To also help improve compile times you can try using unicode ranges for you font as well, and only embedding what you need <a href="http://www.axelscript.com/2008/08/20/using-unicode-ranges-for-fonts-because-of-compile-times/" target="_blank">Using unicode ranges for fonts</a></p>
<p>Please see the video for more details</p>
<p> Here is the zip of the Project - <a href="http://axelscript.com/wp-content/Examples/RuntimeCSS/RuntimeCSS.zip" target="_blank">SOURCE</a></p>
<h4>THE VIDEO </h4>
<p>(be patient, it takes a minute to load)<br />
            <object id="csSWF" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="640" height="498" codebase="http://active.macromedia.com/flash7/cabs/ swflash.cab#version=9,0,28,0"><param name="src" value="http://www.axelscript.com/wp-content/Examples/RuntimeCSS/runtimeCSS.swf"/><param name="bgcolor" value="#1a1a1a"/><param name="quality" value="best"/><param name="allowScriptAccess" value="always"/><param name="allowFullScreen" value="true"/><param name="scale" value="showall"/><param name="flashVars" value="autostart=false"/><embed name="csSWF" src="http://www.axelscript.com/wp-content/Examples/RuntimeCSS/runtimeCSS.swf" width="640" height="498" bgcolor="#1a1a1a" quality="best" allowScriptAccess="always" allowFullScreen="true" scale="showall" flashVars="autostart=false" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed></object></p>
<img src="http://www.axelscript.com/?ak_action=api_record_view&id=170&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.axelscript.com/2008/10/03/improving-compile-times-with-runtime-css/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Use CSS to create a drop shadow</title>
		<link>http://www.axelscript.com/2008/02/13/use-css-to-create-a-drop-shadow/</link>
		<comments>http://www.axelscript.com/2008/02/13/use-css-to-create-a-drop-shadow/#comments</comments>
		<pubDate>Wed, 13 Feb 2008 20:44:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.axelscript.com/2008/02/13/use-css-to-create-a-drop-shadow/</guid>
		<description><![CDATA[Short and to the point. View the example Download the File &#60;style&#62; &#60;!&#8211; #title{ font-family:Arial, Helvetica, sans-serif; position:relative; top:5px; left:5px; } #text { color:#000000; position: relative; z-index:2; top:0; left:0; } #shadow { color:#999999; position:absolute; z-index:1; top:1px; left:1px; } &#8211;&#62; &#60;/style&#62; &#60;body&#62; &#60;div id=&#8220;title&#8221;&#62; &#60;a href=&#8220;#&#8221;&#62;&#60;span id=&#8220;text&#8221;&#62;Alice in Wonderland&#60;/span&#62;&#60;/a&#62; &#60;span id=&#8220;shadow&#8221;&#62;Alice in Wonderland&#60;/span&#62; &#60;/div&#62; &#60;/body&#62;]]></description>
			<content:encoded><![CDATA[<p class="body"> 		Short and to the point.<br />
<a href="http://axelscript.com/wp-content/cfwtExamples/Use-CSS-to-create-a-drop-shadow/index.cfm" target="_blank">View the example</a></p>
<p><a href="http://axelscript.com/wp-content/cfwtExamples/Use-CSS-to-create-a-drop-shadow/Use-CSS-to-create-a-drop-shadow.zip" target="_blank">Download the File</a></p>
<p class="code"><span style="color: #000080"><span style="color: #800080">&lt;style&gt;</span></span><br />
&lt;!&#8211;<br />
#title{<br />
font-family:Arial, Helvetica, sans-serif;<br />
position:relative;<br />
top:5px;<br />
left:5px;<br />
}<br />
#text {<br />
color:#000000;<br />
position: relative;<br />
z-index:2;<br />
top:0;<br />
left:0;<br />
}<br />
#shadow {<br />
color:#999999;<br />
position:absolute;<br />
z-index:1;<br />
top:1px;<br />
left:1px;<br />
}<br />
&#8211;&gt;<br />
<span style="color: #000080"><span style="color: #800080">&lt;/style&gt;</span></span> <span style="color: #000080">&lt;body&gt;</span><br />
<span style="color: #000080">&lt;div id=<span style="color: #0000ff">&#8220;title&#8221;</span>&gt;</span><br />
<span style="color: #008000">&lt;a href=<span style="color: #0000ff">&#8220;#&#8221;</span>&gt;</span><span style="color: #000080">&lt;span id=<span style="color: #0000ff">&#8220;text&#8221;</span>&gt;</span>Alice in Wonderland<span style="color: #000080">&lt;/span&gt;</span><span style="color: #008000">&lt;/a&gt;</span><br />
<span style="color: #000080">&lt;span id=<span style="color: #0000ff">&#8220;shadow&#8221;</span>&gt;</span>Alice in Wonderland<span style="color: #000080">&lt;/span&gt;</span><br />
<span style="color: #000080">&lt;/div&gt;</span><br />
<span style="color: #000080">&lt;/body&gt;</span></p>
<p><span id="more-48"></span></p>
<img src="http://www.axelscript.com/?ak_action=api_record_view&id=48&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.axelscript.com/2008/02/13/use-css-to-create-a-drop-shadow/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CHECK THIS LINK OUT!</title>
		<link>http://www.axelscript.com/2008/02/11/check-this-link-out/</link>
		<comments>http://www.axelscript.com/2008/02/11/check-this-link-out/#comments</comments>
		<pubDate>Mon, 11 Feb 2008 18:36:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.axelscript.com/2008/02/11/check-this-link-out/</guid>
		<description><![CDATA[this is a great plug-in for firefox&#8230; it&#8217;s an IE tab plug in, from within firefox&#8230; great for developing, and trying to get css to work. https://addons.mozilla.org/firefox/1419/]]></description>
			<content:encoded><![CDATA[<p class="body"> 		this is a great plug-in for firefox&#8230; it&#8217;s an IE tab plug in, from within firefox&#8230; great for developing, and trying to get css to work. <a href="https://addons.mozilla.org/firefox/1419/" target="_blank">https://addons.mozilla.org/firefox/1419/</a></p>
<p><span id="more-47"></span></p>
<img src="http://www.axelscript.com/?ak_action=api_record_view&id=47&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.axelscript.com/2008/02/11/check-this-link-out/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS and Flex</title>
		<link>http://www.axelscript.com/2008/02/11/css-and-flex/</link>
		<comments>http://www.axelscript.com/2008/02/11/css-and-flex/#comments</comments>
		<pubDate>Mon, 11 Feb 2008 18:25:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.axelscript.com/2008/02/11/css-and-flex/</guid>
		<description><![CDATA[ADOBE EXAMPLES / FLEX 2 THIS IS A GREAT TOOL FOR BEGINNERS AND FLEX UTILIZING CSS!]]></description>
			<content:encoded><![CDATA[<p class="body"> 		<a href="http://examples.adobe.com/flex2/consulting/styleexplorer/Flex2StyleExplorer.html" target="_blank">ADOBE EXAMPLES / FLEX 2 </a> THIS IS A GREAT TOOL FOR BEGINNERS AND FLEX UTILIZING CSS!</p>
<p><span id="more-41"></span></p>
<img src="http://www.axelscript.com/?ak_action=api_record_view&id=41&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.axelscript.com/2008/02/11/css-and-flex/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Browser detection script</title>
		<link>http://www.axelscript.com/2008/02/10/browser-detection-script/</link>
		<comments>http://www.axelscript.com/2008/02/10/browser-detection-script/#comments</comments>
		<pubDate>Sun, 10 Feb 2008 20:08:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Coldfusion]]></category>
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.axelscript.com/2008/02/10/browser-detection-script/</guid>
		<description><![CDATA[Here is a simple browser detection script &#60;cfif Trim(ListGetAt(CGI.HTTP_USER_AGENT, 2, &#8220;;&#8221;)) EQ &#8220;MSIE 6.0&#8243;&#62; &#60;link rel=&#8220;stylesheet&#8221; type=&#8220;text/css&#8221; href=&#8220;css/main_IE6.css&#8221; media=&#8220;screen&#8221; /&#62; &#60;cfelseif Trim(ListGetAT(CGI.HTTP_USER_AGENT, 2, &#8220;;&#8221;)) EQ &#8220;MSIE 7.0&#8243;&#62; &#60;link rel=&#8220;stylesheet&#8221; type=&#8220;text/css&#8221; href=&#8220;css/main_IE7.css&#8221; media=&#8220;screen&#8221; /&#62; &#60;cfelse&#62; &#60;link rel=&#8220;stylesheet&#8221; type=&#8220;text/css&#8221; href=&#8220;css/main_FF.css&#8221; media=&#8220;screen&#8221; /&#62; &#60;/cfif&#62;]]></description>
			<content:encoded><![CDATA[<p class="body">  	Here is a simple browser detection script</p>
<p class="code"><span style="color: #800000">&lt;cfif Trim(ListGetAt(CGI.HTTP_USER_AGENT,<span style="color: #0000ff"> 2</span>, <span style="color: #0000ff">&#8220;;&#8221;</span>)) EQ <span style="color: #0000ff">&#8220;MSIE 6.0&#8243;</span>&gt;</span></p>
<p><span style="color: #000080">&lt;link rel=<span style="color: #0000ff">&#8220;stylesheet&#8221;</span><br />
type=<span style="color: #0000ff">&#8220;text/css&#8221;</span><br />
href=<span style="color: #0000ff">&#8220;css/main_IE6.css&#8221;</span><br />
media=<span style="color: #0000ff">&#8220;screen&#8221;</span><br />
/&gt;</span></p>
<p><span style="color: #800000">&lt;cfelseif Trim(ListGetAT(CGI.HTTP_USER_AGENT,<span style="color: #0000ff"> 2</span>, <span style="color: #0000ff">&#8220;;&#8221;</span>)) EQ <span style="color: #0000ff">&#8220;MSIE 7.0&#8243;</span>&gt;</span></p>
<p><span style="color: #000080">&lt;link rel=<span style="color: #0000ff">&#8220;stylesheet&#8221;</span><br />
type=<span style="color: #0000ff">&#8220;text/css&#8221;</span><br />
href=<span style="color: #0000ff">&#8220;css/main_IE7.css&#8221;</span><br />
media=<span style="color: #0000ff">&#8220;screen&#8221;</span><br />
/&gt;</span></p>
<p><span id="more-36"></span><br />
<span style="color: #800000">&lt;cfelse&gt;</span><br />
<span style="color: #000080">&lt;link rel=<span style="color: #0000ff">&#8220;stylesheet&#8221;</span><br />
type=<span style="color: #0000ff">&#8220;text/css&#8221;</span><br />
href=<span style="color: #0000ff">&#8220;css/main_FF.css&#8221;</span><br />
media=<span style="color: #0000ff">&#8220;screen&#8221;</span><br />
/&gt;</span></p>
<p><span style="color: #800000">&lt;/cfif&gt;</span></p>
<p><span id="more"></span></p>
<img src="http://www.axelscript.com/?ak_action=api_record_view&id=36&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.axelscript.com/2008/02/10/browser-detection-script/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Dynamic Menu in coldfusion</title>
		<link>http://www.axelscript.com/2008/02/10/dynamic-menu-in-coldfusion/</link>
		<comments>http://www.axelscript.com/2008/02/10/dynamic-menu-in-coldfusion/#comments</comments>
		<pubDate>Sun, 10 Feb 2008 18:50:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Coldfusion]]></category>
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.axelscript.com/2008/02/10/dynamic-menu-in-coldfusion/</guid>
		<description><![CDATA[Here is a simple way to do a dynamic menu, there are some limits to this, but it seems to do ok&#8230; style.css /*=========================*/ /* Menu */ #navlist { border-bottom: 1px solid #ccc; margin: 0; padding-bottom: 19px; padding-left: 10px; } #navlist ul, #navlist li { display: inline; list-style-type: none; margin: 0; padding: 0; } #navlist [...]]]></description>
			<content:encoded><![CDATA[<p class="body">Here is a simple way to do a dynamic menu, there are some limits to this, but it seems to do ok&#8230;</p>
<p>style.css</p>
<p class="code"><span style="color: #808080"><em>/*=========================*/</em></span><br />
<span style="color: #808080"><em>/* Menu */</em></span></p>
<p>#navlist<br />
{<br />
border-bottom: 1px solid #ccc;<br />
margin: 0;<br />
padding-bottom: 19px;<br />
padding-left: 10px;<br />
}<br />
<span id="more-21"></span><br />
#navlist ul, #navlist li<br />
{<br />
display: inline;<br />
list-style-type: none;<br />
margin: 0;<br />
padding: 0;<br />
}</p>
<p>#navlist a:link, #navlist a:visited<br />
{<br />
background: #E8EBF0;<br />
border: 1px solid #ccc;<br />
color: #666;<br />
float: left;<br />
font-size: small;<br />
font-weight: normal;<br />
line-height: 14px;<br />
margin-right: 8px;<br />
padding: 2px 10px 2px 10px;<br />
text-decoration: none;<br />
}</p>
<p>#navlist a:link#current, #navlist a:visited#current<br />
{<br />
background: #fff;<br />
border-bottom: 1px solid #fff;<br />
color: #000;<br />
}</p>
<p>#navlist a:hover { color: #f00; }</p>
<p>body.section-1 #navlist li#nav-1 a,<br />
body.section-2 #navlist li#nav-2 a,<br />
body.section-3 #navlist li#nav-3 a,<br />
body.section-4 #navlist li#nav-4 a<br />
{<br />
background: #fff;<br />
border-bottom: 1px solid #fff;<br />
color: #000;<br />
}<br />
<span style="color: #808080"><em>/*==================*/</em></span></p>
<p>menu.cfm</p>
<p class="code"><span style="color: #808080"><em>&lt;!&#8212;&lt;MENU&gt;&#8212;&gt;</em></span></p>
<p><span style="color: #800000">&lt;cfparam name=<span style="color: #0000ff">&#8220;Active&#8221;</span> default=<span style="color: #0000ff">&#8220;id=current&#8221;</span>&gt;</span></p>
<p>&lt;!&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&gt;<br />
<span style="color: #800000">&lt;cfparam name=<span style="color: #0000ff">&#8220;Welcome&#8221;</span> default=<span style="color: #0000ff">&#8220;page1.cfm&#8221;</span>&gt;</span><br />
<span style="color: #800000">&lt;cfparam name=<span style="color: #0000ff">&#8220;WelcomeDisplay&#8221;</span> default=<span style="color: #0000ff">&#8220;All Concerns&#8221;</span>&gt;</span><br />
&lt;!&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&gt;<br />
<span style="color: #800000">&lt;cfparam name=<span style="color: #0000ff">&#8220;SecondPage&#8221;</span> default=<span style="color: #0000ff">&#8220;page2.cfm&#8221;</span>&gt;</span><br />
<span style="color: #800000">&lt;cfparam name=<span style="color: #0000ff">&#8220;SecondPageDisplay&#8221;</span> default=<span style="color: #0000ff">&#8220;Tab two example&#8221;</span>&gt;</span><br />
&lt;!&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&gt;</p>
<p><span style="color: #800000">&lt;cfset Menu = <span style="color: #0000ff">&#8220;#Welcome#,#SecondPage#&#8221;</span>&gt;</span><br />
<span style="color: #800000">&lt;cfset MenuDisplay = <span style="color: #0000ff">&#8220;#WelcomeDisplay#&#8221;</span>,#SecondPageDisplay#&gt;</span></p>
<p><span style="color: #800000">&lt;cfset arrayMenu =  ArrayNew(<span style="color: #0000ff">2</span>)&gt;</span></p>
<p><span style="color: #800000">&lt;cfset arrayMenu[1][1] = #Welcome#&gt;</span><br />
<span style="color: #800000">&lt;cfset arrayMenu[1][2] = #WelcomeDisplay#&gt;</span></p>
<p><span style="color: #800000">&lt;cfset arrayMenu[2][1] = #SecondPage#&gt;</span><br />
<span style="color: #800000">&lt;cfset arrayMenu[2][2] = #SecondPageDisplay#&gt;</span></p>
<p><span style="color: #000080">&lt;div id=<span style="color: #0000ff">&#8220;navcontainer&#8221;</span>&gt;</span><br />
<span style="color: #000080">&lt;ul id=<span style="color: #0000ff">&#8220;navlist&#8221;</span>&gt;</span><br />
<span style="color: #800000">&lt;cfloop from=<span style="color: #0000ff">&#8220;1&#8243;</span> to=<span style="color: #0000ff">&#8220;#ArrayLen(arrayMenu)#&#8221;</span> index=<span style="color: #0000ff">&#8220;i&#8221;</span>&gt;</span><br />
<span style="color: #800000">&lt;cfoutput&gt;</span><br />
<span style="color: #000080">&lt;li id=<span style="color: #0000ff">&#8220;active&#8221;</span>&gt;</span><span style="color: #008000">&lt;a href=<span style="color: #0000ff">&#8220;#arrayMenu[i][1]#&#8221;</span> <span style="color: #800000">&lt;cfif #ListContainsNoCase (arrayMenu[i][1],<span style="color: #0000ff">&#8220;#CGI.SCRIPT_NAME#&#8221;</span>)# is<span style="color: #0000ff"> 1</span>&gt;</span></span> #Active#&gt; <span style="color: #800000">&lt;cfelse&gt;</span> &gt;<br />
<span style="color: #800000">&lt;/cfif&gt;</span>#arrayMenu[i][2]#<span style="color: #008000">&lt;/a&gt;</span><span style="color: #000080">&lt;/li&gt;</span><br />
<span style="color: #800000">&lt;/cfoutput&gt;</span><br />
<span style="color: #800000">&lt;/cfloop&gt;</span><br />
<span style="color: #000080">&lt;/ul&gt;</span><br />
<span style="color: #000080">&lt;/div&gt;</span></p>
<img src="http://www.axelscript.com/?ak_action=api_record_view&id=21&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.axelscript.com/2008/02/10/dynamic-menu-in-coldfusion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

