<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-20880701.post6693223217751239225..comments</id><updated>2011-07-12T17:53:54.630+02:00</updated><category term='templates'/><category term='print'/><category term='css framework'/><category term='framework'/><category term='css'/><category term='emastic beta2'/><category term='hartija'/><category term='free'/><category term='formy'/><title type='text'>Comments on Carrer Blog: Write modern CSS - use class</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.vcarrer.com/feeds/6693223217751239225/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20880701/6693223217751239225/comments/default'/><link rel='alternate' type='text/html' href='http://www.vcarrer.com/2011/05/write-modern-css-use-class.html'/><author><name>Vladimir</name><uri>http://www.blogger.com/profile/04801854386297420021</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>10</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-20880701.post-2257389482742566971</id><published>2011-07-12T17:51:27.432+02:00</published><updated>2011-07-12T17:51:27.432+02:00</updated><title type='text'>I believe everyone made their point. Although this...</title><content type='html'>I believe everyone made their point. Although this system is flawed. And It is recommended, for not reusable elements WITHIN THE SAME PAGE, like footer, header, content, columns (layout in general) to use ids, to give them more hierarchy over the classes, and Gabor also is absolutely right, ids come absolutely handy to interact with jquery. once again, if you have an element used only once in the page, use ids, and for the css do the same...if you have elements repeated in the page (user controls, lists, etc) use classes and their respective styling. This is html/css 101 imo.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20880701/6693223217751239225/comments/default/2257389482742566971'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20880701/6693223217751239225/comments/default/2257389482742566971'/><link rel='alternate' type='text/html' href='http://www.vcarrer.com/2011/05/write-modern-css-use-class.html?showComment=1310485887432#c2257389482742566971' title=''/><author><name>caesarAlex</name><uri>http://www.blogger.com/profile/17637762095667910960</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.vcarrer.com/2011/05/write-modern-css-use-class.html' ref='tag:blogger.com,1999:blog-20880701.post-6693223217751239225' source='http://www.blogger.com/feeds/20880701/posts/default/6693223217751239225' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-710247190'/></entry><entry><id>tag:blogger.com,1999:blog-20880701.post-5525513489532201307</id><published>2011-06-12T20:14:21.036+02:00</published><updated>2011-06-12T20:14:21.036+02:00</updated><title type='text'>@Scott: I just used .w300 just to make my point. Y...</title><content type='html'>@Scott: I just used .w300 just to make my point. You are absolutely right about the downsides of w300 naming system. I like your suggestion about .small-width-column, .medium-width-column, .large-width-column ... Finding right naming system for 24,16,12 columns grid system is no easy task that is why we have variety of names like grid1, column1, g160 ... Probably the best solution is to give names that work best for your current project and don&amp;#39;t use general names.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20880701/6693223217751239225/comments/default/5525513489532201307'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20880701/6693223217751239225/comments/default/5525513489532201307'/><link rel='alternate' type='text/html' href='http://www.vcarrer.com/2011/05/write-modern-css-use-class.html?showComment=1307902461036#c5525513489532201307' title=''/><author><name>Vladimir</name><uri>http://www.blogger.com/profile/04801854386297420021</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.vcarrer.com/2011/05/write-modern-css-use-class.html' ref='tag:blogger.com,1999:blog-20880701.post-6693223217751239225' source='http://www.blogger.com/feeds/20880701/posts/default/6693223217751239225' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-721468892'/></entry><entry><id>tag:blogger.com,1999:blog-20880701.post-5669370386487396177</id><published>2011-06-12T17:28:34.706+02:00</published><updated>2011-06-12T17:28:34.706+02:00</updated><title type='text'>Henry Ho pointed this out first, but I don&amp;#39;t k...</title><content type='html'>Henry Ho pointed this out first, but I don&amp;#39;t know that he made his point.  Styles are supposed to be about semantics, not implementations.&lt;br /&gt;&lt;br /&gt;The reason not to use inline styling, as we know, is that when you need to change the width (to use your examples), you&amp;#39;d have to make that change in multiple places in your site.  If you use class names that derive from the VALUES assigned to those classes, you have the same problem, namely having to change all references to .w600 in your site to .w650 (for example).  Taking this to the logical extreme over time, you&amp;#39;d find yourself with hundreds of classes like .red, .bold, .verdana, etc. If you&amp;#39;re implementation specific in either direction, you&amp;#39;ve gone too far. :)&lt;br /&gt;&lt;br /&gt;The better approach is to use more class names (as you advocated), but keep the names implementation-neutral.&lt;br /&gt;&lt;br /&gt;For example, I&amp;#39;d suggest .small-width-column, .medium-width-column, .large-width-column, .tall-section, .short-section, etc. for the type of layout elements you used in your example.  You can still apply these to multiple elements to get the benefits you described, but you can also change the specific values in one place (the .css file) with less likelihood of leaving behind badly named classes just because a value changes.  &lt;br /&gt;&lt;br /&gt;Overall though, I think your general point that people are styling implementation details is valid.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20880701/6693223217751239225/comments/default/5669370386487396177'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20880701/6693223217751239225/comments/default/5669370386487396177'/><link rel='alternate' type='text/html' href='http://www.vcarrer.com/2011/05/write-modern-css-use-class.html?showComment=1307892514706#c5669370386487396177' title=''/><author><name>Scott Mayfield</name><uri>http://www.blogger.com/profile/17635417281060822340</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://4.bp.blogspot.com/_2-1Gd-oKwXY/SzzLWyIG_DI/AAAAAAAAA-E/T-DKWqQVcSo/S220/FoxPatrolTotem_small.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.vcarrer.com/2011/05/write-modern-css-use-class.html' ref='tag:blogger.com,1999:blog-20880701.post-6693223217751239225' source='http://www.blogger.com/feeds/20880701/posts/default/6693223217751239225' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1554469568'/></entry><entry><id>tag:blogger.com,1999:blog-20880701.post-6817581548118007554</id><published>2011-06-01T05:26:56.511+02:00</published><updated>2011-06-01T05:26:56.511+02:00</updated><title type='text'>I agree with Henry Ho ... This is the new inline s...</title><content type='html'>I agree with Henry Ho ... This is the new inline style. That means I have to write different template files to serve to different clients ie: web, mobile, etc.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20880701/6693223217751239225/comments/default/6817581548118007554'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20880701/6693223217751239225/comments/default/6817581548118007554'/><link rel='alternate' type='text/html' href='http://www.vcarrer.com/2011/05/write-modern-css-use-class.html?showComment=1306898816511#c6817581548118007554' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.vcarrer.com/2011/05/write-modern-css-use-class.html' ref='tag:blogger.com,1999:blog-20880701.post-6693223217751239225' source='http://www.blogger.com/feeds/20880701/posts/default/6693223217751239225' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1653189383'/></entry><entry><id>tag:blogger.com,1999:blog-20880701.post-3890748833941477569</id><published>2011-05-31T22:13:06.370+02:00</published><updated>2011-05-31T22:13:06.370+02:00</updated><title type='text'>@Henry Ho: and of course inline styling is not rec...</title><content type='html'>@Henry Ho: and of course inline styling is not recomented, especially if you want to keep content independent from style</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20880701/6693223217751239225/comments/default/3890748833941477569'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20880701/6693223217751239225/comments/default/3890748833941477569'/><link rel='alternate' type='text/html' href='http://www.vcarrer.com/2011/05/write-modern-css-use-class.html?showComment=1306872786370#c3890748833941477569' title=''/><author><name>Macway</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.vcarrer.com/2011/05/write-modern-css-use-class.html' ref='tag:blogger.com,1999:blog-20880701.post-6693223217751239225' source='http://www.blogger.com/feeds/20880701/posts/default/6693223217751239225' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-903544037'/></entry><entry><id>tag:blogger.com,1999:blog-20880701.post-3182679044222320260</id><published>2011-05-31T20:35:05.721+02:00</published><updated>2011-05-31T20:35:05.721+02:00</updated><title type='text'>@Henry Ho : .w300 was just the example. I&amp;#39;m no...</title><content type='html'>@Henry Ho : .w300 was just the example. I&amp;#39;m not saying use .w I&amp;#39;m saying use any class name that makes sense for you. The point is if that unit will be used multiple times is better to write class not ID.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20880701/6693223217751239225/comments/default/3182679044222320260'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20880701/6693223217751239225/comments/default/3182679044222320260'/><link rel='alternate' type='text/html' href='http://www.vcarrer.com/2011/05/write-modern-css-use-class.html?showComment=1306866905721#c3182679044222320260' title=''/><author><name>Vladimir</name><uri>http://www.blogger.com/profile/04801854386297420021</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.vcarrer.com/2011/05/write-modern-css-use-class.html' ref='tag:blogger.com,1999:blog-20880701.post-6693223217751239225' source='http://www.blogger.com/feeds/20880701/posts/default/6693223217751239225' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-721468892'/></entry><entry><id>tag:blogger.com,1999:blog-20880701.post-3158218038184433604</id><published>2011-05-31T20:07:14.349+02:00</published><updated>2011-05-31T20:07:14.349+02:00</updated><title type='text'>If u&amp;#39;re doing class=&amp;quot;w180&amp;quot;, why don&amp;...</title><content type='html'>If u&amp;#39;re doing class=&amp;quot;w180&amp;quot;, why don&amp;#39;t you do style=&amp;quot;width:180px;&amp;quot;?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20880701/6693223217751239225/comments/default/3158218038184433604'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20880701/6693223217751239225/comments/default/3158218038184433604'/><link rel='alternate' type='text/html' href='http://www.vcarrer.com/2011/05/write-modern-css-use-class.html?showComment=1306865234349#c3158218038184433604' title=''/><author><name>Henry Ho</name><uri>http://www.blogger.com/profile/17002578166283757395</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.vcarrer.com/2011/05/write-modern-css-use-class.html' ref='tag:blogger.com,1999:blog-20880701.post-6693223217751239225' source='http://www.blogger.com/feeds/20880701/posts/default/6693223217751239225' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-956831032'/></entry><entry><id>tag:blogger.com,1999:blog-20880701.post-8744835094758397047</id><published>2011-05-31T20:06:11.389+02:00</published><updated>2011-05-31T20:06:11.389+02:00</updated><title type='text'></title><content type='html'>This comment has been removed by the author.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20880701/6693223217751239225/comments/default/8744835094758397047'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20880701/6693223217751239225/comments/default/8744835094758397047'/><author><name>Henry Ho</name><uri>http://www.blogger.com/profile/17002578166283757395</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.vcarrer.com/2011/05/write-modern-css-use-class.html' ref='tag:blogger.com,1999:blog-20880701.post-6693223217751239225' source='http://www.blogger.com/feeds/20880701/posts/default/6693223217751239225' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.contentRemoved' value='true'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-956831032'/></entry><entry><id>tag:blogger.com,1999:blog-20880701.post-224028559831408650</id><published>2011-05-31T18:49:38.534+02:00</published><updated>2011-05-31T18:49:38.534+02:00</updated><title type='text'>@Gabor: Yes, ID with combination of getElementById...</title><content type='html'>@Gabor: Yes, ID with combination of getElementById are fast.&lt;br /&gt;&lt;br /&gt;But in the future browsers will speed optimize document.querySelectorAll .  If document.querySelectorAll is put in array is even faster than not optimized getElementById. http://www.vcarrer.com/2011/04/svetlo-one-line-javascript-selector.html&lt;br /&gt;&lt;br /&gt;But this is completely off-topic :-)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20880701/6693223217751239225/comments/default/224028559831408650'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20880701/6693223217751239225/comments/default/224028559831408650'/><link rel='alternate' type='text/html' href='http://www.vcarrer.com/2011/05/write-modern-css-use-class.html?showComment=1306860578534#c224028559831408650' title=''/><author><name>Vladimir</name><uri>http://www.blogger.com/profile/04801854386297420021</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.vcarrer.com/2011/05/write-modern-css-use-class.html' ref='tag:blogger.com,1999:blog-20880701.post-6693223217751239225' source='http://www.blogger.com/feeds/20880701/posts/default/6693223217751239225' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-721468892'/></entry><entry><id>tag:blogger.com,1999:blog-20880701.post-4342680368674479038</id><published>2011-05-31T07:54:24.899+02:00</published><updated>2011-05-31T07:54:24.899+02:00</updated><title type='text'>I&amp;#39;ve been doing this for many years, and I had...</title><content type='html'>I&amp;#39;ve been doing this for many years, and I had another reason besides the obvious reusability problem: in my code IDs are preserved for Javascript interaction, for several reasons. It&amp;#39;s faster to query the DOM for IDs, no code duplication, more effective parallel coding among developers. The letter two are especially important, since this way JS and CSS are largely independent of each other, so most cases I don&amp;#39;t have to edit the other if a naming change happened in the application.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20880701/6693223217751239225/comments/default/4342680368674479038'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20880701/6693223217751239225/comments/default/4342680368674479038'/><link rel='alternate' type='text/html' href='http://www.vcarrer.com/2011/05/write-modern-css-use-class.html?showComment=1306821264899#c4342680368674479038' title=''/><author><name>Gabor</name><uri>http://www.blogger.com/profile/11139291412168755398</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.vcarrer.com/2011/05/write-modern-css-use-class.html' ref='tag:blogger.com,1999:blog-20880701.post-6693223217751239225' source='http://www.blogger.com/feeds/20880701/posts/default/6693223217751239225' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1329906799'/></entry></feed>
