<?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>Codedrop™ Weblog &#187; CSS</title>
	<atom:link href="http://www.codedrop.ca/blog/archives/tag/css/feed" rel="self" type="application/rss+xml" />
	<link>http://www.codedrop.ca/blog</link>
	<description>Drop'n some code and other tech tidbits...</description>
	<lastBuildDate>Mon, 26 Jul 2010 16:45:02 +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>SelectorGadget makes identifying page elements a breeze!</title>
		<link>http://www.codedrop.ca/blog/archives/208</link>
		<comments>http://www.codedrop.ca/blog/archives/208#comments</comments>
		<pubDate>Tue, 12 Jan 2010 04:51:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[UI]]></category>

		<guid isPermaLink="false">http://www.codedrop.ca/blog/archives/208</guid>
		<description><![CDATA[A recent railscast pointed me at a handy tool that has helped tremendously in speeding up my UI development efforts.&#160; In past, I would use FireBug to highlight items on a page and identify the associated id / class.&#160; This worked ok, but did not aid in narrowing down my selector in the efficient mannter [...]]]></description>
			<content:encoded><![CDATA[<p>A recent railscast pointed me at a handy tool that has helped tremendously in speeding up my UI development efforts.&nbsp; In past, I would use FireBug to highlight items on a page and identify the associated id / class.&nbsp; This worked ok, but did not aid in narrowing down my selector in the efficient mannter this one does.&nbsp; You can easily select/deselect fields on your page and dynamically generate your css selector.&nbsp; Very cool!.. I encourage you to check it out!</p>
<p><a href="http://www.selectorgadget.com/">Introducing SelectorGadget: point and click CSS selectors</a></p>
<blockquote></blockquote>
<div class="zemanta-pixie"><img class="zemanta-pixie-img" alt="" src="http://img.zemanta.com/pixy.gif?x-id=93ba76b4-1f55-8a34-9ed4-e23a6a63ca97" /></div>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=SelectorGadget+makes+identifying+page+elements+a+breeze%21+http://i363g.th8.us" title="Post to Twitter"><img class="nothumb" src="http://www.codedrop.ca/blog/wp-content/plugins/tweet-this/icons/tt-twitter.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/home/?status=SelectorGadget+makes+identifying+page+elements+a+breeze%21+http://i363g.th8.us" title="Post to Twitter">Tweet This Post</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.codedrop.ca/blog/archives/208/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Changing Header Class (CSS) in JSF Datatables</title>
		<link>http://www.codedrop.ca/blog/archives/46</link>
		<comments>http://www.codedrop.ca/blog/archives/46#comments</comments>
		<pubDate>Mon, 05 May 2008 16:30:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[JSF]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.codedrop.ca/blog/?p=46</guid>
		<description><![CDATA[Something I have always found annoying about JSF datatables is the limitation to only apply one header class style to the entire table.  This is un-functional for datatables that would display monetary amount or other data that is typically right aligned whereas descriptive columns are left aligned.  The table doesn&#8217;t look very nice [...]]]></description>
			<content:encoded><![CDATA[<p>Something I have always found annoying about JSF datatables is the limitation to only apply one header class style to the entire table.  This is un-functional for datatables that would display monetary amount or other data that is typically right aligned whereas descriptive columns are left aligned.  The table doesn&#8217;t look very nice if the heading don&#8217;t match the columns.</p>
<p>To work around this I&#8217;ve found that declaring a &lt;div/&gt; within the header facet allows you to override the style to behave as desired&#8230; below is an example of a table that uses a default headerClass for the majority of columns but is overridden to left align where applicable.</p>
<p><img src="http://www.codedrop.ca/blog/wp-content/uploads/2008/05/headers_sample.jpg" alt="Headers Sample" width="477" height="115" /></p>
<p>Code:</p>
<p>&lt;h:panelGrid width=&#8221;100%&#8221; id=&#8221;memberTransactionTableBody&#8221; border=&#8221;0&#8243; cellspacing=&#8221;0&#8243; cellpadding=&#8221;0&#8243; columns=&#8221;1&#8243;&gt;<br />
&lt;h:column&gt;<br />
&lt;h:form id=&#8221;form&#8221;&gt;</p>
<p>&lt;h:dataTable rowClasses=&#8221;accountTransactionRowDefault, accountTransactionRowAlternate&#8221;<br />
headerClass=&#8221;accountColumnHeader StrongText&#8221;<br />
footerClass=&#8221;accountColumnFooter&#8221;<br />
width=&#8221;100%&#8221;<br />
cellpadding=&#8221;0&#8243; cellspacing=&#8221;0&#8243; border=&#8221;0&#8243;                               columnClasses=&#8221;account-padding,account-date,account-description,account-debit,</p>
<p>account-credit,account-currency,account-status&#8221;<br />
styleClass=&#8221;accountTransactionText&#8221;<br />
var=&#8221;transaction&#8221;<br />
value=&#8221;#{transactionHandler.transactionBean.transactionHistory}&#8221;<br />
rows=&#8221;40&#8243;&gt;</p>
<p>&lt;h:column&gt; &lt;/h:column&gt;</p>
<p>&lt;h:column&gt;<br />
&lt;f:facet name=&#8221;header&#8221;&gt;<br />
<span style="color: #330099;"><strong>&lt;div style=&#8221;float: left;&#8221;&gt;</strong></span><br />
#{messages['message.account.column.date']}<br />
<span style="color: #330099;"><strong>&lt;/div&gt;</strong></span><br />
&lt;/f:facet&gt;<br />
&lt;h:outputText value=&#8221;#{transaction.dateTimeStamp}&#8221;/&gt;<br />
&lt;f:facet name=&#8221;footer&#8221;&gt; &lt;/f:facet&gt;<br />
&lt;/h:column&gt;</p>
<p>&lt;h:column&gt;<br />
&lt;f:facet name=&#8221;header&#8221;&gt;<br />
<span style="color: #330099;"><strong>&lt;div style=&#8221;float: left;&#8221;&gt;</strong></span><br />
#{messages['message.account.column.description']}<br />
<span style="color: #330099;"><strong>&lt;/div&gt;</strong></span><br />
&lt;/f:facet&gt;<br />
&lt;h:outputText value=&#8221;#{transaction.description}&#8221;/&gt;<br />
&lt;/h:column&gt;</p>
<p>&lt;h:column&gt;<br />
&lt;f:facet name=&#8221;header&#8221;&gt;<br />
#{messages['message.account.column.debit']}<br />
&lt;/f:facet&gt;<br />
&lt;h:outputText value=&#8221;#{transaction.debit}&#8221;/&gt;<br />
&lt;/h:column&gt;</p>
<p>&lt;h:column&gt;<br />
&lt;f:facet name=&#8221;header&#8221;&gt;<br />
#{messages['message.account.column.credit']}<br />
&lt;/f:facet&gt;<br />
&lt;h:outputText value=&#8221;#{transaction.credit}&#8221;/&gt;<br />
&lt;/h:column&gt;</p>
<p>&lt;h:column&gt;<br />
&lt;f:facet name=&#8221;header&#8221;&gt;<br />
#{messages['message.account.column.currency']}<br />
&lt;/f:facet&gt;<br />
&lt;h:outputText value=&#8221;#{transaction.currency}&#8221;/&gt;<br />
&lt;/h:column&gt;</p>
<p>&lt;/h:dataTable&gt;</p>
<p>&lt;/h:form&gt;<br />
&lt;/h:column&gt;<br />
&lt;/h:panelGrid&gt;</p>
<pre></pre>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Changing+Header+Class+%28CSS%29+in+JSF+Datatables+http://7goy6.th8.us" title="Post to Twitter"><img class="nothumb" src="http://www.codedrop.ca/blog/wp-content/plugins/tweet-this/icons/tt-twitter.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/home/?status=Changing+Header+Class+%28CSS%29+in+JSF+Datatables+http://7goy6.th8.us" title="Post to Twitter">Tweet This Post</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.codedrop.ca/blog/archives/46/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
