{"id":214,"date":"2011-06-13T14:12:10","date_gmt":"2011-06-13T14:12:10","guid":{"rendered":"http:\/\/psd2htmlconverter.com\/en\/wordpress\/?p=214"},"modified":"2016-01-21T00:59:40","modified_gmt":"2016-01-21T00:59:40","slug":"bugfix-incorrect-css-layout-if-bg-tag-was-used-in-a-not-right-way","status":"publish","type":"post","link":"https:\/\/blog.psd2htmlconverter.com\/en\/2011\/06\/13\/bugfix-incorrect-css-layout-if-bg-tag-was-used-in-a-not-right-way\/","title":{"rendered":"Bugfix: incorrect CSS layout if #bg tag was used in a not right way"},"content":{"rendered":"<p>Using automatic PSD to HTML conversion it was possible to get incorrect XHTML\/CSS layout in case of using #bg tag in a not right way. This error in the PSD to CSS online conversion was fixed. Below is a description in what case you could got this error.<!--more--><\/p>\n<p>The first thing you should understand is that only the lowest layer in a layer group can be set as a background for the group. Otherwise, z-order of layers will be corrupted.<\/p>\n<p>Formerly, if user marked not the lowest Photoshop layer with a #bg tag, it would have been converted into a CSS background anyway. Thus, in some cases this layer might have been overlaid by another layer and become invisible. So, <a title=\"PSD to HTML conversion\" href=\"http:\/\/psd2htmlconverter.com\/en\/\">PSD to HTML conversion<\/a> might have been inaccurate.<\/p>\n<p>Now, this is not a case. Psd to CSS online service will check z-order of layers and will not convert a layer marked with a #bg tag into CSS background in case in will cause incorrect z-order of layers. Instead of it, service will automatically find a layer that is best to become a background for the layers&#8217; group. Thus, <a title=\"design to HTML\" href=\"http:\/\/psd2htmlconverter.com\/en\/\">design to HTML<\/a> conversion will always be accurate.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Using automatic PSD to HTML conversion it was possible to get incorrect XHTML\/CSS layout in case of using #bg tag in a not right way. This error in the PSD to CSS online conversion was fixed. Below is a description in what case you could got this error.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[1,4],"tags":[],"class_list":["post-214","post","type-post","status-publish","format-standard","hentry","category-all","category-bugfix"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/blog.psd2htmlconverter.com\/en\/wp-json\/wp\/v2\/posts\/214","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.psd2htmlconverter.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.psd2htmlconverter.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.psd2htmlconverter.com\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.psd2htmlconverter.com\/en\/wp-json\/wp\/v2\/comments?post=214"}],"version-history":[{"count":9,"href":"https:\/\/blog.psd2htmlconverter.com\/en\/wp-json\/wp\/v2\/posts\/214\/revisions"}],"predecessor-version":[{"id":217,"href":"https:\/\/blog.psd2htmlconverter.com\/en\/wp-json\/wp\/v2\/posts\/214\/revisions\/217"}],"wp:attachment":[{"href":"https:\/\/blog.psd2htmlconverter.com\/en\/wp-json\/wp\/v2\/media?parent=214"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.psd2htmlconverter.com\/en\/wp-json\/wp\/v2\/categories?post=214"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.psd2htmlconverter.com\/en\/wp-json\/wp\/v2\/tags?post=214"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}