{"id":47,"date":"2008-03-05T07:00:02","date_gmt":"2008-03-05T13:00:02","guid":{"rendered":"http:\/\/cssnewbie.com\/firefox-error-console-review\/"},"modified":"2022-07-28T08:01:28","modified_gmt":"2022-07-28T08:01:28","slug":"firefox-error-console-review","status":"publish","type":"post","link":"https:\/\/cssdeck.com\/blog\/firefox-error-console-review\/","title":{"rendered":"Tool Review: Firefox Error Console"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2008\/03\/firefox-error-console.jpg\" alt=\"Firefox Error Console\" \/><\/p>\n<p>Some of the best tools in any web developer\u2019s toolset are completely free. Today I\u2019m going to talk a bit about the Firefox Error Console, and how it can help you become a better CSS author.<\/p>\n<p>First, it\u2019s important to mention that not only is the Error Console completely free, but it\u2019s a pre-installed function of Firefox \u2013 you don\u2019t have to go hunting down any special plugins or anything. Simply open a webpage and go to Tools &#8211;&gt; Error Console to open the console.<\/p>\n<p>Once you\u2019re there, you\u2019ll see a selection of buttons across the top like in the image above. The one we\u2019re most interested in is the \u201cWarnings\u201d button, because that\u2019s where all of our CSS errors show up. Simply click the Warnings button and you suddenly have a very precise and concise view of what Firefox thinks of your CSS. I\u2019ll warn you, though: it isn\u2019t always pretty.<\/p>\n<p>Take the first item in the list of the image above, for example. Firefox is telling me that it\u2019s had some problems parsing a \u201cdisplay\u201d property in the CSS of one of my (many) <a href=\"http:\/\/www.wordpress.org\">WordPress<\/a> <a href=\"http:\/\/wordpress.org\/extend\/plugins\/\">plugins<\/a>. If I click the URL below the error, it pops open a \u201cview source\u201d window with the offending line already selected. In this case, here was the line in question:<\/p>\n<pre lang=\"css\">display:inline-block; \/*for Opera &amp; IE*\/<\/pre>\n<p>As the comment behind the property states, this style only works in Opera and Internet Explorer. Firefox doesn\u2019t support an inline-block display setting. Therefore, it throws an error and ignores the property. This can be pretty useful knowledge if Firefox isn\u2019t behaving like you\u2019d expect it to, or if another browser is rendering better than Firefox.<\/p>\n<p>Or consider the third (highlighted) item in the image. Here, Firefox is having problems with a vertical-align property, but Firefox understands vertical-align. Sometimes you will find an <a href=\"https:\/\/quaries.com\/what-are-error-codes\/\">error<\/a> in the code so in regards to finding an error I clicked the URL to look at the source and found this code:<\/p>\n<pre lang=\"css\">vertical-align:center;<\/pre>\n<p>Here, the problem lies with the code, not the browser. There is no \u201ccenter\u201d value for the vertical-align property. The author of the code should have written \u201cvertical-align: <strong>middle<\/strong>\u201d instead. It\u2019s a small difference in semantics, maybe, but it makes a big difference in how that element is displayed.<\/p>\n<p>So I encourage you to check out the Firefox Error Console sometime. I think you\u2019ll find that it\u2019s a great resource for figuring out why your CSS isn\u2019t behaving like you thought it should. As I mentioned earlier though, it can sometimes be a bit scary to see how many errors a single page can through. The front page of CSSnewbie, for example, throws 18 CSS errors! My only (small) consolation is that all of those errors come from plugins I have installed \u2013 my template\u2019s style sheet is clean.<\/p>\n<p>If you have another commonly available tool that you use on a regular basis and would like to see mentioned, please let me know. I\u2019d love to do a review on it. You can either leave a comment on this post or use the <a href=\"\/contact\/\">contact form.<\/a> Thanks!<\/p>\n<div class=\"wp-socializer wpsr-share-icons \" data-lg-action=\"show\" data-sm-action=\"show\" data-sm-width=\"768\" ><h3>Share and Enjoy !<\/h3><div class=\"wpsr-si-inner\"><div class=\"wpsr-counter wpsrc-sz-32px\" style=\"color:#000\"><span class=\"scount\"><span data-wpsrs=\"\" data-wpsrs-svcs=\"facebook,twitter,linkedin,pinterest,print,pdf\">0<\/span><\/span><small class=\"stext\">Shares<\/small><\/div><div class=\"socializer sr-popup sr-32px sr-circle sr-opacity sr-pad sr-count-1 sr-count-1\"><span class=\"sr-facebook\"><a rel=\"nofollow\" href=\"https:\/\/www.facebook.com\/share.php?u=\" target=\"_blank\"  title=\"Share this on Facebook\"  style=\"color: #ffffff\" ><i class=\"fab fa-facebook-f\"><\/i><span class=\"ctext\"><span data-wpsrs=\"\" data-wpsrs-svcs=\"facebook\">0<\/span><\/span><\/a><\/span>\n<span class=\"sr-twitter\"><a rel=\"nofollow\" href=\"https:\/\/twitter.com\/intent\/tweet?text=%20-%20%20\" target=\"_blank\"  title=\"Tweet this !\"  style=\"color: #ffffff\" ><i class=\"fab fa-twitter\"><\/i><\/a><\/span>\n<span class=\"sr-linkedin\"><a rel=\"nofollow\" href=\"https:\/\/www.linkedin.com\/sharing\/share-offsite\/?url=\" target=\"_blank\"  title=\"Add this to LinkedIn\"  style=\"color: #ffffff\" ><i class=\"fab fa-linkedin-in\"><\/i><\/a><\/span>\n<span class=\"sr-pinterest\"><a rel=\"nofollow\" href=\"https:\/\/www.pinterest.com\/pin\/create\/button\/?url=&amp;media=&amp;description=\" target=\"_blank\"  title=\"Submit this to Pinterest\"  style=\"color: #ffffff\" data-pin-custom=\"true\"><i class=\"fab fa-pinterest\"><\/i><span class=\"ctext\"><span data-wpsrs=\"\" data-wpsrs-svcs=\"pinterest\">0<\/span><\/span><\/a><\/span>\n<span class=\"sr-print\"><a rel=\"nofollow\" href=\"https:\/\/www.printfriendly.com\/print?url=\" target=\"_blank\"  title=\"Print this article \"  style=\"color: #ffffff\" ><i class=\"fa fa-print\"><\/i><\/a><\/span>\n<span class=\"sr-pdf\"><a rel=\"nofollow\" href=\"https:\/\/www.printfriendly.com\/print?url=\" target=\"_blank\"  title=\"Convert to PDF\"  style=\"color: #ffffff\" ><i class=\"fa fa-file-pdf\"><\/i><\/a><\/span><\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"<\/p>\n<p>Some of the best tools in any web developer\u2019s toolset are completely free. Today I\u2019m going to talk a bit about the Firefox Error Console, and how it can help you become a better CSS author.<\/p>\n<p>First, it\u2019s important to mention [&#8230;]<\/p>\n<p><a class=\"more-link article\" href=\"https:\/\/cssdeck.com\/blog\/firefox-error-console-review\/\" title=\"Click to read 'Tool Review: Firefox Error Console'\">Read Article<\/a><\/p>\n","protected":false},"author":18,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[197],"tags":[241,256,265,338,369],"_links":{"self":[{"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/posts\/47"}],"collection":[{"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/comments?post=47"}],"version-history":[{"count":2,"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/posts\/47\/revisions"}],"predecessor-version":[{"id":3491,"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/posts\/47\/revisions\/3491"}],"wp:attachment":[{"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/media?parent=47"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/categories?post=47"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/tags?post=47"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}