<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:georss="http://www.georss.org/georss" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0"><id>tag:blogger.com,1999:blog-890715537831565924</id><updated>2009-10-28T18:47:08.970-04:00</updated><title type="text">A Div Too Far</title><subtitle type="html">Practical web development without getting carried away</subtitle><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://webdev.gregdking.com/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://webdev.gregdking.com/" /><link rel="hub" href="http://pubsubhubbub.appspot.com/" /><author><name>Greg King</name><uri>http://www.blogger.com/profile/09489551161313916690</uri><email>noreply@blogger.com</email></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>5</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><link rel="self" href="http://feeds.feedburner.com/ADivTooFar" type="application/atom+xml" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><entry><id>tag:blogger.com,1999:blog-890715537831565924.post-3880781990887157962</id><published>2007-05-30T17:13:00.000-04:00</published><updated>2007-05-30T17:19:08.924-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="JavaScript" /><title type="text">Showcase of Web Based Data Grids</title><content type="html">Smashing Magazine has an excellent &lt;a href="http://www.smashingmagazine.com/2007/05/30/tables-and-data-grids-with-ajax-dhtml-javascript/"&gt;review of JavaScript based data grids&lt;/a&gt;. The showcased products cover a range of licenses and price points. With more and more projects moving towards rich user interfaces some of these may come in handy. The &lt;a href="http://extjs.com/playpen/ext-2.0/examples/grid/grid3.html"&gt;data grid from ExtJs&lt;/a&gt;, along with the entire &lt;a href="http://extjs.com/deploy/ext/docs/index.html"&gt;ExtJs library&lt;/a&gt;, looks like something I can put to use right away.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/890715537831565924-3880781990887157962?l=webdev.gregdking.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/ADivTooFar?a=eruiw4SgzcY:LCzkVfvU7Bc:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ADivTooFar?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ADivTooFar?a=eruiw4SgzcY:LCzkVfvU7Bc:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ADivTooFar?i=eruiw4SgzcY:LCzkVfvU7Bc:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ADivTooFar?a=eruiw4SgzcY:LCzkVfvU7Bc:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ADivTooFar?i=eruiw4SgzcY:LCzkVfvU7Bc:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ADivTooFar/~4/eruiw4SgzcY" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://webdev.gregdking.com/feeds/3880781990887157962/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=890715537831565924&amp;postID=3880781990887157962" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/890715537831565924/posts/default/3880781990887157962" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/890715537831565924/posts/default/3880781990887157962" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ADivTooFar/~3/eruiw4SgzcY/showcase-of-web-based-data-grids.html" title="Showcase of Web Based Data Grids" /><author><name>Greg King</name><uri>http://www.blogger.com/profile/09489551161313916690</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd="http://schemas.google.com/g/2005" name="OpenSocialUserId" value="04671051009304653237" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://webdev.gregdking.com/2007/05/showcase-of-web-based-data-grids.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-890715537831565924.post-6294449609972867983</id><published>2007-05-30T09:59:00.000-04:00</published><updated>2007-05-30T10:05:05.452-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Themes" /><title type="text">Wordpress Themes as Web Design Examples</title><content type="html">This week this blog has been featured on &lt;a href="http://www.petsgardenblog.com/2007/05/30/showcase-new-blog-carnival-93/"&gt;The New Blog Carnival&lt;/a&gt;, a listing of new blogs. The showcase includes blogs of several different targets, but I did notice a list of &lt;a href="http://www.prosperityachiever.com/webblog-design-tips/74-wordpress-themes-collection/"&gt;74 Wordpress themes&lt;/a&gt;. I do not use Wordpress for my own blogs (although I may switch sometime in the future), but they are a good source of web design and CSS ideas. I invite you to go take a look.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/890715537831565924-6294449609972867983?l=webdev.gregdking.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/ADivTooFar?a=Nyu_meyWO3U:Xrkm99PNwLs:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ADivTooFar?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ADivTooFar?a=Nyu_meyWO3U:Xrkm99PNwLs:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ADivTooFar?i=Nyu_meyWO3U:Xrkm99PNwLs:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ADivTooFar?a=Nyu_meyWO3U:Xrkm99PNwLs:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ADivTooFar?i=Nyu_meyWO3U:Xrkm99PNwLs:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ADivTooFar/~4/Nyu_meyWO3U" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://webdev.gregdking.com/feeds/6294449609972867983/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=890715537831565924&amp;postID=6294449609972867983" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/890715537831565924/posts/default/6294449609972867983" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/890715537831565924/posts/default/6294449609972867983" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ADivTooFar/~3/Nyu_meyWO3U/wordpress-themes-as-web-design-examples.html" title="Wordpress Themes as Web Design Examples" /><author><name>Greg King</name><uri>http://www.blogger.com/profile/09489551161313916690</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd="http://schemas.google.com/g/2005" name="OpenSocialUserId" value="04671051009304653237" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://webdev.gregdking.com/2007/05/wordpress-themes-as-web-design-examples.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-890715537831565924.post-7390418224371028312</id><published>2007-05-22T10:28:00.000-04:00</published><updated>2007-05-22T10:33:21.204-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CSS" /><title type="text">Better CSS Coding</title><content type="html">You can find a lot of advice on how to write optimized CSS code. Unfortunately, the more optimized the code is, the harder it is to maintain. I like to recommend to people to focus on writing clear and understandable CSS code. Once your CSS is easy to understand, optimizations such as reduction of duplicated code will soon follow. Thus I was happy to see &lt;a href="http://www.smashingmagazine.com/"&gt;Smashing Magazine&lt;/a&gt; have a post &lt;a href="http://www.smashingmagazine.com/2007/05/10/70-expert-ideas-for-better-css-coding/"&gt;70 Expert Ideas For Better CSS Coding&lt;/a&gt; that focuses on how to write better CSS code.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/890715537831565924-7390418224371028312?l=webdev.gregdking.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/ADivTooFar?a=XYBLxfZS6Dg:nGCezLS6tvs:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ADivTooFar?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ADivTooFar?a=XYBLxfZS6Dg:nGCezLS6tvs:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ADivTooFar?i=XYBLxfZS6Dg:nGCezLS6tvs:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ADivTooFar?a=XYBLxfZS6Dg:nGCezLS6tvs:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ADivTooFar?i=XYBLxfZS6Dg:nGCezLS6tvs:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ADivTooFar/~4/XYBLxfZS6Dg" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://webdev.gregdking.com/feeds/7390418224371028312/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=890715537831565924&amp;postID=7390418224371028312" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/890715537831565924/posts/default/7390418224371028312" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/890715537831565924/posts/default/7390418224371028312" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ADivTooFar/~3/XYBLxfZS6Dg/better-css-coding.html" title="Better CSS Coding" /><author><name>Greg King</name><uri>http://www.blogger.com/profile/09489551161313916690</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd="http://schemas.google.com/g/2005" name="OpenSocialUserId" value="04671051009304653237" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://webdev.gregdking.com/2007/05/better-css-coding.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-890715537831565924.post-5244406892393833739</id><published>2007-05-17T11:03:00.000-04:00</published><updated>2007-05-17T11:06:52.177-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CSS" /><title type="text">Using Ems for More than Font Size</title><content type="html">It is common practice to use the em unit to specify font sizes in CSS. What I have not seen very often is using ems to specify other styles like width. For example, say you have a fixed width menu specified with the following style:&lt;br /&gt;&lt;pre&gt;div.menu&lt;br /&gt;{&lt;br /&gt;   width: 175px;&lt;br /&gt;   font-size: 1.1em;&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;This is good practice since you or the end user can change the font size of the page and the font size of your menu will change accordingly. However, since the width of your menu is fixed, the text may wrap as font size increases. An alternative style would be:&lt;br /&gt;&lt;pre&gt;div.menu&lt;br /&gt;{&lt;br /&gt;   width: 10em;&lt;br /&gt;   font-size: 1.1em;&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;Specifying the width in ems forces the width to be relative to the font size. Therefore as the font size of your page increases, the absolute width of your menu increases as well.&lt;br /&gt;&lt;br /&gt;For more information on using ems for widths check out &lt;a href="http://css-discuss.incutio.com/?page=EmVsPercentWidths"&gt;this article&lt;/a&gt; on the &lt;a href="http://css-discuss.incutio.com/?page=FrontPage"&gt;css-discuss Wiki&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/890715537831565924-5244406892393833739?l=webdev.gregdking.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/ADivTooFar?a=1Q5rT75-rj0:CJwT2EaD28U:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ADivTooFar?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ADivTooFar?a=1Q5rT75-rj0:CJwT2EaD28U:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ADivTooFar?i=1Q5rT75-rj0:CJwT2EaD28U:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ADivTooFar?a=1Q5rT75-rj0:CJwT2EaD28U:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ADivTooFar?i=1Q5rT75-rj0:CJwT2EaD28U:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ADivTooFar/~4/1Q5rT75-rj0" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://webdev.gregdking.com/feeds/5244406892393833739/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=890715537831565924&amp;postID=5244406892393833739" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/890715537831565924/posts/default/5244406892393833739" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/890715537831565924/posts/default/5244406892393833739" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ADivTooFar/~3/1Q5rT75-rj0/using-ems-for-more-than-font-size.html" title="Using Ems for More than Font Size" /><author><name>Greg King</name><uri>http://www.blogger.com/profile/09489551161313916690</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd="http://schemas.google.com/g/2005" name="OpenSocialUserId" value="04671051009304653237" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">1</thr:total><feedburner:origLink>http://webdev.gregdking.com/2007/05/using-ems-for-more-than-font-size.html</feedburner:origLink></entry><entry><id>tag:blogger.com,1999:blog-890715537831565924.post-9038802802317903047</id><published>2007-05-15T09:33:00.000-04:00</published><updated>2007-05-15T14:58:27.556-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CSS" /><title type="text">A Nested Format for CSS Files</title><content type="html">As my comfort level with Cascading Style Sheets has increased, I found my CSS files growing in size and complexity. The struggle has been to keep these files organized and easy to maintain. My approach in the past has been to keep my CSS selectors in the following order:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Tags&lt;/li&gt;&lt;li&gt;Classes&lt;/li&gt;&lt;li&gt;IDs&lt;/li&gt;&lt;/ol&gt;and using alphabetical order within these categories. While it is a method for organization, it is not very good. There is no visual connection between my CSS code and my HTML document, and the format does not lend itself well to optimizing the code.&lt;br /&gt;&lt;br /&gt;Last week I stumbled on the &lt;a href="http://haml.hamptoncatlin.com/docs/sass"&gt;Sass framework&lt;/a&gt;. Sass is a Ruby library for generating CSS files. While I do not use Ruby so I cannot make use of the framework, one of the output formats intrigued me. This format uses whitespace to give the appearance of one selector being nested inside of another.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Original&lt;/span&gt;&lt;br /&gt;&lt;pre&gt;table&lt;br /&gt;{&lt;br /&gt;   margin: 25px 0 25px 0;&lt;br /&gt;   border: 1px solid black&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;thead th&lt;br /&gt;{&lt;br /&gt;   text-align: left;&lt;br /&gt;   font-size: 1.2em;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;th.numeric,&lt;br /&gt;td.numeric&lt;br /&gt;{&lt;br /&gt;   text-align: right;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;tbody th&lt;br /&gt;{&lt;br /&gt;   text-align: left;&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;span style="font-weight: bold;"&gt;Nested&lt;/span&gt;&lt;br /&gt;&lt;pre&gt;table {&lt;br /&gt;   margin: 25px 0 25px 0;&lt;br /&gt;   border: 1px solid black; }&lt;br /&gt;&lt;br /&gt;   table .numeric {&lt;br /&gt;       text-align: right; }&lt;br /&gt;&lt;br /&gt;   table thead {}&lt;br /&gt;       table thead th {&lt;br /&gt;           text-align: left;&lt;br /&gt;           font-size: 1.2em; }&lt;br /&gt;&lt;br /&gt;   table tbody {}&lt;br /&gt;       table tbody th {&lt;br /&gt;           text-align: left; }&lt;br /&gt;&lt;/pre&gt;If you pay attention to the braces you will notice that the selectors are not actually nested, but the whitespace give the illusion that they are. I am still experimenting how explicit to be when nesting the selectors. I like the format because it corresponds to the structure of the related HTML document and makes it easier to see duplicated style rules.&lt;br /&gt;&lt;br /&gt;Give this CSS format a try and let me know what you think.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/890715537831565924-9038802802317903047?l=webdev.gregdking.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/ADivTooFar?a=Wized63sDQw:wfqnhpSLtTs:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ADivTooFar?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ADivTooFar?a=Wized63sDQw:wfqnhpSLtTs:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ADivTooFar?i=Wized63sDQw:wfqnhpSLtTs:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ADivTooFar?a=Wized63sDQw:wfqnhpSLtTs:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ADivTooFar?i=Wized63sDQw:wfqnhpSLtTs:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ADivTooFar/~4/Wized63sDQw" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://webdev.gregdking.com/feeds/9038802802317903047/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=890715537831565924&amp;postID=9038802802317903047" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/890715537831565924/posts/default/9038802802317903047" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/890715537831565924/posts/default/9038802802317903047" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ADivTooFar/~3/Wized63sDQw/nested-format-for-css-files.html" title="A Nested Format for CSS Files" /><author><name>Greg King</name><uri>http://www.blogger.com/profile/09489551161313916690</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd="http://schemas.google.com/g/2005" name="OpenSocialUserId" value="04671051009304653237" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://webdev.gregdking.com/2007/05/nested-format-for-css-files.html</feedburner:origLink></entry></feed>
