<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1042288" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1042288</link>
    <description></description>
    <language>en</language>
          <item>
    <title>Thanks for this article,</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/apc-article-21-ways-streamline-your-css#comment-1291272</link>
    <description> &lt;p&gt;Thanks for this article, please post more tips for me to study.&lt;/p&gt;
 </description>
     <pubDate>Mon, 14 Aug 2017 02:10:05 +0000</pubDate>
 <dc:creator>davidben</dc:creator>
 <guid isPermaLink="false">comment 1291272 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Read this article when it</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/apc-article-21-ways-streamline-your-css#comment-1242184</link>
    <description> &lt;p&gt;Read this article when it was first posted and because I was bored, read it again. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/wink.png&quot; title=&quot;Wink&quot; alt=&quot;Wink&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Just two things I&#039;d like to point out:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;quote-msg&quot;&gt;&lt;div class=&quot;quote-author&quot;&gt;Quote:&lt;/div&gt;You may be working on sites with large CSS files, &lt;strong&gt;multiple developers ,and&lt;/strong&gt; long development timelines.&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;quote-msg&quot;&gt;&lt;div class=&quot;quote-author&quot;&gt;Quote:&lt;/div&gt;Before adding a selector — particularly a generic element selector — make sure to check through &lt;strong&gt;you&lt;/strong&gt; CSS first to make sure it hasn’t already been used.&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Sun, 31 May 2009 21:43:00 +0000</pubDate>
 <dc:creator>Renegade</dc:creator>
 <guid isPermaLink="false">comment 1242184 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Really good article</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/apc-article-21-ways-streamline-your-css#comment-1242143</link>
    <description> &lt;p&gt;Really good article Megan.&lt;/p&gt;
&lt;p&gt;Having read through it all, I agreed with every bit of it, and actually am glad to say I do most of that anyway.&lt;br /&gt;
Although I never use @import for stylesheets, IE conditional comments or reset the CSS in the start.&lt;br /&gt;
Resetting is probably useful, but I tend to declare everything specifically these days anyway, as it seems to make code more x browser.&lt;/p&gt;
&lt;p&gt;Logical flow / cascading was just something that I did from my starting to code. I&#039;m fairly logical, so putting the CSS in the exact same order as the content it&#039;s used on the page just happened by chance (fortunately) as I code the HTML from top to bottom so make the CSS from top to bottom as I go along.&lt;/p&gt;
&lt;p&gt;It&#039;s surprising to delve into other people&#039;s code and see how many people have it all over the place.&lt;br /&gt;
And IE conditional comments I just never wanted to use, sounds to hack-like. I guess it will be really useful/essential sometimes, but I&#039;ve managed without it so wont start now.&lt;/p&gt;
&lt;p&gt;Although listing the colours is a good idea, I might use that. I usually have Gimp open anyway and tend to use the colour picker, or Firebug is great too. Right click on the element with the colour and just copy it from the CSS on the right.&lt;/p&gt;
 </description>
     <pubDate>Sat, 30 May 2009 00:52:34 +0000</pubDate>
 <dc:creator>greg</dc:creator>
 <guid isPermaLink="false">comment 1242143 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>I used css for the first</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/apc-article-21-ways-streamline-your-css#comment-1242135</link>
    <description> &lt;p&gt;I used css for the first time ever in my suckerfish nav bar, and (drum roll) it works ! even in IE ! (now)&lt;/p&gt;
 </description>
     <pubDate>Sat, 30 May 2009 00:01:05 +0000</pubDate>
 <dc:creator>NickD</dc:creator>
 <guid isPermaLink="false">comment 1242135 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Instead of adding a DIV to</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/apc-article-21-ways-streamline-your-css#comment-1241560</link>
    <description> &lt;p&gt;Instead of adding a DIV to IE with conditional comments (#17) I use this HTML:&lt;/p&gt;
&lt;p&gt;  &amp;lt;!--[if gte IE 8]&amp;gt;&amp;lt;!--&amp;gt;&amp;lt;body id=&quot;toolbox&quot;&amp;gt;&amp;lt;!--&amp;lt;![endif]--&amp;gt;&lt;br /&gt;
  &amp;lt;!--[if lt IE 8]&amp;gt;&amp;lt;body id=&quot;toolbox&quot; class=&quot;msie5-7&quot;&amp;gt;&amp;lt;![endif]--&amp;gt;&lt;/p&gt;
&lt;p&gt;In my CSS I can then put:&lt;/p&gt;
&lt;p&gt;table ( font-size: inherit; }&lt;br /&gt;
.msie5-7 table { font-size: 100%; }&lt;/p&gt;
&lt;p&gt;Also note that Steve Souders recommends you &lt;a href=&quot;http://www.stevesouders.com/blog/2009/04/09/dont-use-import/&quot;&gt;don&#039;t use @import&lt;/a&gt;.&lt;/p&gt;
 </description>
     <pubDate>Tue, 12 May 2009 16:40:06 +0000</pubDate>
 <dc:creator>webwiz</dc:creator>
 <guid isPermaLink="false">comment 1241560 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Hmm, i still need to learn</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/apc-article-21-ways-streamline-your-css#comment-1235298</link>
    <description> &lt;p&gt;Hmm, i still need to learn css, because i have been coing a few websites recently, but then again. I can only use basic css at the moment and need to take things to a slighly more advanced level.&lt;/p&gt;
&lt;p&gt;~ Mike&lt;/p&gt;
&lt;p&gt;ps. Some great advice, i shall follow and use as one of my learning guides.&lt;/p&gt;
 </description>
     <pubDate>Mon, 17 Nov 2008 06:36:26 +0000</pubDate>
 <dc:creator>ms2134</dc:creator>
 <guid isPermaLink="false">comment 1235298 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>avoid a flash of unstyled</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/apc-article-21-ways-streamline-your-css#comment-1235252</link>
    <description> &lt;blockquote&gt;&lt;p&gt;avoid a flash of unstyled content that can sometimes occur with @import&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;I know that some Drupal template files have a comment &quot;to avoid a flash of unstyled content&quot; but I don&#039;t remember what the technique is.&lt;/p&gt;
&lt;p&gt;Maybe it is &lt;a href=&quot;http://drupal.org/search/node/flash+of+unstyled+content&quot;&gt;here&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Fri, 14 Nov 2008 20:36:34 +0000</pubDate>
 <dc:creator>decibel.places</dc:creator>
 <guid isPermaLink="false">comment 1235252 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>jrbeilke wrote:
I personally</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/apc-article-21-ways-streamline-your-css#comment-1235248</link>
    <description> &lt;p&gt;&lt;div class=&quot;quote-msg&quot;&gt;&lt;div class=&quot;quote-author&quot;&gt;&lt;em&gt;jrbeilke&lt;/em&gt; wrote:&lt;/div&gt;I personally use &amp;lt;link&amp;gt; instead of @import for my css files so that I can have additional css files for different media (print, etc.), and avoid a flash of unstyled content that can sometimes occur with @import.&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;I hadn&#039;t noticed that before, that the flash of unstyled content doesn&#039;t happen with &lt;code&gt;&amp;lt;link&amp;gt;&lt;/code&gt;. I&#039;ve been thiking about switching back lately because there&#039;s not much of a reason to block CSS from old browsers anymore using @import. That&#039;s why everyone started using it in the first place. AND, as you point out, some browsers ignore the media settings on @import. I usually use  for print stylesheets and @import for everything else.&lt;/p&gt;
 </description>
     <pubDate>Fri, 14 Nov 2008 18:19:00 +0000</pubDate>
 <dc:creator>Megan</dc:creator>
 <guid isPermaLink="false">comment 1235248 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Nice article Megan.  For the</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/apc-article-21-ways-streamline-your-css#comment-1235244</link>
    <description> &lt;p&gt;Nice article Megan.  For the longest time I kept my css very basic, and not having additional comments, or a color reference was a bear down the road when something needed to be changed.&lt;/p&gt;
&lt;p&gt;I now keep the original copy of my css (full comments, color reference, etc.) and then I minify my css by stripping out comments and whitespace for the smallest file size (I&#039;m an optimization nut).&lt;/p&gt;
&lt;p&gt;I personally use &amp;lt;link&amp;gt; instead of @import for my css files so that I can have additional css files for different media (print, etc.), and avoid a flash of unstyled content that can sometimes occur with @import.&lt;/p&gt;
&lt;p&gt;I also sometimes use @import within my css files if I need to include an additional css file, but this can get complicated/confusing when you daisy chain style sheets together.&lt;/p&gt;
 </description>
     <pubDate>Fri, 14 Nov 2008 14:15:00 +0000</pubDate>
 <dc:creator>jrbeilke</dc:creator>
 <guid isPermaLink="false">comment 1235244 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>See point #16
oops, sorry</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/apc-article-21-ways-streamline-your-css#comment-1235176</link>
    <description> &lt;blockquote&gt;&lt;p&gt;See point #16&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;oops, sorry Megan - you got it covered... I searched for the word &quot;hack&quot; and - oh well &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Regarding the nested Drupal selectors, yeah, that&#039;s why I use Firebug, to &quot;Inspect&quot; the inherited styles, I add a lot of selectors like &lt;code&gt;div.someclass p#someid a&lt;/code&gt; (and if you try to reset just &lt;code&gt;#someid&lt;/code&gt; nothing happens...) but I develop a lot of sites rapidly, and usually start with a gutted Framework theme for custom designs, or use 80% of an existing theme. (I like Twilight, Ability, Four Seasons - but that is probably worth a separate topic) &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Thu, 13 Nov 2008 01:40:15 +0000</pubDate>
 <dc:creator>decibel.places</dc:creator>
 <guid isPermaLink="false">comment 1235176 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
