<?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>sides of march &#187; css</title>
	<atom:link href="http://www.sidesofmarch.com/index.php/archive/tag/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sidesofmarch.com</link>
	<description>Thoughts on life, liberty, and information technology</description>
	<lastBuildDate>Mon, 16 Jan 2012 02:43:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>CSS Friendly Control Adapters now available on NuGet</title>
		<link>http://www.sidesofmarch.com/index.php/archive/2011/05/20/css-friendly-control-adapters-now-available-on-nuget/</link>
		<comments>http://www.sidesofmarch.com/index.php/archive/2011/05/20/css-friendly-control-adapters-now-available-on-nuget/#comments</comments>
		<pubDate>Fri, 20 May 2011 23:32:56 +0000</pubDate>
		<dc:creator>brian</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[ASP.Net]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[CSSFriendly]]></category>
		<category><![CDATA[Web Forms]]></category>

		<guid isPermaLink="false">http://www.sidesofmarch.com/?p=538</guid>
		<description><![CDATA[<p>Back in the days of <a href="http://www.asp.net/web-forms">Web Forms</a>, there were server controls, and they generated rather CSS-unfriendly HTML. So, Microsoft got someone (<a href="http://www.groovybits.com/">Russ Helfand</a>) to write adapters that changed their rendering to be more CSS-friendly: the “<strong>CSS Friendly Control Adapters</strong>” were born.</p>
<p>A little less farther back, in 2007, I tried convincing some people at Microsoft to let the community continue development of these adapters, and they agreed. The <a href="http://cssfriendly.codeplex.com/">CSSFriendly CodePlex project</a> was born, and a bunch of bugs and some new features were added.</p>
<p>A lot has changed since then, but the adapters still have use today for people stuck on .Net 2.0 (they’re in the top 200 most downloaded CodePlex projects, and <a href="http://forums.asp.net/1018.aspx/1?CSS+Friendly+Control+Adapters">their forums still see activity</a>). To facilitate those who still use CSSFriendly, I’ve <a href="http://nuget.org/List/Packages/CSSFriendly">added the library package to NuGet</a>.</p>
<p><strong>How to use the CSSFriendly NuGet package</strong></p>
<p><a href="http://www.sidesofmarch.com/wp-content/uploads/cssfriendly-nuget-package1.png"></a>In four easy steps (three if you already have NuGet).</p>

First, you need Visual Studio 2010 and <a href="http://nuget.org/">NuGet</a>. (If you’re <span style="color:#777"> . . .<br /><br />&#8594; Read More: <a href="http://www.sidesofmarch.com/index.php/archive/2011/05/20/css-friendly-control-adapters-now-available-on-nuget/">CSS Friendly Control Adapters now available on NuGet</a></span>]]></description>
			<content:encoded><![CDATA[<p>Back in the days of <a href="http://redirectingat.com?id=17923X751173&xs=1&url=http%3A%2F%2Fwww.asp.net%2Fweb-forms&sref=rss">Web Forms</a>, there were server controls, and they generated rather CSS-unfriendly HTML. So, Microsoft got someone (<a href="http://redirectingat.com?id=17923X751173&xs=1&url=http%3A%2F%2Fwww.groovybits.com%2F&sref=rss">Russ Helfand</a>) to write adapters that changed their rendering to be more CSS-friendly: the “<strong>CSS Friendly Control Adapters</strong>” were born.</p>
<p>A little less farther back, in 2007, I tried convincing some people at Microsoft to let the community continue development of these adapters, and they agreed. The <a href="http://redirectingat.com?id=17923X751173&xs=1&url=http%3A%2F%2Fcssfriendly.codeplex.com%2F&sref=rss">CSSFriendly CodePlex project</a> was born, and a bunch of bugs and some new features were added.</p>
<p>A lot has changed since then, but the adapters still have use today for people stuck on .Net 2.0 (they’re in the top 200 most downloaded CodePlex projects, and <a href="http://redirectingat.com?id=17923X751173&xs=1&url=http%3A%2F%2Fforums.asp.net%2F1018.aspx%2F1%3FCSS%2BFriendly%2BControl%2BAdapters&sref=rss">their forums still see activity</a>). To facilitate those who still use CSSFriendly, I’ve <a href="http://redirectingat.com?id=17923X751173&xs=1&url=http%3A%2F%2Fnuget.org%2FList%2FPackages%2FCSSFriendly&sref=rss">added the library package to NuGet</a>.</p>
<p><strong>How to use the CSSFriendly NuGet package</strong></p>
<p><a href="http://www.sidesofmarch.com/wp-content/uploads/cssfriendly-nuget-package1.png"><img style="background-image: none; margin: 0px 0px 16px 16px; padding-left: 0px; padding-right: 0px; display: inline; float: right; padding-top: 0px; border: 0px;" title="cssfriendly-nuget-package" src="http://www.sidesofmarch.com/wp-content/uploads/cssfriendly-nuget-package_thumb1.png" border="0" alt="cssfriendly-nuget-package" width="433" height="218" align="right" /></a>In four easy steps (three if you already have NuGet).</p>
<ol>
<li>First, you need Visual Studio 2010 and <a href="http://redirectingat.com?id=17923X751173&xs=1&url=http%3A%2F%2Fnuget.org%2F&sref=rss">NuGet</a>. (If you’re new to NuGet, <a href="http://redirectingat.com?id=17923X751173&xs=1&url=http%3A%2F%2Fdocs.nuget.org%2F&sref=rss">read the getting started documentation</a>.)</li>
<li>Next, right-click the <strong>References</strong> folder and choose <strong>Add Library Package Reference</strong>.</li>
<li>In the Add Library Package Reference window, search for “cssfriendly.”</li>
<li>When you see the CSSFriendly package, click the Install button.</li>
</ol>
<p>After it installs, the following is added to your project:</p>
<ul>
<li>The CSSFriendly library reference</li>
<li>The CSSFriendlyAdapters.browser file in the App_Browsers folder</li>
</ul>
<p>At that point, you’re ready to go!</p>
<p>The full source of the CSSFriendly library is still available at CodePlex: <a href="http://redirectingat.com?id=17923X751173&xs=1&url=http%3A%2F%2Fcssfriendly.codeplex.com&sref=rss">http://cssfriendly.codeplex.com</a>. Downloads there include sample code and walkthroughs.</p>
<p>Enjoy, and let me know if you have any issues!</p>
<img src="http://www.sidesofmarch.com/?ak_action=api_record_view&id=538&type=feed" alt="" /><div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://www.sidesofmarch.com/index.php/archive/2011/05/20/css-friendly-control-adapters-now-available-on-nuget/' addthis:title='CSS Friendly Control Adapters now available on NuGet ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.sidesofmarch.com/index.php/archive/2011/05/20/css-friendly-control-adapters-now-available-on-nuget/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cleaning up the GridView&#8217;s EmptyDataTemplate (damn those tables!)</title>
		<link>http://www.sidesofmarch.com/index.php/archive/2008/11/12/cleaning-up-the-gridviews-emptydatatemplate-damn-those-tables/</link>
		<comments>http://www.sidesofmarch.com/index.php/archive/2008/11/12/cleaning-up-the-gridviews-emptydatatemplate-damn-those-tables/#comments</comments>
		<pubDate>Wed, 12 Nov 2008 20:43:43 +0000</pubDate>
		<dc:creator>brian</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[ASP.Net]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[EmptyDataTemplate]]></category>
		<category><![CDATA[GridView]]></category>

		<guid isPermaLink="false">http://www.sidesofmarch.com/?p=298</guid>
		<description><![CDATA[<p>A project I&#8217;ve been working on makes frequent use of the ASP.Net GridView. However, as many people know, the GridView has one glaring issue: It wraps your &#60;EmptyDataTemplate&#62; in an HTML table &#8212; something that I don&#8217;t want, for two reasons:</p>

My empty data template does not consist of tabular data.
My stylesheet has a default style for tables &#8212; a style that I don&#8217;t want applied to my empty data template.

<p>One solution is to use the <a title="CSSFriendly project on CodePlex" href="http://www.codeplex.com/cssfriendly">CSS Friendly Adapters for ASP.Net</a>, which potentially solves both prolems, but that will bring in potential breaking changes to my GridView controls. I don&#8217;t have time for that (yet).</p>
<p>The solution I came up with is to do two things:</p>

Create a new CSS class that removes table formatting (borders, backgrounds, padding, margins, etc.). This class will be applied to the GridView only when it has no data.
Add a line of code in the OnPreRender() method for each web page or control that <span style="color:#777"> . . .<br /><br />&#8594; Read More: <a href="http://www.sidesofmarch.com/index.php/archive/2008/11/12/cleaning-up-the-gridviews-emptydatatemplate-damn-those-tables/">Cleaning up the GridView&#8217;s EmptyDataTemplate (damn those tables!)</a></span>]]></description>
			<content:encoded><![CDATA[<p>A project I&#8217;ve been working on makes frequent use of the ASP.Net GridView. However, as many people know, the GridView has one glaring issue: It wraps your <code>&lt;EmptyDataTemplate&gt;</code> in an HTML table &#8212; something that I don&#8217;t want, for two reasons:</p>
<ol>
<li>My empty data template does not consist of tabular data.</li>
<li>My stylesheet has a default style for tables &#8212; a style that I don&#8217;t want applied to my empty data template.</li>
</ol>
<p>One solution is to use the <a title="CSSFriendly project on CodePlex" href="http://redirectingat.com?id=17923X751173&xs=1&url=http%3A%2F%2Fwww.codeplex.com%2Fcssfriendly&sref=rss">CSS Friendly Adapters for ASP.Net</a>, which potentially solves both prolems, but that will bring in potential breaking changes to my GridView controls. I don&#8217;t have time for that (yet).</p>
<p>The solution I came up with is to do two things:</p>
<ol>
<li>Create a new CSS class that removes table formatting (borders, backgrounds, padding, margins, etc.). This class will be applied to the GridView only when it has no data.</li>
<li>Add a line of code in the<code> OnPreRender()</code> method for each web page or control that has a GridView, conditionally setting the CSS class of the GridView to the aforementioned class.</li>
</ol>
<p>My CSS class looks like the following.</p>
<pre class="brush: css; ">

.empty, .empty td { border:0;background:none;margin:0;padding:0; }
</pre>
<p>The line of code in your <code>OnPreRender()</code> event follows.</p>
<pre class="brush: c-sharp; ">

protected override void OnPreRender(EventArgs e)
{
    base.OnPreRender(e);

    if (myGridView.Rows.Count == 0)
        myGridView.CssClass = &quot;empty&quot;;
}
</pre>
<p>Why the OnPreRender stage? By placing your code here, you ensure that all data loaded into your GridView is already bound, whether it be from code (<code>myGridView.DataBind()</code>), from data sources in markup (such as the <code>ObjectDataSource</code>), or from viewstate.</p>
<p>It isn&#8217;t pretty, and it doesn&#8217;t give you <a title="Semantic Markup and Accessibility Standards - An overview | New Age Design" href="http://redirectingat.com?id=17923X751173&xs=1&url=http%3A%2F%2Fwww.new-age-design.com%2Fbusiness%2Fsemantic-markup-and-accessibility-standards-an-overview&sref=rss">semantic markup</a>, but it&#8217;s easy enough to implement and can solve the visual problem.</p>
<img src="http://www.sidesofmarch.com/?ak_action=api_record_view&id=298&type=feed" alt="" /><div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://www.sidesofmarch.com/index.php/archive/2008/11/12/cleaning-up-the-gridviews-emptydatatemplate-damn-those-tables/' addthis:title='Cleaning up the GridView&#8217;s EmptyDataTemplate (damn those tables!) ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.sidesofmarch.com/index.php/archive/2008/11/12/cleaning-up-the-gridviews-emptydatatemplate-damn-those-tables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Outlining textbox input fields (and getting it to work in IE)</title>
		<link>http://www.sidesofmarch.com/index.php/archive/2008/11/04/outlining-textbox-input-fields-and-getting-it-to-work-in-ie/</link>
		<comments>http://www.sidesofmarch.com/index.php/archive/2008/11/04/outlining-textbox-input-fields-and-getting-it-to-work-in-ie/#comments</comments>
		<pubDate>Tue, 04 Nov 2008 18:02:48 +0000</pubDate>
		<dc:creator>brian</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[forms]]></category>
		<category><![CDATA[Internet Explorer]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Usability]]></category>

		<guid isPermaLink="false">http://www.sidesofmarch.com/?p=293</guid>
		<description><![CDATA[<p><a href="http://www.sidesofmarch.com/wp-content/uploads/google-textbox-outline.gif"></a>While using <a href="http://mail.google.com">Google GMail</a> today, I noticed that they put a blue highlighting around the text input boxes when they have input focus. It&#8217;s a nice touch that makes it just a bit easier for users to identify which field their typing in. (<a href="http://www.apple.com/safari/">Safari</a> users, of course, get this on all web sites out of the box.)</p>
<p>Getting this to work on your web site is a simple matter of applying some CSS styles. The trick is to give your normal inputs fields a 1px border and a 1px margin; then, when they have focus, give them a 2px border (with a different color if you so choose) and no margin. This will ensure the dimensions of the element don&#8217;t change when the border width changes.</p>
<p>The following CSS provides an example of styling text boxes (both text and password inputs, and multi-line text boxes) and select lists (single and multi-line) with an alternate outline when holding the input focus.</p>


input[type=text], <span style="color:#777"> . . .<br /><br />&#8594; Read More: <a href="http://www.sidesofmarch.com/index.php/archive/2008/11/04/outlining-textbox-input-fields-and-getting-it-to-work-in-ie/">Outlining textbox input fields (and getting it to work in IE)</a></span>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.sidesofmarch.com/wp-content/uploads/google-textbox-outline.gif"><img class="alignright size-full wp-image-294" title="Google oulines their textboxes with keyboard focus" src="http://www.sidesofmarch.com/wp-content/uploads/google-textbox-outline.gif" alt="" width="366" height="91" /></a>While using <a href="http://redirectingat.com?id=17923X751173&xs=1&url=http%3A%2F%2Fmail.google.com&sref=rss">Google GMail</a> today, I noticed that they put a blue highlighting around the text input boxes when they have input focus. It&#8217;s a nice touch that makes it just a bit easier for users to identify which field their typing in. (<a href="http://redirectingat.com?id=17923X751173&xs=1&url=http%3A%2F%2Fwww.apple.com%2Fsafari%2F&sref=rss">Safari</a> users, of course, get this on all web sites out of the box.)</p>
<p>Getting this to work on your web site is a simple matter of applying some CSS styles. The trick is to give your normal inputs fields a 1px border and a 1px margin; then, when they have focus, give them a 2px border (with a different color if you so choose) and no margin. This will ensure the dimensions of the element don&#8217;t change when the border width changes.</p>
<p>The following CSS provides an example of styling text boxes (both text and password inputs, and multi-line text boxes) and select lists (single and multi-line) with an alternate outline when holding the input focus.</p>
<pre class="brush: css; ">

input[type=text], input[type=password], textarea, select {
border-top: solid 1px #8e8e8e;
border-right: solid 1px #d1d1d1;
border-left: solid 1px #d1d1d1;
border-bottom: solid 1px #e4e4e4;
margin: 1px;
padding: 2px;
}
input[type=text]:focus, input[type=password]:focus, textarea:focus, select:focus {
border-color: #4488cc;
border-style: solid;
border-width: 2px;
margin: 0;
}
</pre>
<p>Like many good web tricks, this&#8217;ll look great in Firefox but won&#8217;t do anything in Internet Explorer. That&#8217;s because IE (through version 7) <a href="http://redirectingat.com?id=17923X751173&xs=1&url=http%3A%2F%2Fwww.456bereastreet.com%2Farchive%2F200510%2Fcss_21_selectors_part_3%2F&sref=rss">doesn&#8217;t support</a> attribute selectors (as in <code>[type=text]</code>) or the <code>:focus</code> selector. To get things to work in IE, we need to rely on a little more CSS and some JavaScript.</p>
<p><span id="more-293"></span>The first thing to do is update our CSS. We&#8217;ll create a new <code>iefocus</code> class that, when applied, will put the border around our fields. (Of course, you should just add this to the end of the above CSS declaration to save space, but I present it separately below so you can follow along.)</p>
<pre class="brush: css; ">

.iefocus {
border-color: #4488cc;
border-style: solid;
border-width: 2px;
margin: 0;
}
</pre>
<p>The next step is to figure out how to tell IE &#8212; and only IE &#8212; to <em>apply</em> the <code>iefocus</code> class to elements fields when they get focus, and to <em>remove</em> the <code>iefocus</code> class when they lose focus (&#8220;blur&#8221;).</p>
<p>To do that, we use JavaScript. The snippet below uses jQuery to apply the behavior we want.</p>
<pre class="brush: javascript; ">

&lt;!--[if LTE IE 7]&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
	function ApplyIEFormStyles()
	{
		jQuery(&#039;:text,:password,textarea,select&#039;).focus(function() {
			jQuery(this).addClass(&#039;focus&#039;);
		}).blur(function() {
			jQuery(this).removeClass(&#039;focus&#039;);
		});
	}
	jQuery(document).ready(ApplyIEFormStyles);
&lt;/script&gt;
&lt; ![endif]--&gt;
</pre>
<p>The <a href="http://redirectingat.com?id=17923X751173&xs=1&url=http%3A%2F%2Fwww.quirksmode.org%2Fcss%2Fcondcom.htm&sref=rss">conditional comments</a> around the script block ensure the code only runs in Internet Explorer (through version 7).</p>
<p>The above code works great, but I found one weird caveat: If your page uses ASP.Net AJAX, and you have an UpdatePanel on the page, the behavior disappears after an asynchronous postback. There&#8217;s a fix for that, fortunately &#8212; we hook the same method (ApplyIEFormStyles) to a handler that is fired after each ASP.Net AJAX asynchronous event ends.</p>
<p>The final JavaScript follows.</p>
<pre class="brush: javascript; ">

&lt;!--[if LTE IE 7]&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
	function ApplyIEFormStyles()
	{
		jQuery(&#039;:text,:password,textarea,select&#039;).focus(function() {
			jQuery(this).addClass(&#039;focus&#039;);
		}).blur(function() {
			jQuery(this).removeClass(&#039;focus&#039;);
		});
	}
	jQuery(document).ready(ApplyIEFormStyles);
	if (Sys != null)
	{
		Sys.WebForms.PageRequestManager.getInstance().add_endRequest(ApplyIEFormStyles);
	}
&lt;/script&gt;
&lt; ![endif]--&gt;
</pre>
<p>That should do it &#8212; resolving the rendering issues in IE, and giving your users a little more usability when working through your web forms.</p>
<img src="http://www.sidesofmarch.com/?ak_action=api_record_view&id=293&type=feed" alt="" /><div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://www.sidesofmarch.com/index.php/archive/2008/11/04/outlining-textbox-input-fields-and-getting-it-to-work-in-ie/' addthis:title='Outlining textbox input fields (and getting it to work in IE) ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.sidesofmarch.com/index.php/archive/2008/11/04/outlining-textbox-input-fields-and-getting-it-to-work-in-ie/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Naming CSS properties, HTML properties&#8230; and fighting five-year olds</title>
		<link>http://www.sidesofmarch.com/index.php/archive/2008/01/08/naming-css-properties-html-properties-and-fighting-five-year-olds/</link>
		<comments>http://www.sidesofmarch.com/index.php/archive/2008/01/08/naming-css-properties-html-properties-and-fighting-five-year-olds/#comments</comments>
		<pubDate>Tue, 08 Jan 2008 21:43:10 +0000</pubDate>
		<dc:creator>brian</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[humor]]></category>
		<category><![CDATA[tests]]></category>

		<guid isPermaLink="false">http://www.sidesofmarch.com/index.php/archive/2008/01/08/naming-css-properties-html-properties-and-fighting-five-year-olds/</guid>
		<description><![CDATA[<p>It started innocently enough when I stumbled across a blog post over at <a href="http://poshcss.com">PoshCSS</a>, <a href="http://poshcss.com/2007/12/20/how-many-css-properties-can-you-name-in-7-minutes"><em>How many CSS Properties can you name in 7 minutes?</em></a> Curious, I took the test.</p>
<a id="mingle2_badge" style="display: block; background: url(http://assets.justsayhi.com/badges/4/369/css_properties.tjf6k7r9ix.jpg) no-repeat left top; width: 335px; color: #fff; height: 93px; text-decoration: none" href="http://www.justsayhi.com/bb/css_quiz"><strong id="mingle2_badge_score" style="display: block; padding-left: 123px; font-weight: normal; font-size: 20px; padding-top: 20px; font-family: times new roman, arial">64</strong></a>
<p>That took me to another test: <a href="http://www.justsayhi.com/bb/html_quiz">How many HTML elements you can name in five minutes?</a> I took that test, too.</p>
<a id="mingle2_badge" style="display: block; background: url(http://assets.justsayhi.com/badges/779/577/html_elements.73yc3yfan5.jpg) no-repeat left top; width: 335px; color: #fff; height: 147px; text-decoration: none" href="http://www.justsayhi.com/bb/html_quiz"><strong id="mingle2_badge_score" style="display: block; padding-left: 125px; font-weight: normal; font-size: 45px; padding-top: 60px; font-family: times new roman, arial">57</strong></a>
<p>This in turn took me to the most important test: <a href="http://www.howmanyfiveyearoldscouldyoutakeinafight.com/">How many five year olds could you take in a fight?</a></p>
<a style="display: block; font-size: 42px; background: url(http://assets.justsayhi.com/badges/843/315/fight5.7ftur50e2j.jpg) no-repeat; width: 296px; color: #fff; padding-top: 155px; font-family: arial, sans-serif; height: 84px; text-align: center; text-decoration: none" <span style="color:#777"> . . .<br /><br />&#8594; Read More: <a href="http://www.sidesofmarch.com/index.php/archive/2008/01/08/naming-css-properties-html-properties-and-fighting-five-year-olds/">Naming CSS properties, HTML properties&#8230; and fighting five-year olds</a></span>]]></description>
			<content:encoded><![CDATA[<p>It started innocently enough when I stumbled across a blog post over at <a href="http://redirectingat.com?id=17923X751173&xs=1&url=http%3A%2F%2Fposhcss.com&sref=rss">PoshCSS</a>, <a href="http://redirectingat.com?id=17923X751173&xs=1&url=http%3A%2F%2Fposhcss.com%2F2007%2F12%2F20%2Fhow-many-css-properties-can-you-name-in-7-minutes&sref=rss"><em>How many CSS Properties can you name in 7 minutes?</em></a> Curious, I took the test.</p>
<div><a id="mingle2_badge" style="display: block; background: url(http://assets.justsayhi.com/badges/4/369/css_properties.tjf6k7r9ix.jpg) no-repeat left top; width: 335px; color: #fff; height: 93px; text-decoration: none" href="http://redirectingat.com?id=17923X751173&xs=1&url=http%3A%2F%2Fwww.justsayhi.com%2Fbb%2Fcss_quiz&sref=rss"><strong id="mingle2_badge_score" style="display: block; padding-left: 123px; font-weight: normal; font-size: 20px; padding-top: 20px; font-family: times new roman, arial">64</strong></a></div>
<p>That took me to another test: <a href="http://redirectingat.com?id=17923X751173&xs=1&url=http%3A%2F%2Fwww.justsayhi.com%2Fbb%2Fhtml_quiz&sref=rss">How many HTML elements you can name in five minutes?</a> I took that test, too.</p>
<div><a id="mingle2_badge" style="display: block; background: url(http://assets.justsayhi.com/badges/779/577/html_elements.73yc3yfan5.jpg) no-repeat left top; width: 335px; color: #fff; height: 147px; text-decoration: none" href="http://redirectingat.com?id=17923X751173&xs=1&url=http%3A%2F%2Fwww.justsayhi.com%2Fbb%2Fhtml_quiz&sref=rss"><strong id="mingle2_badge_score" style="display: block; padding-left: 125px; font-weight: normal; font-size: 45px; padding-top: 60px; font-family: times new roman, arial">57</strong></a></div>
<p>This in turn took me to the most important test: <a href="http://redirectingat.com?id=17923X751173&xs=1&url=http%3A%2F%2Fwww.howmanyfiveyearoldscouldyoutakeinafight.com%2F&sref=rss">How many five year olds could you take in a fight?</a></p>
<div><a style="display: block; font-size: 42px; background: url(http://assets.justsayhi.com/badges/843/315/fight5.7ftur50e2j.jpg) no-repeat; width: 296px; color: #fff; padding-top: 155px; font-family: arial, sans-serif; height: 84px; text-align: center; text-decoration: none" href="http://redirectingat.com?id=17923X751173&xs=1&url=http%3A%2F%2Fwww.justsayhi.com%2Fbb%2Ffight5&sref=rss">23</a></div>
<p>Granted, that&#8217;s about 20 minutes wasted, but it sure is fun to know that a 37-year old with some martial arts experience can take on 23 five-year-olds. It was also depressing to put myself in the &#8220;36-55&#8243; age bracket.</p>
<img src="http://www.sidesofmarch.com/?ak_action=api_record_view&id=194&type=feed" alt="" /><div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://www.sidesofmarch.com/index.php/archive/2008/01/08/naming-css-properties-html-properties-and-fighting-five-year-olds/' addthis:title='Naming CSS properties, HTML properties&#8230; and fighting five-year olds ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.sidesofmarch.com/index.php/archive/2008/01/08/naming-css-properties-html-properties-and-fighting-five-year-olds/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS styled forms</title>
		<link>http://www.sidesofmarch.com/index.php/archive/2007/02/19/css-styled-forms/</link>
		<comments>http://www.sidesofmarch.com/index.php/archive/2007/02/19/css-styled-forms/#comments</comments>
		<pubDate>Mon, 19 Feb 2007 13:41:42 +0000</pubDate>
		<dc:creator>brian</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[forms]]></category>
		<category><![CDATA[html]]></category>

		<guid isPermaLink="false">http://www.sidesofmarch.com/index.php/archive/2007/02/19/css-styled-forms/</guid>
		<description><![CDATA[<p>I like using CSS for layouts and for making sites look pretty &#8212; partially because it&#8217;s a challenge that is quite satisfying when it works, and partially because I&#8217;m not a designer and don&#8217;t do well with more robust design elements.</p>
<p>One thing that I often liked using CSS for is for forms. For the past two or so years I&#8217;ve been tweaking my technique, and I think I finally have something that works well enough in most situations to share it with you.</p>
Requirements
<p>The sample page uses <a href="http://layout.constantology.com/">___layouts</a> for the basic page structure.  ___layouts (a heck of a name, I tell ya) is derived from Yahoo&#8217;s UI library, but it&#8217;s easier to implement.</p>
Compatibility
<p>The following browsers have been tested against the sample page, which also provides instructions and the CSS. Note any compatibility issues.</p>
<p>Important Note: At very small screen widths (generally less than 600 pixels wide), things can get out of control. Firefox 2.0 handles this best, but in all cases, <span style="color:#777"> . . .<br /><br />&#8594; Read More: <a href="http://www.sidesofmarch.com/index.php/archive/2007/02/19/css-styled-forms/">CSS styled forms</a></span>]]></description>
			<content:encoded><![CDATA[<p>I like using CSS for layouts and for making sites look pretty &#8212; partially because it&#8217;s a challenge that is quite satisfying when it works, and partially because I&#8217;m not a designer and don&#8217;t do well with more robust design elements.</p>
<p>One thing that I often liked using CSS for is for forms. For the past two or so years I&#8217;ve been tweaking my technique, and I think I finally have something that works well enough in most situations to share it with you.</p>
<h3>Requirements</h3>
<p>The sample page uses <a href="http://redirectingat.com?id=17923X751173&xs=1&url=http%3A%2F%2Flayout.constantology.com%2F&sref=rss">___layouts</a> for the basic page structure.  ___layouts (a heck of a name, I tell ya) is derived from Yahoo&#8217;s UI library, but it&#8217;s easier to implement.</p>
<h3>Compatibility</h3>
<p>The following browsers have been tested against the sample page, which also provides instructions and the CSS. Note any compatibility issues.</p>
<p><span style="font-weight: bold">Important Note: </span>At very small screen widths (generally less than 600 pixels wide), things can get out of control. Firefox 2.0 handles this best, but in all cases, things get messy at very small screen widths. As a result, setting a min-width on your body tag (or using the appropriate hack to do the same in IE6) is recommended.</p>
<ul>
<li><strong>Firefox</strong>
<ul>
<li>Firefox 2.0.0.1: No issues.</li>
<li>Firefox 1.5.0.4: No issues.</li>
<li>Firefox 1.0: No issues.</li>
</ul>
</li>
<li><strong>Internet Explorer</strong>
<ul>
<li>Internet Explorer 7.0.5730.11: No issues.</li>
<li>Internet Explorer 6.0.2900.2180.xpsp_sp2_gdr.050301-1519 (sorry, I couldn&#8217;t help myself): Background colors do not fill complete rows. To use background colors, you need to use a CSS hack (I may add this in the future). Incredibly, there are otherwise no issues.</li>
</ul>
</li>
<li><strong>Netscape</strong>
<ul>
<li>Netscape 8.1: Line around form doesn&#8217;t fully wrap with legend, causing a very minor stylistic quirk, but otherwise no issues.</li>
<li>Netscape 7.2: Slightly worse handling of fieldset border than Netscape 8.1, causing a minor stylistic quirk, but otherwise no issues.</li>
<li>Netscape 6.2: Totally broken. Most content in the form does not render. To resolve this, you need to set overflow:visible on the div.row. However, doing this breaks some scaling features (long text boxes will run outside the box) and breaks the row background color. Considering Netscape 6.2 was launch in November 2001, instead of hacking to support it, tell your visitors who are using it to upgrade.</li>
</ul>
</li>
<li><strong>Opera</strong>
<ul>
<li>Opera 9.10: No issues.</li>
<li>Opera 8.5.4: No issues.</li>
<li>Opera 7.11: Totally broken. See the Netscape 6.2 notes for a fix (and why you shouldn&#8217;t bother, since Opera 7.11 was released some time in 2003 and likely has a tiny user base).</li>
<li>Opera 6.2: Totally broken (though slightly differently than with Opera 7.11). All notes for Opera 7.11 apply here.</li>
</ul>
</li>
</ul>
<p>To view the CSS used, some brief instructions, and a form sample, go to <a href="http://www.sidesofmarch.com/wp-content/uploads/files/cssforms/cssforms.htm">http://www.sidesofmarch.com/wp-content/uploads/files/cssforms/cssforms.htm</a>.</p>
<img src="http://www.sidesofmarch.com/?ak_action=api_record_view&id=41&type=feed" alt="" /><div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://www.sidesofmarch.com/index.php/archive/2007/02/19/css-styled-forms/' addthis:title='CSS styled forms ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.sidesofmarch.com/index.php/archive/2007/02/19/css-styled-forms/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Styling your checkboxes and radio buttons</title>
		<link>http://www.sidesofmarch.com/index.php/archive/2005/07/13/styling-your-checkboxes-and-radio-buttons/</link>
		<comments>http://www.sidesofmarch.com/index.php/archive/2005/07/13/styling-your-checkboxes-and-radio-buttons/#comments</comments>
		<pubDate>Thu, 14 Jul 2005 07:04:18 +0000</pubDate>
		<dc:creator>brian</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://www.sidesofmarch.com/index.php/archive/2005/07/13/styling-your-checkboxes-and-radio-buttons/</guid>
		<description><![CDATA[<p>A fantastic Web page called <a href="http://www.gamingheadlines.co.uk/wod/formstyle/index.html">Styled Checkboxes</a> describes how to use <a href="http://www.w3.org/Style/CSS/">CSS</a> and <a href="http://www.google.com/search?q=javascript">JavaScript</a> to create graphical checkboxes and radio buttons that depreciate to the standard checkbox and radio button HTML controls when CSS or JavaScript is turned off. It works, too &#8211; and is definitely worth checking out as a way to pretty up your Web pages.</p>
<p>A unique idea? Not really, but it&#8217;s one of the first times I&#8217;ve seen it written up and packaged in one place.</p>
<a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a <span style="color:#777"> . . .<br /><br />&#8594; Read More: <a href="http://www.sidesofmarch.com/index.php/archive/2005/07/13/styling-your-checkboxes-and-radio-buttons/">Styling your checkboxes and radio buttons</a></span>]]></description>
			<content:encoded><![CDATA[<p>A fantastic Web page called <a href="http://redirectingat.com?id=17923X751173&xs=1&url=http%3A%2F%2Fwww.gamingheadlines.co.uk%2Fwod%2Fformstyle%2Findex.html&sref=rss">Styled Checkboxes</a> describes how to use <a href="http://redirectingat.com?id=17923X751173&xs=1&url=http%3A%2F%2Fwww.w3.org%2FStyle%2FCSS%2F&sref=rss">CSS</a> and <a href="http://redirectingat.com?id=17923X751173&xs=1&url=http%3A%2F%2Fwww.google.com%2Fsearch%3Fq%3Djavascript&sref=rss">JavaScript</a> to create graphical checkboxes and radio buttons that depreciate to the standard checkbox and radio button HTML controls when CSS or JavaScript is turned off. It works, too &#8211; and is definitely worth checking out as a way to pretty up your Web pages.</p>
<p>A unique idea? Not really, but it&#8217;s one of the first times I&#8217;ve seen it written up and packaged in one place.</p>
<img src="http://www.sidesofmarch.com/?ak_action=api_record_view&id=114&type=feed" alt="" /><div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://www.sidesofmarch.com/index.php/archive/2005/07/13/styling-your-checkboxes-and-radio-buttons/' addthis:title='Styling your checkboxes and radio buttons ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.sidesofmarch.com/index.php/archive/2005/07/13/styling-your-checkboxes-and-radio-buttons/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

