{"id":2651,"date":"2015-05-16T06:30:24","date_gmt":"2015-05-16T06:30:24","guid":{"rendered":"http:\/\/www.vishmax.com\/en\/?p=2651"},"modified":"2015-05-16T06:30:24","modified_gmt":"2015-05-16T06:30:24","slug":"how-to-create-sidebar-in-html5-with-css3","status":"publish","type":"post","link":"https:\/\/www.vishmax.com\/en\/labs\/how-to-create-sidebar-in-html5-with-css3\/","title":{"rendered":"How to create sidebar in html5 with css3"},"content":{"rendered":"<p>HTML5 is the latest semantic HTML markup which is still work in progress but most of web developers have been already started the HTML5 based web design and development because of many new features. Below is the simple format of HTML5 <\/p>\n<h2>Blank HTML5 template<\/h2>\n<pre lang=\"html\">\r\n\r\n\t<!DOCTYPE html>\r\n\t\r\n\t<html>\r\n\t\r\n\t<head>\r\n\t\t<title><\/title>\r\n\t<\/head>\r\n\t\r\n\t<body>\r\n\t\r\n\t<\/body>\r\n\t\r\n\t<\/html>\r\n\r\n<\/pre>\n<p>Here is the full code used for making a simple side bar with html and css. Here we use a little bit of JavaScript for selecting the menu bars. This example works fine on the latest version of Google Chrome and Firefox browsers. After this code you can view &#8220;demo&#8221; button to see how it works online.<\/p>\n<h2>CSS<\/h2>\n<pre lang=\"css\">\r\n\r\n\t\tbody{\r\n\t\t\tfont-family:\"Open Sans\"; \r\n\t\t\tfont-size: 0.9em;\r\n\t\t\tline-height: 1.8;\r\n\t\t\tpadding:0;\r\n\t\t\tmargin:0;\r\n\t\t\tbackground:#eee;\r\n\t\t}\r\n\t\t.sidebar-left {\r\n\t\t\tposition: fixed;\r\n\t\t\ttop: 0;\r\n\t\t\tleft: 0;\r\n\t\t\twidth: 200px;\r\n\t\t\theight: 100%;\r\n\t\t\tpadding: 20px 0;\r\n\t\t\tbackground-color:#184775;\r\n\t\t}\r\n\t\t.logo img{\r\n\t\t\twidth:150px;\r\n\t\t\theight:100px;\r\n\t\t\tmargin:0 0 0 20px;\r\n\t\t}\r\n\t\t.sidebar-left .sidebar-menu-links {\r\n\t\t\tmargin: 10px auto;\r\n\t\t}\r\n\t\t.sidebar-left .sidebar-menu-links a {\r\n\t\t\tdisplay: block;\r\n\t\t\tmargin: 0 auto 5px auto;\r\n\t\t\tpadding: 10px 0;\r\n\t\t\ttext-align: center;\r\n\t\t\tcolor:  #fff;\r\n\t\t\tfont-weight: 500;\r\n\t\t\ttext-decoration: none;\r\n\t\t\tborder-left:1px solid;\r\n\t\t\tbackground-color: #2d74bb;\r\n\t\t}\r\n\t\t.sidebar-left .sidebar-menu-links a i.fa {\r\n\t\t\tdisplay: block;\r\n\t\t\tfont-size: 30px;\r\n\t\t\tmargin-bottom: 5px;\r\n\t\t}\r\n\t\t.sidebar-left .sidebar-menu-links a.selected{\r\n\t\t\tcursor: default;\r\n\t\t\tcolor:#000;\r\n\t\t\tbackground-color: #eee;\r\n\t\t}\r\n\t\t.contents{\r\n\t\t\tfloat:right;\r\n\t\t\twidth:70%;\r\n\t\t\theight:auto;\r\n\t\t\tmargin:12% 0 0 0;\r\n\t\t}\r\n\t\t.contents a{\r\n\t\t\tcolor:#000\r\n\t\t}\r\n\t\t.contents a:hover{\r\n\t\t\tcolor:#ccc\r\n\t\t}\r\n\r\n\r\n<\/pre>\n<h2>JavaScript<\/h2>\n<pre lang=\"javascript\">\r\n\r\n\t<script>\r\n\t\t$(function () {\r\n\t\t\tvar links = $('.sidebar-menu-links > a');\r\n\t\t\tlinks.on('click', function () {\r\n\t\t\t\tlinks.removeClass('selected');\r\n\t\t\t\t$(this).addClass('selected');\r\n\t\t\t});\r\n\t\t});\r\n\t<\/script>\r\n\t\r\n<\/pre>\n<h2>HTML<\/h2>\n<pre lang=\"html\">\r\n\r\n\t<aside class=\"sidebar-left\"> <!-- sidebar-left -->\r\n\t\r\n\t\t<div class=\"logo\">\t\r\n\t  \t  <img decoding=\"async\" src=\"http:\/\/vishmax.com\/demos\/images\/logo-company-white.png\" alt=\"\">\r\n\t\t<\/div>\r\n\t\t\t\t\r\n\t\t<div class=\"sidebar-menu-links\"> <!-- sidebar-menu-links -->\r\n\t\t\t<a href=\"#\"><i class=\"fa fa-user\"><\/i>Our Company<\/a>\r\n\t\t\t<a href=\"#\"><i class=\"fa fa-dropbox\"><\/i>Services<\/a>\r\n\t\t\t<a href=\"#\"><i class=\"fa fa-camera-retro\"><\/i>Projects<\/a>\r\n\t\t\t<a href=\"#\"><i class=\"fa fa-phone\"><\/i>Contact<\/a>\r\n\t\t<\/div> <!-- \/sidebar-menu-links -->\r\n\t\t\r\n\t<\/aside> <!-- \/sidebar-left -->\r\n\r\n<\/pre>\n<p><a class=\"external-download\" href=\"http:\/\/www.vishmax.com\/demos\/sidebar-template-simple.html\" target=\"_blank\">Demo<\/a> <\/p>\n","protected":false},"excerpt":{"rendered":"<p>HTML5 is the latest semantic HTML markup which is still work in progress but most of web developers have been already started the HTML5 based web design and development because of many new features. Below is the simple format of HTML5 Blank HTML5 template Here is the full code used for making a simple side [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2654,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[44],"tags":[67,101,94],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.2.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to create sidebar in html5 with css3 - Vishmax.com<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.vishmax.com\/en\/labs\/how-to-create-sidebar-in-html5-with-css3\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to create sidebar in html5 with css3 - Vishmax.com\" \/>\n<meta property=\"og:description\" content=\"HTML5 is the latest semantic HTML markup which is still work in progress but most of web developers have been already started the HTML5 based web design and development because of many new features. Below is the simple format of HTML5 Blank HTML5 template Here is the full code used for making a simple side [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.vishmax.com\/en\/labs\/how-to-create-sidebar-in-html5-with-css3\/\" \/>\n<meta property=\"og:site_name\" content=\"Vishmax.com\" \/>\n<meta property=\"article:published_time\" content=\"2015-05-16T06:30:24+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.vishmax.com\/en\/wp-content\/uploads\/2015\/05\/sidebar-01-400x230.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"400\" \/>\n\t<meta property=\"og:image:height\" content=\"230\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.vishmax.com\/en\/labs\/how-to-create-sidebar-in-html5-with-css3\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.vishmax.com\/en\/labs\/how-to-create-sidebar-in-html5-with-css3\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"http:\/\/www.vishmax.com\/en\/#\/schema\/person\/785fa94b56eb17ae7706d30777d6ab93\"},\"headline\":\"How to create sidebar in html5 with css3\",\"datePublished\":\"2015-05-16T06:30:24+00:00\",\"dateModified\":\"2015-05-16T06:30:24+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.vishmax.com\/en\/labs\/how-to-create-sidebar-in-html5-with-css3\/\"},\"wordCount\":113,\"publisher\":{\"@id\":\"http:\/\/www.vishmax.com\/en\/#organization\"},\"keywords\":[\"CSS\",\"Examples\",\"Web Design Tips\"],\"articleSection\":[\"Labs\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.vishmax.com\/en\/labs\/how-to-create-sidebar-in-html5-with-css3\/\",\"url\":\"https:\/\/www.vishmax.com\/en\/labs\/how-to-create-sidebar-in-html5-with-css3\/\",\"name\":\"How to create sidebar in html5 with css3 - Vishmax.com\",\"isPartOf\":{\"@id\":\"http:\/\/www.vishmax.com\/en\/#website\"},\"datePublished\":\"2015-05-16T06:30:24+00:00\",\"dateModified\":\"2015-05-16T06:30:24+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.vishmax.com\/en\/labs\/how-to-create-sidebar-in-html5-with-css3\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.vishmax.com\/en\/labs\/how-to-create-sidebar-in-html5-with-css3\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.vishmax.com\/en\/labs\/how-to-create-sidebar-in-html5-with-css3\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\/\/www.vishmax.com\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to create sidebar in html5 with css3\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\/\/www.vishmax.com\/en\/#website\",\"url\":\"http:\/\/www.vishmax.com\/en\/\",\"name\":\"Vishmax.com\",\"description\":\"Software Company in Calicut for Web Design and eCommerce\",\"publisher\":{\"@id\":\"http:\/\/www.vishmax.com\/en\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/www.vishmax.com\/en\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"http:\/\/www.vishmax.com\/en\/#organization\",\"name\":\"Vishmax.com\",\"url\":\"http:\/\/www.vishmax.com\/en\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/www.vishmax.com\/en\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.vishmax.com\/en\/wp-content\/uploads\/2023\/03\/logo-vishmax.png\",\"contentUrl\":\"https:\/\/www.vishmax.com\/en\/wp-content\/uploads\/2023\/03\/logo-vishmax.png\",\"width\":150,\"height\":50,\"caption\":\"Vishmax.com\"},\"image\":{\"@id\":\"http:\/\/www.vishmax.com\/en\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"http:\/\/www.vishmax.com\/en\/#\/schema\/person\/785fa94b56eb17ae7706d30777d6ab93\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/www.vishmax.com\/en\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/e218268870406c917d20b442936d9e68?s=96&d=monsterid&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/e218268870406c917d20b442936d9e68?s=96&d=monsterid&r=g\",\"caption\":\"admin\"},\"url\":\"https:\/\/www.vishmax.com\/en\/author\/admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to create sidebar in html5 with css3 - Vishmax.com","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.vishmax.com\/en\/labs\/how-to-create-sidebar-in-html5-with-css3\/","og_locale":"en_US","og_type":"article","og_title":"How to create sidebar in html5 with css3 - Vishmax.com","og_description":"HTML5 is the latest semantic HTML markup which is still work in progress but most of web developers have been already started the HTML5 based web design and development because of many new features. Below is the simple format of HTML5 Blank HTML5 template Here is the full code used for making a simple side [&hellip;]","og_url":"https:\/\/www.vishmax.com\/en\/labs\/how-to-create-sidebar-in-html5-with-css3\/","og_site_name":"Vishmax.com","article_published_time":"2015-05-16T06:30:24+00:00","og_image":[{"width":400,"height":230,"url":"https:\/\/www.vishmax.com\/en\/wp-content\/uploads\/2015\/05\/sidebar-01-400x230.jpg","type":"image\/jpeg"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.vishmax.com\/en\/labs\/how-to-create-sidebar-in-html5-with-css3\/#article","isPartOf":{"@id":"https:\/\/www.vishmax.com\/en\/labs\/how-to-create-sidebar-in-html5-with-css3\/"},"author":{"name":"admin","@id":"http:\/\/www.vishmax.com\/en\/#\/schema\/person\/785fa94b56eb17ae7706d30777d6ab93"},"headline":"How to create sidebar in html5 with css3","datePublished":"2015-05-16T06:30:24+00:00","dateModified":"2015-05-16T06:30:24+00:00","mainEntityOfPage":{"@id":"https:\/\/www.vishmax.com\/en\/labs\/how-to-create-sidebar-in-html5-with-css3\/"},"wordCount":113,"publisher":{"@id":"http:\/\/www.vishmax.com\/en\/#organization"},"keywords":["CSS","Examples","Web Design Tips"],"articleSection":["Labs"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.vishmax.com\/en\/labs\/how-to-create-sidebar-in-html5-with-css3\/","url":"https:\/\/www.vishmax.com\/en\/labs\/how-to-create-sidebar-in-html5-with-css3\/","name":"How to create sidebar in html5 with css3 - Vishmax.com","isPartOf":{"@id":"http:\/\/www.vishmax.com\/en\/#website"},"datePublished":"2015-05-16T06:30:24+00:00","dateModified":"2015-05-16T06:30:24+00:00","breadcrumb":{"@id":"https:\/\/www.vishmax.com\/en\/labs\/how-to-create-sidebar-in-html5-with-css3\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.vishmax.com\/en\/labs\/how-to-create-sidebar-in-html5-with-css3\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.vishmax.com\/en\/labs\/how-to-create-sidebar-in-html5-with-css3\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/www.vishmax.com\/en\/"},{"@type":"ListItem","position":2,"name":"How to create sidebar in html5 with css3"}]},{"@type":"WebSite","@id":"http:\/\/www.vishmax.com\/en\/#website","url":"http:\/\/www.vishmax.com\/en\/","name":"Vishmax.com","description":"Software Company in Calicut for Web Design and eCommerce","publisher":{"@id":"http:\/\/www.vishmax.com\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/www.vishmax.com\/en\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"http:\/\/www.vishmax.com\/en\/#organization","name":"Vishmax.com","url":"http:\/\/www.vishmax.com\/en\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/www.vishmax.com\/en\/#\/schema\/logo\/image\/","url":"https:\/\/www.vishmax.com\/en\/wp-content\/uploads\/2023\/03\/logo-vishmax.png","contentUrl":"https:\/\/www.vishmax.com\/en\/wp-content\/uploads\/2023\/03\/logo-vishmax.png","width":150,"height":50,"caption":"Vishmax.com"},"image":{"@id":"http:\/\/www.vishmax.com\/en\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"http:\/\/www.vishmax.com\/en\/#\/schema\/person\/785fa94b56eb17ae7706d30777d6ab93","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/www.vishmax.com\/en\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/e218268870406c917d20b442936d9e68?s=96&d=monsterid&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e218268870406c917d20b442936d9e68?s=96&d=monsterid&r=g","caption":"admin"},"url":"https:\/\/www.vishmax.com\/en\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.vishmax.com\/en\/wp-json\/wp\/v2\/posts\/2651"}],"collection":[{"href":"https:\/\/www.vishmax.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.vishmax.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.vishmax.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vishmax.com\/en\/wp-json\/wp\/v2\/comments?post=2651"}],"version-history":[{"count":0,"href":"https:\/\/www.vishmax.com\/en\/wp-json\/wp\/v2\/posts\/2651\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.vishmax.com\/en\/wp-json\/wp\/v2\/media\/2654"}],"wp:attachment":[{"href":"https:\/\/www.vishmax.com\/en\/wp-json\/wp\/v2\/media?parent=2651"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vishmax.com\/en\/wp-json\/wp\/v2\/categories?post=2651"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vishmax.com\/en\/wp-json\/wp\/v2\/tags?post=2651"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}