{"id":2138,"date":"2009-09-26T07:03:04","date_gmt":"2009-09-26T07:03:04","guid":{"rendered":"http:\/\/aceinfowayindia.com\/blog\/?p=2138"},"modified":"2018-11-09T11:53:46","modified_gmt":"2018-11-09T11:53:46","slug":"how-to-create-nice-scalable-css-based-breadcrumbs","status":"publish","type":"post","link":"http:\/\/aceinfowayindia.com\/blog\/2009\/09\/how-to-create-nice-scalable-css-based-breadcrumbs\/","title":{"rendered":"How to Create Nice Scalable CSS Based Breadcrumbs"},"content":{"rendered":"<p>A few days ago I was implementing breadcrumbs in a website I\u2019m working on. breadcrumbs are not using often but most of the corporate websites are using breadcrumbs. In this tutorial i will learn you how to create nice scalable CSS Based Breadcrumbs. I am using only one simple graphic. The rest is basic CSS styling with an unordered list as HTML code.<\/p>\n<p><!--more--><\/p>\n<h4>Final Preview<\/h4>\n<p>This is what we gone do today. <a href='http:\/\/aceinfowayindia.com\/blog\/wp-content\/uploads\/2009\/09\/cssbreadcrumbs.rar'><strong>Download file<\/strong><\/a> (12.1 kb)<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/aceinfowayindia.com\/blog\/wp-content\/uploads\/2009\/09\/breadcrums-final.jpg\" alt=\"breadcrums-final\" title=\"breadcrums-final\" width=\"546\" height=\"49\" class=\"alignnone size-full wp-image-2135\" srcset=\"http:\/\/aceinfowayindia.com\/blog\/wp-content\/uploads\/2009\/09\/breadcrums-final.jpg 546w, http:\/\/aceinfowayindia.com\/blog\/wp-content\/uploads\/2009\/09\/breadcrums-final-300x26.jpg 300w\" sizes=\"auto, (max-width: 546px) 100vw, 546px\" \/><\/p>\n<h4>HTML Structure<\/h4>\n<p>Here is our HTML code. It&#8217;s a simple unordered list:<\/p>\n<pre>\r\n[code lang=\"htmlstrict\"]\r\n<ul id=\"breadcrumbs\">\r\n<li><a href=\"#\">Home<\/a><\/li>\r\n<li><a href=\"#\">Main Lavel<\/a><\/li>\r\n<li><a href=\"#\">Sub Lavel<\/a><\/li>\r\n<li><a href=\"#\">Sub sub Lavel<\/a><\/li>\r\n<li>Your Current page<\/li>\r\n<\/ul>\r\n[\/code]\r\n<\/pre>\n<h4>CSS Styling<\/h4>\n<p>Here is simple css styling<\/p>\n<pre>\r\n[code lang=\"css\"]\r\nbody {\r\nfont:0.69em\/1.13em \"verdana\", arial, tahoma, sans-serif; \r\nbackground:#fff;\r\n}\r\n[\/code]\r\n<\/pre>\n<pre>\r\n[code lang=\"css\"]\r\nul, li {\r\n\tlist-style-type:none;\r\n\tpadding:0;\r\n\tmargin:0;\r\n}\r\n[\/code]\r\n<\/pre>\n<pre>\r\n[code lang=\"css\"]\r\n#breadcrumbs {\r\n\theight:2.7em;\r\n\tborder:1px solid #c9c9c9;\r\n\t}\r\n[\/code]\r\n<\/pre>\n<pre>\r\n[code lang=\"css\"]\r\n#breadcrumbs li {\r\n\tfloat:left;\r\n\tline-height:2.7em;\r\n\tcolor:#777;\r\n\tpadding-left:.85em;\r\n\t}\t\t\r\n[\/code]\r\n<\/pre>\n<pre>\r\n[code lang=\"css\"]\r\n#breadcrumbs li a {\r\n\tbackground: url(breadcrums.jpg) no-repeat right center;\r\n\tdisplay:block;\r\n\tpadding:0 15px 0 0;\r\n\t}\t\r\n[\/code]\r\n<\/pre>\n<p>This is the only simple right corner arrow image, which is i am using in this tutorial.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/aceinfowayindia.com\/blog\/wp-content\/uploads\/2009\/09\/breadcrums.jpg\" alt=\"breadcrums\" title=\"breadcrums\" width=\"50\" height=\"100\" class=\"alignnone size-full wp-image-2144\" \/><\/p>\n<pre>\r\n[code lang=\"css\"]\r\n#breadcrumbs li a:link,\r\n#breadcrumbs li a:visited {\r\n\tcolor:#777;\r\n\ttext-decoration:none;\r\n\t}\t\r\n[\/code]\r\n<\/pre>\n<pre>\r\n[code lang=\"css\"]\r\na:link, a:visited,\t\r\n#breadcrumbs li a:hover,\r\n#breadcrumbs li a:focus {\r\n\tcolor:#222\r\n\t}\t\r\n[\/code]\r\n<\/pre>\n<h4>Final Result<\/h4>\n<p>Here is the final Result<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/aceinfowayindia.com\/blog\/wp-content\/uploads\/2009\/09\/breadcrums-final.jpg\" alt=\"breadcrums-final\" title=\"breadcrums-final\" width=\"546\" height=\"49\" class=\"alignnone size-full wp-image-2135\" srcset=\"http:\/\/aceinfowayindia.com\/blog\/wp-content\/uploads\/2009\/09\/breadcrums-final.jpg 546w, http:\/\/aceinfowayindia.com\/blog\/wp-content\/uploads\/2009\/09\/breadcrums-final-300x26.jpg 300w\" sizes=\"auto, (max-width: 546px) 100vw, 546px\" \/><\/p>\n<h4>Conclusion<\/h4>\n<p> Apply these Tips to your current and next projects, and you will surely appreciate the efforts.<\/p>\n<h4>Download the source file<\/h4>\n<p>If you\u2019d like to check your work, you may download the rar file for this tutorial.<\/p>\n<p><a href='http:\/\/aceinfowayindia.com\/blog\/wp-content\/uploads\/2009\/09\/cssbreadcrumbs.rar'>cssbreadcrumbs.rar<\/a> (12.1 kb)<\/p>\n<p><strong>If you think that tutorial can be more better, Please share with us. Comment us<\/strong><\/p>\n<p>if you would like to receive more inspiration from us, please consider subscribing to our feed by <a href=\"http:\/\/feeds.feedburner.com\/developers-paradise\"><strong>RSS<\/strong><\/a> or by <a href=\"http:\/\/feedburner.google.com\/fb\/a\/mailverify?uri=developers-paradise&#038;loc=en_US\"><strong>email<\/strong><\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A few days ago I was implementing breadcrumbs in a website I\u2019m working on. breadcrumbs are not using often but most of the corporate websites are using breadcrumbs. In this tutorial i will learn you how to create nice scalable &hellip; <a href=\"http:\/\/aceinfowayindia.com\/blog\/2009\/09\/how-to-create-nice-scalable-css-based-breadcrumbs\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,56],"tags":[52,23],"class_list":["post-2138","post","type-post","status-publish","format-standard","hentry","category-css","category-tutorials","tag-css","tag-tutorials"],"_links":{"self":[{"href":"http:\/\/aceinfowayindia.com\/blog\/wp-json\/wp\/v2\/posts\/2138","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/aceinfowayindia.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/aceinfowayindia.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/aceinfowayindia.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/aceinfowayindia.com\/blog\/wp-json\/wp\/v2\/comments?post=2138"}],"version-history":[{"count":19,"href":"http:\/\/aceinfowayindia.com\/blog\/wp-json\/wp\/v2\/posts\/2138\/revisions"}],"predecessor-version":[{"id":4295,"href":"http:\/\/aceinfowayindia.com\/blog\/wp-json\/wp\/v2\/posts\/2138\/revisions\/4295"}],"wp:attachment":[{"href":"http:\/\/aceinfowayindia.com\/blog\/wp-json\/wp\/v2\/media?parent=2138"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/aceinfowayindia.com\/blog\/wp-json\/wp\/v2\/categories?post=2138"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/aceinfowayindia.com\/blog\/wp-json\/wp\/v2\/tags?post=2138"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}