<?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>Stillnet Studios &#187; CSS</title>
	<atom:link href="http://www.stillnetstudios.com/category/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.stillnetstudios.com</link>
	<description>Web development notes and commentary from Ryan Stille</description>
	<lastBuildDate>Tue, 27 Jul 2010 14:40:41 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>ColdFusion 9 disabling bold text</title>
		<link>http://www.stillnetstudios.com/cf9-disable-bold-tex/</link>
		<comments>http://www.stillnetstudios.com/cf9-disable-bold-tex/#comments</comments>
		<pubDate>Sat, 20 Feb 2010 02:45:00 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[ColdFusion]]></category>

		<guid isPermaLink="false">http://www.stillnetstudios.com/?p=787</guid>
		<description><![CDATA[One of the problems I looked into this week was why some items on our site that used to be in bold were no longer displaying as such.  Viewing the source showed me that the text was indeed surrounded by &#60;strong&#62; tags. 
Using the awesome Firebug extension for Firefox, I could see that the [...]]]></description>
			<content:encoded><![CDATA[<p>One of the problems I looked into this week was why some items on our site that used to be in bold were no longer displaying as such.  Viewing the source showed me that the text was indeed surrounded by <code>&lt;strong&gt;</code> tags. </p>
<p>Using the awesome Firebug extension for Firefox, I could see that the ext-all.css file was disabling the font-weight on the strong tag.  This was quite surprising to me!</p>
<p>The ext-all.css file will automatically be included on your page whenever you use almost any of the UI features such as cfgrid, cflayout, etc.</p>
<p>You can easily reproduce the problem with this minimal code:</p>
<pre><code>&lt;cflayout type="tab"&gt;&lt;/cflayout&gt;
&lt;strong&gt;This should be bold but its not.&lt;/strong&gt;</code></pre>
<p>You can fix the problem by adding this to your site&#8217;s style sheet, if you have one:</p>
<p><code>strong { font-weight: bold; }</code></p>
<p>If you don&#8217;t use a separate style sheet you can just put it directly into your page like this:</p>
<pre><code>&lt;style type="text/css"&gt;
strong { font-weight: bold; }
&lt;/style&gt;</code></pre>
<p>Hopefully this can be fixed before 9.01 comes out.  I think its a pretty big deal, it disabled tons of bold content on our site.  A lot of our content is created using the FCK rich text editor, which uses strong tags to indicate bold.  I&#8217;ve file a bug report with Adobe, you can vote for this bug here:  <a href="http://cfbugs.adobe.com/cfbugreport/flexbugui/cfbugtracker/main.html#bugId=82156">http://cfbugs.adobe.com/cfbugreport/flexbugui/cfbugtracker/main.html#bugId=82156</a></p>
<p>After looking through the EXT documentation, I think this css originates with the EXT group.  But when Adobe repackages EXT into CF, they need to either override this style it or take it out of the css file completely.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stillnetstudios.com/cf9-disable-bold-tex/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Wrapping tabs in ColdFusion 9</title>
		<link>http://www.stillnetstudios.com/wrapping-cflayout-tabs-cf9/</link>
		<comments>http://www.stillnetstudios.com/wrapping-cflayout-tabs-cf9/#comments</comments>
		<pubDate>Sun, 24 Jan 2010 03:16:22 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[ColdFusion]]></category>

		<guid isPermaLink="false">http://www.stillnetstudios.com/?p=716</guid>
		<description><![CDATA[A while back I wrote a post explaining how to wrap the tabs generated by the new cflayout tab in ColdFusion 8.
The tabs generated by ColdFusion 9 are completely different, since they use Ext version 3.  ColdFusion 8 used Ext 1.
The tabs in ColdFusion 9 do not wrap by default, but they do automatically [...]]]></description>
			<content:encoded><![CDATA[<p>A while back I <a href="/wrapping-cflayout-tabs/">wrote a post</a> explaining how to wrap the tabs generated by the new cflayout tab in ColdFusion 8.</p>
<p>The tabs generated by ColdFusion 9 are completely different, since they use Ext version 3.  ColdFusion 8 used Ext 1.</p>
<p>The tabs in ColdFusion 9 do not wrap by default, but they do automatically add scroll controls so you can scroll through the long horizontal line of tabs.  If you&#8217;d rather have them wrap into multiple lines, this little bit of CSS will do it:</p>
<pre><code>.x-tab-panel ul.x-tab-strip {
    width: auto !important;
}</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.stillnetstudios.com/wrapping-cflayout-tabs-cf9/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Making ColdFusion 9 tabs look similar to CF8 tabs</title>
		<link>http://www.stillnetstudios.com/make-cf9-tabs-look-like-cf8/</link>
		<comments>http://www.stillnetstudios.com/make-cf9-tabs-look-like-cf8/#comments</comments>
		<pubDate>Sun, 17 Jan 2010 04:12:36 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[ColdFusion]]></category>

		<guid isPermaLink="false">http://www.stillnetstudios.com/?p=722</guid>
		<description><![CDATA[One of the things I&#8217;ve noticed as I&#8217;ve been working on our ColdFusion 9 upgrade is that many of the UI components look different than they did in ColdFusion 8.  In many cases I&#8217;m sure this won&#8217;t be a problem.  But my user base is fairly picky, and I think the CF8 to [...]]]></description>
			<content:encoded><![CDATA[<p>One of the things I&#8217;ve noticed as I&#8217;ve been working on our ColdFusion 9 upgrade is that many of the UI components look different than they did in ColdFusion 8.  In many cases I&#8217;m sure this won&#8217;t be a problem.  But my user base is fairly picky, and I think the CF8 to CF9 transition should be seamless to them.  The tabs in CF9 look quite a bit different than they do in CF8.<br />
<span id="more-722"></span><br />
Given this bit of code:</p>
<pre><code>&lt;cflayout name="tabtest" type="tab"&gt;
	&lt;cflayoutarea name="tab1" title="tab one"&gt;
		&lt;p&gt;this is tab number one.&lt;/p&gt;
	&lt;/cflayoutarea&gt;
	&lt;cflayoutarea name="tab2" title="tab two"&gt;
		&lt;p&gt;And here is tab two.&lt;/p&gt;
	&lt;/cflayoutarea&gt;
&lt;/cflayout&gt;</code></pre>
<p>ColdFusion 8 generates a set of tabs that look like this:<br />
<img src="http://www.stillnetstudios.com/wp-content/uploads/2010/01/cf8tabs.png" alt="ColdFusion8 tab example" title="ColdFusion8 tab example" width="325" height="81" class="alignnone size-full wp-image-736" /></p>
<p>Here is what that same code generates in ColdFusion 9.</p>
<p><img src="http://www.stillnetstudios.com/wp-content/uploads/2010/01/cf9tabs.png" alt="ColdFusion 9 tabs example" title="ColdFusion 9 tabs example" width="325" height="81" class="alignnone size-full wp-image-743" /></p>
<p>This is quite a bit different, and in our early user testing they liked the old look better.  So I came up with this CSS:</p>
<pre><code>div.x-tab-panel-header, ul.x-tab-strip-top {
    background-image: none;
    background-color: transparent;
    padding-bottom: 0px;
}

div.x-tab-panel-header {
	border: 0px;
}</code></pre>
<p>With that applied, the ColdFusion9 tabs come out like this:</p>
<p><img src="http://www.stillnetstudios.com/wp-content/uploads/2010/01/cf9tabs_with_css.png" alt="ColdFusion 9 tabs with CSS applied" title="ColdFusion 9 tabs with CSS applied" width="325" height="81" class="alignnone size-full wp-image-745" /></p>
<p>I still don&#8217;t like that in CF9 the tabs jump around as you select different tabs.  This happens because the current selected tab is indicated by a bold label.  The bold text takes up more room, so as you select different tabs everything gets shifted around.   This is especially odd when you are wrapping tabs &#8211; sometimes the wrap point changes when switching between tabs, so a whole tab will jump from one line to another.  I think this could be fixed, too, if you came up with a different way to indicate the current tab.  If someone figures this out and wants to send it to me I&#8217;d appreciate it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stillnetstudios.com/make-cf9-tabs-look-like-cf8/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Wrapping tabs created by cflayout</title>
		<link>http://www.stillnetstudios.com/wrapping-cflayout-tabs/</link>
		<comments>http://www.stillnetstudios.com/wrapping-cflayout-tabs/#comments</comments>
		<pubDate>Thu, 13 Aug 2009 02:09:14 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[ColdFusion]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.stillnetstudios.com/?p=626</guid>
		<description><![CDATA[If you&#8217;ve used the new CF8 UI features to create tabs, you may have run into an issue when you have a lot of them.  By default the tabs will not wrap.  Take this snippet of code for example.  I&#8217;ve added a red border on this 300 pixel div so you can [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;ve used the new CF8 UI features to create tabs, you may have run into an issue when you have a lot of them.  By default the tabs will not wrap.  Take this snippet of code for example.  I&#8217;ve added a red border on this 300 pixel div so you can see the tabs won&#8217;t wrap inside of it:</p>
<pre><code>&lt;div style="font-family: arial; width: 300px; border: 1px solid red;"&gt;
&lt;cflayout type="tab" name="myTabs"&gt;
  &lt;cflayoutarea name="january" title="January 2009"&gt;
     &lt;p&gt;January&lt;/p&gt;
  &lt;/cflayoutarea&gt;
  &lt;cflayoutarea name="february" title="February 2009"&gt;
     &lt;p&gt;February&lt;/p&gt;
  &lt;/cflayoutarea&gt;
  &lt;cflayoutarea name="march" title="March 2009"&gt;
     &lt;p&gt;March&lt;/p&gt;
  &lt;/cflayoutarea&gt;
  &lt;cflayoutarea name="april" title="April 2009"&gt;
     &lt;p&gt;April&lt;/p&gt;
  &lt;/cflayoutarea&gt;
&lt;/cflayout&gt;
&lt;/div&gt;</code></pre>
<p>Imagine that 300 pixel div is your normal content area &#8211; it could be a table or just the width of your browser.  Take a look at what it produces in your browser:<br />
<img src="/wp-content/uploads/2009/08/tabs_nowrap.png" alt="cflayout tabs not wrapping example" title="cflayout tabs not wrapping example" width="404" height="93" class="alignnone size-full wp-image-640" /></p>
<p>In ColdFusion 8 (this might change in CF9?) the tabs generated by cflayout are table data cells.  It would be pretty hard to cause table data cells to wrap within a set of  <code>&lt;tr&gt;&lt;/tr&gt;</code> tags wouldn&#8217;t you think?  It actually is possible though.  If you add this snippet of CSS:</p>
<p><code>&lt;style type="text/css"&gt;<br />
.x-tabs-strip tr {display:block}<br />
.x-tabs-strip td {display:block; float:left}<br />
.x-tabs-strip .on .x-tabs-inner {padding-bottom:4px}<br />
&lt;/style&gt;</code></p>
<p>You&#8217;ll see the tabs now look like this:<br />
<img src="/wp-content/uploads/2009/08/tabs_wrapping.png" alt="example of tabs wrapping" title="example of tabs wrapping" width="316" height="107" class="alignnone size-full wp-image-641" /></p>
<p>If you want to force the tabs to be a specific width, add one more line:<br />
<code>&lt;style type="text/css"&gt;<br />
.x-tabs-strip tr {display:block}<br />
.x-tabs-strip td {display:block; float:left}<br />
.x-tabs-strip .on .x-tabs-inner {padding-bottom:4px}<br />
<strong><em>.x-tabs-wrap table {width:400px}</em></strong><br />
&lt;/style&gt;</code></p>
<p>In most JavaScript frameworks tabs are done using list elements (<code>&lt;li&gt;</code> tags) inside an unordered list (<code>&lt;ul&gt;</code> tag).  This approach is much more flexible.  It will be interesting to see what changes are made to the html generated by the layout tags in ColdFusion9.</p>
<p><strong>Update 1/4/2010</strong> &#8211; The method described above does NOT work in CF9.  The tabs generated in CF9 are done using a much newer version of EXT.  They are no longer based on table data cells, instead they use list items ( &lt;li&gt; tags), like most tab implementations.  <a href="/wrapping-cflayout-tabs-cf9/">Use this CSS</a> to wrap the tabs in CF9.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stillnetstudios.com/wrapping-cflayout-tabs/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>
