<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Pure-Essence.Net &#187; css</title>
	<atom:link href="http://pure-essence.net/tag/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://pure-essence.net</link>
	<description>You have to visit this geeky girl&#039;s blog.</description>
	<lastBuildDate>Wed, 23 May 2012 01:27:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='pure-essence.net' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Pure-Essence.Net &#187; css</title>
		<link>http://pure-essence.net</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://pure-essence.net/osd.xml" title="Pure-Essence.Net" />
	<atom:link rel='hub' href='http://pure-essence.net/?pushpress=hub'/>
		<item>
		<title>Custom font</title>
		<link>http://pure-essence.net/2008/10/28/custom-font/</link>
		<comments>http://pure-essence.net/2008/10/28/custom-font/#comments</comments>
		<pubDate>Tue, 28 Oct 2008 14:35:07 +0000</pubDate>
		<dc:creator>pureessence</dc:creator>
				<category><![CDATA[geeky]]></category>
		<category><![CDATA[non php code]]></category>
		<category><![CDATA[browsers]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[custom font]]></category>

		<guid isPermaLink="false">http://regretless.com/?p=1350</guid>
		<description><![CDATA[I saw another custom font solution today: typeface Instead of creating images or using flash just to show your site&#8217;s graphic text in the font you want, you can use typeface.js and write in plain HTML and CSS, just as if your visitors had the font installed locally. A while ago, I blogged about the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pure-essence.net&#038;blog=23194870&#038;post=1350&#038;subd=pe20110517&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I saw another custom font solution today: <a href="http://typeface.neocracy.org/">typeface</a></p>
<blockquote><p>Instead of creating images or using flash just to show your site&#8217;s graphic text in the font you want, you can use typeface.js and write in plain HTML and CSS, just as if your visitors had the font installed locally. </p></blockquote>
<p>A while ago, I blogged about the <a href="http://regretless.com/2008/09/17/sifr-3/">SIFR 3</a>. And there are many other solutions to render text in fonts that your client&#8217;s machine does not have. For example, generating the text as an image. BTW wasn&#8217;t there a wordpress plugin that does this? I wasn&#8217;t able to find it in my quick search. Can someone enlighten me?</p>
<p>One thing I hate about all these solutions is that you may no longer highlight the text in order to copy its content in all the browsers I know. It just bugs me to no end when expected browser behaviors get changed because you want some fancy fonts for your site.</p>
<p>I wish more browsers would implement <a href="http://www.css3.info/font-face-fonts-the-way-you-want-them/">the @font-face css rule</a> so maybe then we can get around this issue?</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pe20110517.wordpress.com/1350/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pe20110517.wordpress.com/1350/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pe20110517.wordpress.com/1350/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pe20110517.wordpress.com/1350/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pe20110517.wordpress.com/1350/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pe20110517.wordpress.com/1350/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pe20110517.wordpress.com/1350/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pe20110517.wordpress.com/1350/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pe20110517.wordpress.com/1350/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pe20110517.wordpress.com/1350/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pe20110517.wordpress.com/1350/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pe20110517.wordpress.com/1350/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pe20110517.wordpress.com/1350/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pe20110517.wordpress.com/1350/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pure-essence.net&#038;blog=23194870&#038;post=1350&#038;subd=pe20110517&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pure-essence.net/2008/10/28/custom-font/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fcfd5e14ca9c91790e95dfdb1d2ad756?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pureessence</media:title>
		</media:content>
	</item>
		<item>
		<title>CSS Frameworks</title>
		<link>http://pure-essence.net/2008/09/21/css-frameworks/</link>
		<comments>http://pure-essence.net/2008/09/21/css-frameworks/#comments</comments>
		<pubDate>Sun, 21 Sep 2008 16:05:30 +0000</pubDate>
		<dc:creator>pureessence</dc:creator>
				<category><![CDATA[geeky]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[css framework]]></category>

		<guid isPermaLink="false">http://regretless.com/?p=1270</guid>
		<description><![CDATA[I write my CSS from scratch and I know enough tricks/hacks to pull out most of all what I want to accomplish. Although I&#8217;ve always heard the yahoo YUI project and understand what its reset css achieves, I never knew there are so many other CSS frameworks out there. Hidden pixels has listed a great [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pure-essence.net&#038;blog=23194870&#038;post=1270&#038;subd=pe20110517&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I write my CSS from scratch and I know enough tricks/hacks to pull out most of all what I want to accomplish. Although I&#8217;ve always heard the yahoo YUI project and understand what its reset css achieves, I never knew there are so many other CSS frameworks out there. <a href="http://hiddenpixels.com/css-stuffs/css-frameworks/">Hidden pixels</a> has listed a great number of them. I don&#8217;t know if I will consider using them. I can&#8217;t see I will gain a lot of benefits from what I&#8217;ve done by using a framework but I might look into it since I have some time off work coming up <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<ul>
<li><a href="http://elements.projectdesigns.org/">Elements CSS Frameworks</a></li>
<li><a href="http://developer.yahoo.com/yui/grids/">YUI Grids CSS</a></li>
<li><a href="http://www.yaml.de/en/home.html">YAML CSS Framework</a></li>
<li><a href="http://code.google.com/p/blueprintcss/">Blueprint CSS</a></li>
<li><a href="http://www.davidgoldingdesign.com/schema.html">Schema Web Design Framework</a></li>
<li><a href="http://sandbox.pocoo.org/clevercss/">CleverCSS</a></li>
<li><a href="http://devkick.com/lab/tripoli/">Tripoli CSS Framework</a></li>
<li><a href="http://eswat.ca/">ESWAT Web Project Framework</a></li>
<li><a href="http://code.google.com/p/css-boilerplate/">Boilerplate CSS Framework</a></li>
<li><a href="http://www.wymstyle.org/en/">WYMstyle CSS Framework</a></li>
<li><a href="http://www.contentwithstyle.co.uk/Articles/17/a-css-framework/">ESWAT Web Project Framework</a></li>
<li><a href="http://code.google.com/p/logicss/">Logicss Framework</a></li>
<li><a href="http://www.contentwithstyle.co.uk/Articles/17/a-css-framework/">That Standards Guy CSS Framework</a></li>
<li><a href="http://960.gs/">960 Grid System</a></li>
<li><a href="http://code.google.com/p/emastic/">Emastic CSS Framework</a></li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pe20110517.wordpress.com/1270/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pe20110517.wordpress.com/1270/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pe20110517.wordpress.com/1270/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pe20110517.wordpress.com/1270/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pe20110517.wordpress.com/1270/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pe20110517.wordpress.com/1270/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pe20110517.wordpress.com/1270/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pe20110517.wordpress.com/1270/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pe20110517.wordpress.com/1270/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pe20110517.wordpress.com/1270/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pe20110517.wordpress.com/1270/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pe20110517.wordpress.com/1270/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pe20110517.wordpress.com/1270/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pe20110517.wordpress.com/1270/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pure-essence.net&#038;blog=23194870&#038;post=1270&#038;subd=pe20110517&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pure-essence.net/2008/09/21/css-frameworks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fcfd5e14ca9c91790e95dfdb1d2ad756?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pureessence</media:title>
		</media:content>
	</item>
		<item>
		<title>How to STYLE a table using CSS (JSF examples)</title>
		<link>http://pure-essence.net/2007/10/18/how-to-style-a-table-using-css-jsf-examples/</link>
		<comments>http://pure-essence.net/2007/10/18/how-to-style-a-table-using-css-jsf-examples/#comments</comments>
		<pubDate>Thu, 18 Oct 2007 17:54:17 +0000</pubDate>
		<dc:creator>pureessence</dc:creator>
				<category><![CDATA[geeky]]></category>
		<category><![CDATA[school n work]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[framework]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[jsf]]></category>
		<category><![CDATA[single-application-multiple-clients]]></category>
		<category><![CDATA[table]]></category>
		<category><![CDATA[UI]]></category>

		<guid isPermaLink="false">http://regretless.com/2007/10/18/how-to-style-a-table-using-css-jsf-examples/</guid>
		<description><![CDATA[Tables are very important parts of the web interface. They are (hopefully) used for tabular data. It is one of the oldest and most basic HTML presentation tag but in order for it to smoothly fit into the new CSS age, we need to look at the most practical way in correctly setting up the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pure-essence.net&#038;blog=23194870&#038;post=1188&#038;subd=pe20110517&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Tables are very important parts of the web interface. They are (hopefully) used for tabular data.  It is one of the oldest and most basic HTML presentation tag but in order for it to smoothly fit into the new CSS age, we need to look at the most practical way in correctly setting up the markup and the CSS.</p>
<p>Nowadays, we no longer wish to make separate instances of a similar application for different clients. We want to thrive on making a single application that will fit the needs of as many clients as possible. This task is very challenging.  In my opinion the ideal situation is to have the clients and developers both understand the benefits of the end goal and compromise to reach it. As developers we can always dream to have a single application reach the level of customization we can accomplish with many separate applications and yet don&#8217;t confuse the heck out of the end users. While I am unsure if that&#8217;s ever a possibility, I know ways that might help get us closer.</p>
<p>One of the biggest challenges is to give each client who uses the same application their own unique UI presentation. This is no small task and I only plan to address a small issue you might encounter in accomplishing this task. That&#8217;s how to mark up a table with the most amount of UI flexibility.</p>
<p>A traditional table might look something like this:<br />
<pre class="brush: plain; wrap-lines: false;">
&lt;table&gt;
&lt;tr&gt;
	&lt;th&gt;
		Name
	&lt;/th&gt;
	&lt;th&gt;
		Phone number
	&lt;/th&gt;
	&lt;th&gt;
		Date of birth
	&lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
	&lt;td&gt;
		Mike White
	&lt;/td&gt;
	&lt;td&gt;
		123-456-789
	&lt;/td&gt;
	&lt;td&gt;
		10/11/1976
	&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
	&lt;td&gt;
		Nancy Green
	&lt;/td&gt;
	&lt;td&gt;
		987-644-311
	&lt;/td&gt;
	&lt;td&gt;
		02/24/1950
	&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
</pre></p>
<p>With no CSS classes specified in any elements, it will be hard to style this table with much customization. You can add styling to the table, tr, th and td tags but they will have to be uniformly defined. You will have a lot more flexibility if add more classes to each element like below:</p>
<p><pre class="brush: plain; wrap-lines: false;">
&lt;table class=&quot;people&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; border=&quot;0&quot;&gt;
&lt;tr&gt;
	&lt;th class=&quot;first&quot;&gt;
		Name
	&lt;/th&gt;
	&lt;th&gt;
		Phone number
	&lt;/th&gt;
	&lt;th class=&quot;last&quot;&gt;
		Date of birth
	&lt;/th&gt;
&lt;/tr&gt;
&lt;tr class=&quot;odd&quot;&gt;
	&lt;td class=&quot;name&quot;&gt;
		Mike White
	&lt;/td&gt;
	&lt;td class=&quot;phoneNumber&quot;&gt;
		123-456-789
	&lt;/td&gt;
	&lt;td class=&quot;dateOfBirth&quot;&gt;
		10/11/1976
	&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class=&quot;even&quot;&gt;
	&lt;td class=&quot;name&quot;&gt;
		Nancy Green
	&lt;/td&gt;
	&lt;td class=&quot;phoneNumber&quot;&gt;
		987-644-311
	&lt;/td&gt;
	&lt;td class=&quot;dateOfBirth&quot;&gt;
		02/24/1950
	&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
</pre></p>
<p>Notice I applied classes to the table, each of the alternating rows and each of the columns. And also notice I added<br />
<pre class="brush: plain; wrap-lines: false;">
cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; border=&quot;0&quot;
</pre><br />
to the table tag. This is very important since CSS does not have direct cellpadding and cellspacing controls, you cannot take away the natural cellpadding &amp; cellspacing each browser applies to all tables. It&#8217;s the best to set them to 0 and control everything via CSS.<br />
Since I&#8217;ve been working with JSF, I will give an example in JSF. The <a href="http://myfaces.apache.org/tomahawk/tlddoc/t/dataTable.html">t:dataTable</a> tag can very easily generate the table markup above.</p>
<p><pre class="brush: plain; wrap-lines: false;">
&lt;t:dataTable value=&quot;#{myList}&quot; var=&quot;list&quot;
	styleClass=&quot;people&quot;
	cellspacing=&quot;0&quot; 
	cellpadding=&quot;0&quot; 
	border=&quot;0&quot;
	rowClasses=&quot;odd,even&quot;
	columnClasses=&quot;name,phoneNumber,dateOfBirth&quot;&gt;
	&lt;t:column headerstyleClass=&quot;first&quot;&gt;
		&lt;f:facet name=&quot;header&quot;&gt;Name&lt;/f:facet&gt;
		&lt;t:outputText value=&quot;#{list.name}&quot; /&gt;
	&lt;/t:column&gt;
	&lt;t:column&gt;
		&lt;f:facet name=&quot;header&quot;&gt;Phone number&lt;/f:facet&gt;
		&lt;t:outputText value=&quot;#{list.phoneNumber}&quot; /&gt;
	&lt;/t:column&gt;
	&lt;t:column headerstyleClass=&quot;last&quot;&gt;
		&lt;f:facet name=&quot;header&quot;&gt;Date of birth&lt;/f:facet&gt;
		&lt;t:outputText value=&quot;#{list.dateOfBirth}&quot; /&gt;
	&lt;/t:column&gt;
&lt;/t:dataTable&gt;
</pre></p>
<p>Now we have the markup, let&#8217;s go thru a simple table styling.</p>
<p>The first things I&#8217;d start with are these:<br />
<pre class="brush: plain; wrap-lines: false;">
table.people {
	width: 100%;
	border-collapse: collapse; /* so we can control cellspacing in a practical way */
}

table.people th,
table.people td {
	padding: 5px;
	text-align: left;
	font-family: Arial, Verdana, sans-serif;
}
</pre></p>
<p>Let&#8217;s see how it looks:<br />
<img src="http://regretless.com/stuff/webTips/styleATable/style1.png" alt="" title="" /></p>
<p>I usually apply border-collapse: collapse on the table so you can control the border width with td tags and without seeing double borders between cells. The padding on td &amp; th tags really work just like cellpadding inside of the table tag. Except you have more flexibility now as if you really want, you can have different paddings for every cell.</p>
<p>Now let&#8217;s add some border.</p>
<p>Change the previous th,td styling definition to below:<br />
<pre class="brush: plain; wrap-lines: false;">
table.people th,
table.people td {
	padding: 5px;
	text-align: left;
	font-family: Arial, Verdana, sans-serif;
	border: 1px solid #000; /* let's apply borders */
}
</pre></p>
<p>Let&#8217;s see how it looks:<br />
<img src="http://regretless.com/stuff/webTips/styleATable/style2.png" alt="" title="" /></p>
<p>Now this is the look you usu. want. If you take away the border-collapse: collapse; and then your table will look like this:<br />
<img src="http://regretless.com/stuff/webTips/styleATable/style3.png" alt="" title="" /></p>
<p><b>TIP: do not apply border on the <u>tr tag</u> since it does not understand it.</b> To get borders on tables, always add border defintion on td and th tags.</p>
<p>Now let&#8217;s give the table header a different background color, add the alternating colors and border colors.<br />
<pre class="brush: plain; wrap-lines: false;">
table.people {
	width: 100%;
	border-collapse: collapse; /* so we can control cellspacing in a practical way */
	border-bottom: 1px solid #000;
}

table.people th,
table.people td {
	padding: 5px;
	text-align: left;
	font-family: Arial, Verdana, sans-serif;
	border: 1px solid #000; /* let's apply borders */
	border-bottom:0;
}


table.people th {
	background-color: #ddd;
	color: #BB0000;
	border-bottom: 2px solid #000;
}

table.people tr.odd {
	background-color: #DDFFFF;
}

table.people tr.odd td {
	border-top: 1px solid #ccc;
}

table.people tr.even {
	background-color: #FBFBFB;
}

table.people tr.even td {
	border-top: 1px solid #BBEEEE;
}
</pre><br />
Let&#8217;s see how it looks:<br />
<img src="http://regretless.com/stuff/webTips/styleATable/style4.png" alt="" title="" /></p>
<p><b>TIP: table bottom border does not override td bottom border (I&#8217;m not sure if it&#8217;s a bug) therefore it&#8217;s important to NOT define a td bottom border and define a table bottom border if you want them in DIFFERENT colors and/or styles.</b></p>
<p>Let&#8217;s talk about <b>cellspacing</b>. Personally I&#8217;ve never found a real need for cellspacing in styling tables. It is something CSS cannot truly accomplish with limited support of border-spacing in browsers (mainly it&#8217;s not supported by IE 6). However, you may be able to *fake the look* by using a border color that&#8217;s the same as the solid background color. Please take a look at the example below.</p>
<p><pre class="brush: plain; wrap-lines: false;">
body {
	background-color: #000;
}

table.people {
	width: 100%;
	border-collapse: collapse; /* so we can control cellspacing in a practical way */
	border-bottom:0; /* you may not want the bottom of your table have spacing */
}

table.people th,
table.people td {
	padding: 5px;
	text-align: left;
	font-family: Arial, Verdana, sans-serif;
	border: 4px solid #000; /* this can be seen as cellspacing... */
	border-bottom:0;
}

/* you may not want the top of your table have spacing */
table.people th {
	border-top: 0;
}

/* you may not want the left most and right most side of your table have spacing */
table.people th.first,
table.people td.name {
	border-left: 0;
}

table.people th.last,
table.people td.dateOfBirth {
	border-right: 0;
}

table.people th {
	background-color: #ddd;
	color: #BB0000;
}

table.people tr.odd {
	background-color: #DDFFFF;
}

table.people tr.even {
	background-color: #FBFBFB;
}
</pre></p>
<p><a href="http://regretless.com/stuff/webTips/styleATable/index.php?css=cellspacing" rel="external">View the example</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/pe20110517.wordpress.com/1188/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/pe20110517.wordpress.com/1188/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pe20110517.wordpress.com/1188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pe20110517.wordpress.com/1188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pe20110517.wordpress.com/1188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pe20110517.wordpress.com/1188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pe20110517.wordpress.com/1188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pe20110517.wordpress.com/1188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pe20110517.wordpress.com/1188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pe20110517.wordpress.com/1188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pe20110517.wordpress.com/1188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pe20110517.wordpress.com/1188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pe20110517.wordpress.com/1188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pe20110517.wordpress.com/1188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pe20110517.wordpress.com/1188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pe20110517.wordpress.com/1188/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pure-essence.net&#038;blog=23194870&#038;post=1188&#038;subd=pe20110517&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pure-essence.net/2007/10/18/how-to-style-a-table-using-css-jsf-examples/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fcfd5e14ca9c91790e95dfdb1d2ad756?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pureessence</media:title>
		</media:content>

		<media:content url="http://regretless.com/stuff/webTips/styleATable/style1.png" medium="image" />

		<media:content url="http://regretless.com/stuff/webTips/styleATable/style2.png" medium="image" />

		<media:content url="http://regretless.com/stuff/webTips/styleATable/style3.png" medium="image" />

		<media:content url="http://regretless.com/stuff/webTips/styleATable/style4.png" medium="image" />
	</item>
		<item>
		<title>Clear left workaround</title>
		<link>http://pure-essence.net/2007/09/25/clear-left-workaround/</link>
		<comments>http://pure-essence.net/2007/09/25/clear-left-workaround/#comments</comments>
		<pubDate>Tue, 25 Sep 2007 19:02:11 +0000</pubDate>
		<dc:creator>pureessence</dc:creator>
				<category><![CDATA[geeky]]></category>
		<category><![CDATA[clear-left]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[UI]]></category>
		<category><![CDATA[ui-design]]></category>
		<category><![CDATA[web-design]]></category>
		<category><![CDATA[workaround]]></category>

		<guid isPermaLink="false">http://regretless.com/?p=1186</guid>
		<description><![CDATA[You may have run into this problem, you may have not. But I found an acceptable workaround to this particular problem. Here&#8217;s the scenario. So I have a two column layout where my navigation list (red) is floated to the left and my main content is on the right. In my main content I have [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pure-essence.net&#038;blog=23194870&#038;post=1186&#038;subd=pe20110517&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>You may have run into this problem, you may have not. But I found an acceptable workaround to this particular problem.</p>
<p>Here&#8217;s the scenario.</p>
<p>So I have a two column layout where my navigation list (red) is floated to the left and my main content is on the right.  In my main content I have another navigation list (gray) that floats to the left.  And the text in my main content now wraps around.  I really want my main content text  below the gray navigation to still to the right of red navigation.<br />
<a href="http://regretless.com/stuff/webTips/clearLeft/scenario.html" rel="external"><img src="http://regretless.com/stuff/webTips/clearLeft/scenario.png" class="blogpic" alt="The scenario" width="70%" /></a></p>
<p>If I use a simply use a clear:left on the container around my content text, I will have it all the way below the red navigation list. This is expected behavior as clear:left means <b>make sure there is no elements that are floated to the left of me</b>. It however is not the ideal behavior I wanted.<br />
<a href="http://regretless.com/stuff/webTips/clearLeft/scenarioClearLeft.html" rel="external"><img src="http://regretless.com/stuff/webTips/clearLeft/scenarioClearLeft.png" class="blogpic" alt="The scenario clear left" width="70%" /></a></p>
<p>In IE &amp; Firefox (possibly other browsers) there is a *bug* that if you wrap the floating element in a fieldset, the fieldset acts  as a container that stretches as far as the float elements.<br />
<a href="http://regretless.com/stuff/webTips/clearLeft/scenarioFieldset.html" rel="external"><img src="http://regretless.com/stuff/webTips/clearLeft/scenarioFieldset.png" class="blogpic" alt="The scenario fieldset" width="70%" /></a></p>
<p>This however really isn&#8217;t a good workaround because it uses a *bug* in both browsers and it DOES NOT work in browsers like safari. So I came up with a better solution today.</p>
<p>Float the ul element to the right with its width set to 100%, and then clear the container around the text to the right. This obviously only works if you don&#8217;t have anything above the text that&#8217;s also floated to the right.</p>
<p><a href="http://regretless.com/stuff/webTips/clearLeft/scenarioClearRight.html" rel="external">Here&#8217;s the final result</a>.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/pe20110517.wordpress.com/1186/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/pe20110517.wordpress.com/1186/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pe20110517.wordpress.com/1186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pe20110517.wordpress.com/1186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pe20110517.wordpress.com/1186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pe20110517.wordpress.com/1186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pe20110517.wordpress.com/1186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pe20110517.wordpress.com/1186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pe20110517.wordpress.com/1186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pe20110517.wordpress.com/1186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pe20110517.wordpress.com/1186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pe20110517.wordpress.com/1186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pe20110517.wordpress.com/1186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pe20110517.wordpress.com/1186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pe20110517.wordpress.com/1186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pe20110517.wordpress.com/1186/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pure-essence.net&#038;blog=23194870&#038;post=1186&#038;subd=pe20110517&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pure-essence.net/2007/09/25/clear-left-workaround/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fcfd5e14ca9c91790e95dfdb1d2ad756?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pureessence</media:title>
		</media:content>

		<media:content url="http://regretless.com/stuff/webTips/clearLeft/scenario.png" medium="image">
			<media:title type="html">The scenario</media:title>
		</media:content>

		<media:content url="http://regretless.com/stuff/webTips/clearLeft/scenarioClearLeft.png" medium="image">
			<media:title type="html">The scenario clear left</media:title>
		</media:content>

		<media:content url="http://regretless.com/stuff/webTips/clearLeft/scenarioFieldset.png" medium="image">
			<media:title type="html">The scenario fieldset</media:title>
		</media:content>
	</item>
	</channel>
</rss>
