{"id":9463,"date":"2024-01-09T18:03:00","date_gmt":"2024-01-09T18:03:00","guid":{"rendered":"https:\/\/codehim.com\/?p=9463"},"modified":"2024-01-22T16:04:56","modified_gmt":"2024-01-22T11:04:56","slug":"skew-header-with-background-image-css","status":"publish","type":"post","link":"https:\/\/codehim.com\/html5-css3\/skew-header-with-background-image-css\/","title":{"rendered":"Skew Header with Background Image CSS"},"content":{"rendered":"<p>This HTML and CSS code snippet helps you to create a dynamic header with a background image and a skew effect on the scroll. It changes the skew of a diagonal polygon in response to your scrolling on the web page.<\/p>\n<p>This code is helpful for enhancing the visual appeal of your <a href=\"https:\/\/codehim.com\/html5-css3\/ecommerce-website-header-design\/\" target=\"_blank\" rel=\"noopener\">website&#8217;s header<\/a>, creating an engaging user experience.<\/p>\n<h2>How to Create Skew Header with Background Image in HTML and CSS<\/h2>\n<p>1. First of all, load the <a href=\"https:\/\/necolas.github.io\/normalize.css\/\" target=\"_blank\" rel=\"noopener\">Normalize CSS<\/a> by adding the following CDN link into the head tag of your HTML document.<\/p>\n<pre class=\"prettyprint linenums lang-html\">&lt;link rel=\"stylesheet\" href=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/normalize\/5.0.0\/normalize.min.css\"&gt;<\/pre>\n<p>2. Create the HTML structure for your webpage. Include a section for the hero header and some content. Here&#8217;s a basic structure:<\/p>\n<pre class=\"prettyprint linenums lang-html\">&lt;!-- Hero Section --&gt;\r\n&lt;section class=\"hero\" id=\"hero\"&gt;\r\n  &lt;!-- Gradient Background --&gt;\r\n  &lt;div class=\"hero-grad\"&gt;&lt;\/div&gt;\r\n  &lt;!-- \/Gradient Background --&gt;\r\n  \r\n  &lt;!-- The SVG Diagonal Polygon (The important stuff) --&gt;\r\n  &lt;svg class=\"hero-diagonal\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 100 100\" preserveAspectRatio=\"none\"&gt;\r\n    &lt;polygon points=\"0,100 100,0 100,100\"&gt;&lt;\/polygon&gt;\r\n  &lt;\/svg&gt;\r\n  &lt;!-- \/The SVG Diagonal Polygon --&gt;\r\n  \r\n  &lt;!-- Demo Heading --&gt;\r\n  &lt;main class=\"hero-content\"&gt;\r\n    &lt;h1 class=\"heading\"&gt;\r\n      Take a \"scroll\" and watch the magic happen.\r\n    &lt;\/h1&gt;\r\n    &lt;div class='hero-scroll'&gt;&lt;div\/&gt;\r\n  &lt;\/main&gt;\r\n  &lt;!-- \/Demo Heading --&gt;\r\n&lt;\/section&gt;\r\n&lt;!-- \/Hero Section --&gt;\r\n\r\n&lt;!-- Demo Content --&gt;\r\n&lt;article class=\"content\"&gt;\r\n  &lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Consequat interdum varius sit amet. Pharetra massa massa ultricies mi quis hendrerit dolor magna eget. Sagittis aliquam malesuada bibendum arcu. Lorem ipsum dolor sit amet consectetur. Suspendisse ultrices gravida dictum fusce ut placerat orci nulla. Adipiscing bibendum est ultricies integer quis auctor. Scelerisque felis imperdiet proin fermentum leo vel. Morbi tincidunt augue interdum velit euismod in. Odio pellentesque diam volutpat commodo sed. Leo integer malesuada nunc vel risus. Ultricies lacus sed turpis tincidunt id aliquet risus feugiat. Amet nisl purus in mollis nunc sed. Aliquam nulla facilisi cras fermentum. Condimentum id venenatis a condimentum vitae sapien pellentesque habitant morbi. Feugiat in fermentum posuere urna nec.&lt;\/p&gt;\r\n  &lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Consequat interdum varius sit amet. Pharetra massa massa ultricies mi quis hendrerit dolor magna eget. Sagittis aliquam malesuada bibendum arcu. Lorem ipsum dolor sit amet consectetur. Suspendisse ultrices gravida dictum fusce ut placerat orci nulla. Adipiscing bibendum est ultricies integer quis auctor. Scelerisque felis imperdiet proin fermentum leo vel. Morbi tincidunt augue interdum velit euismod in. Odio pellentesque diam volutpat commodo sed. Leo integer malesuada nunc vel risus. Ultricies lacus sed turpis tincidunt id aliquet risus feugiat. Amet nisl purus in mollis nunc sed. Aliquam nulla facilisi cras fermentum. Condimentum id venenatis a condimentum vitae sapien pellentesque habitant morbi. Feugiat in fermentum posuere urna nec.&lt;\/p&gt;\r\n  &lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Consequat interdum varius sit amet. Pharetra massa massa ultricies mi quis hendrerit dolor magna eget. Sagittis aliquam malesuada bibendum arcu. Lorem ipsum dolor sit amet consectetur. Suspendisse ultrices gravida dictum fusce ut placerat orci nulla. Adipiscing bibendum est ultricies integer quis auctor. Scelerisque felis imperdiet proin fermentum leo vel. Morbi tincidunt augue interdum velit euismod in. Odio pellentesque diam volutpat commodo sed. Leo integer malesuada nunc vel risus. Ultricies lacus sed turpis tincidunt id aliquet risus feugiat. Amet nisl purus in mollis nunc sed. Aliquam nulla facilisi cras fermentum. Condimentum id venenatis a condimentum vitae sapien pellentesque habitant morbi. Feugiat in fermentum posuere urna nec.&lt;\/p&gt;\r\n&lt;\/article&gt;\r\n&lt;!-- \/Demo Content --&gt;\r\n<\/pre>\n<p>3. Create a CSS file (styles.css) and style the hero section and the header elements. Here&#8217;s an example of CSS styles to get you started:<\/p>\n<pre class=\"prettyprint linenums lang-css\">body {\r\n  background-color: #1d1f20;\r\n}\r\n\r\n.hero {\r\n  position: relative;\r\n  background-image: url(https:\/\/picsum.photos\/id\/103\/1900\/900);\r\n  background-size: cover;\r\n  background-position: bottom center;\r\n  border: 2vw solid #1d1f20;\r\n}\r\n.hero-grad {\r\n  position: absolute;\r\n  top: 0;\r\n  left: 0;\r\n  width: 100%;\r\n  height: 100%;\r\n  background-image: linear-gradient(90deg, rgba(253, 187, 45, 0.8) 0%, rgba(58, 28, 113, 0.67) 100%);\r\n  z-index: 0;\r\n}\r\n.hero-diagonal {\r\n  position: absolute;\r\n  bottom: -0.5px;\r\n  width: 100%;\r\n  height: 12vw;\r\n  z-index: 2;\r\n  fill: #1d1f20;\r\n}\r\n.hero-content {\r\n  position: relative;\r\n  padding: 60px;\r\n  padding-top: 10vw;\r\n  padding-bottom: 10vw;\r\n  z-index: 1;\r\n  text-align: center;\r\n}\r\n.hero-content .heading {\r\n  font-size: 40px;\r\n  max-width: 700px;\r\n  font-weight: 100;\r\n  margin: 0 auto;\r\n  color: #1d1f20;\r\n  line-height: 1.5;\r\n  letter-spacing: 8px;\r\n  text-transform: uppercase;\r\n  margin-bottom: 60px;\r\n}\r\n.hero-scroll {\r\n  width: 40px;\r\n  height: 70px;\r\n  box-shadow: inset 0 0 0 1px #1d1f20;\r\n  border-radius: 25px;\r\n  position: relative;\r\n  display: inline-block;\r\n}\r\n.hero-scroll:before {\r\n  content: \"\";\r\n  width: 8px;\r\n  height: 8px;\r\n  position: absolute;\r\n  left: 50%;\r\n  background: #1d1f20;\r\n  margin-left: -4px;\r\n  top: 8px;\r\n  border-radius: 4px;\r\n  animation-duration: 1.5s;\r\n  animation-iteration-count: infinite;\r\n  animation-name: scroll;\r\n}\r\n\r\n.content {\r\n  width: 90%;\r\n  max-width: 700px;\r\n  font-size: 20px;\r\n  color: #fff;\r\n  margin: 0 auto;\r\n  padding: 60px 0;\r\n  line-height: 1.6;\r\n}\r\n.content p {\r\n  margin-top: 0;\r\n  margin-bottom: 60px;\r\n  color: #885c56;\r\n}\r\n\r\n@keyframes scroll {\r\n  0% {\r\n    opacity: 1;\r\n  }\r\n  100% {\r\n    opacity: 0;\r\n    transform: translateY(46px);\r\n  }\r\n}<\/pre>\n<p>4. Finally, create a JavaScript file (script.js) and add the following code to create the scrolling effect:<\/p>\n<pre class=\"prettyprint linenums lang-js\">var handleScroll = function() {\r\n  \/\/ Get the height of the hero section\r\n  var heroHeight = document.querySelector('#hero').offsetHeight;\r\n  var diagonal = document.querySelector('.hero-diagonal polygon');\r\n  \/\/ Calculate the skew value\r\n  var skew = (window.scrollY \/ heroHeight) * 100;\r\n  \/\/ Assign the skew value to the polygon points attr\r\n  \/\/ The value needs to be set as an array\r\n  diagonal.setAttribute('points', [0,100, 100, skew, 100,100]);\r\n}\r\nwindow.addEventListener(\"scroll\", handleScroll);<\/pre>\n<p>That&#8217;s it! Hopefully, you&#8217;ve created a stylish skewed header with a dynamic background image using HTML, CSS, and JavaScript. You can further enhance and customize this design to fit your website&#8217;s unique needs. If you have any questions or suggestions, feel free to comment below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This HTML and CSS code snippet helps you to create a dynamic header with a background image and a skew&#8230;<\/p>\n","protected":false},"author":1,"featured_media":9472,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[63],"tags":[],"class_list":["post-9463","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-html5-css3"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Skew Header with Background Image CSS &#8212; CodeHim<\/title>\n<meta name=\"description\" content=\"Here is a free code snippet to create a Skew Header with Background Image CSS. You can view demo and download the source code.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/codehim.com\/html5-css3\/skew-header-with-background-image-css\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Skew Header with Background Image CSS &#8212; CodeHim\" \/>\n<meta property=\"og:description\" content=\"Here is a free code snippet to create a Skew Header with Background Image CSS. You can view demo and download the source code.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/codehim.com\/html5-css3\/skew-header-with-background-image-css\/\" \/>\n<meta property=\"og:site_name\" content=\"CodeHim\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/codehimofficial\" \/>\n<meta property=\"article:published_time\" content=\"2024-01-09T18:03:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-22T11:04:56+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/Skew-Header-with-Background-Image-CSS.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"960\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Asif Mughal\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@CodeHimOfficial\" \/>\n<meta name=\"twitter:site\" content=\"@CodeHimOfficial\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Asif Mughal\" \/>\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:\/\/codehim.com\/html5-css3\/skew-header-with-background-image-css\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/html5-css3\/skew-header-with-background-image-css\/\"},\"author\":{\"name\":\"Asif Mughal\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed\"},\"headline\":\"Skew Header with Background Image CSS\",\"datePublished\":\"2024-01-09T18:03:00+00:00\",\"dateModified\":\"2024-01-22T11:04:56+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/codehim.com\/html5-css3\/skew-header-with-background-image-css\/\"},\"wordCount\":212,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/codehim.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/html5-css3\/skew-header-with-background-image-css\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/Skew-Header-with-Background-Image-CSS.png\",\"articleSection\":[\"HTML5 &amp; CSS3\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/codehim.com\/html5-css3\/skew-header-with-background-image-css\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/codehim.com\/html5-css3\/skew-header-with-background-image-css\/\",\"url\":\"https:\/\/codehim.com\/html5-css3\/skew-header-with-background-image-css\/\",\"name\":\"Skew Header with Background Image CSS &#8212; CodeHim\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/codehim.com\/html5-css3\/skew-header-with-background-image-css\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/html5-css3\/skew-header-with-background-image-css\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/Skew-Header-with-Background-Image-CSS.png\",\"datePublished\":\"2024-01-09T18:03:00+00:00\",\"dateModified\":\"2024-01-22T11:04:56+00:00\",\"description\":\"Here is a free code snippet to create a Skew Header with Background Image CSS. You can view demo and download the source code.\",\"breadcrumb\":{\"@id\":\"https:\/\/codehim.com\/html5-css3\/skew-header-with-background-image-css\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/codehim.com\/html5-css3\/skew-header-with-background-image-css\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codehim.com\/html5-css3\/skew-header-with-background-image-css\/#primaryimage\",\"url\":\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/Skew-Header-with-Background-Image-CSS.png\",\"contentUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/Skew-Header-with-Background-Image-CSS.png\",\"width\":1280,\"height\":960,\"caption\":\"Skew Header with Background Image CSS\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/codehim.com\/html5-css3\/skew-header-with-background-image-css\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/codehim.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"HTML5 &amp; CSS3\",\"item\":\"https:\/\/codehim.com\/category\/html5-css3\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Skew Header with Background Image CSS\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/codehim.com\/#website\",\"url\":\"https:\/\/codehim.com\/\",\"name\":\"CodeHim\",\"description\":\"Web Design Code Snippets\",\"publisher\":{\"@id\":\"https:\/\/codehim.com\/#organization\"},\"alternateName\":\"Web Design Codes\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/codehim.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/codehim.com\/#organization\",\"name\":\"CodeHim - Web Design Code & Scripts\",\"url\":\"https:\/\/codehim.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/logo\/image\/\",\"url\":\"http:\/\/codehim.com\/wp-content\/uploads\/2023\/06\/Codehim-short-logo.jpg\",\"contentUrl\":\"http:\/\/codehim.com\/wp-content\/uploads\/2023\/06\/Codehim-short-logo.jpg\",\"width\":280,\"height\":280,\"caption\":\"CodeHim - Web Design Code & Scripts\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/codehimofficial\",\"https:\/\/x.com\/CodeHimOfficial\",\"https:\/\/www.instagram.com\/codehim\/\",\"https:\/\/www.linkedin.com\/company\/codehim\",\"https:\/\/co.pinterest.com\/codehim\/\",\"https:\/\/www.youtube.com\/@codehim\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed\",\"name\":\"Asif Mughal\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/b25bfcd7d4e341c2c6f785a88d8ad2a4?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/b25bfcd7d4e341c2c6f785a88d8ad2a4?s=96&d=mm&r=g\",\"caption\":\"Asif Mughal\"},\"description\":\"I code and create web elements for amazing people around the world. I like work with new people. New people new Experiences. I truly enjoy what I'm doing, which makes me more passionate about web development and coding. I am always ready to do challenging tasks whether it is about creating a custom CMS from scratch or customizing an existing system.\",\"sameAs\":[\"https:\/\/codehim.com\"],\"url\":\"https:\/\/codehim.com\/author\/asif-mughal\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Skew Header with Background Image CSS &#8212; CodeHim","description":"Here is a free code snippet to create a Skew Header with Background Image CSS. You can view demo and download the source code.","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:\/\/codehim.com\/html5-css3\/skew-header-with-background-image-css\/","og_locale":"en_US","og_type":"article","og_title":"Skew Header with Background Image CSS &#8212; CodeHim","og_description":"Here is a free code snippet to create a Skew Header with Background Image CSS. You can view demo and download the source code.","og_url":"https:\/\/codehim.com\/html5-css3\/skew-header-with-background-image-css\/","og_site_name":"CodeHim","article_publisher":"https:\/\/www.facebook.com\/codehimofficial","article_published_time":"2024-01-09T18:03:00+00:00","article_modified_time":"2024-01-22T11:04:56+00:00","og_image":[{"width":1280,"height":960,"url":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/Skew-Header-with-Background-Image-CSS.png","type":"image\/png"}],"author":"Asif Mughal","twitter_card":"summary_large_image","twitter_creator":"@CodeHimOfficial","twitter_site":"@CodeHimOfficial","twitter_misc":{"Written by":"Asif Mughal","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/codehim.com\/html5-css3\/skew-header-with-background-image-css\/#article","isPartOf":{"@id":"https:\/\/codehim.com\/html5-css3\/skew-header-with-background-image-css\/"},"author":{"name":"Asif Mughal","@id":"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed"},"headline":"Skew Header with Background Image CSS","datePublished":"2024-01-09T18:03:00+00:00","dateModified":"2024-01-22T11:04:56+00:00","mainEntityOfPage":{"@id":"https:\/\/codehim.com\/html5-css3\/skew-header-with-background-image-css\/"},"wordCount":212,"commentCount":0,"publisher":{"@id":"https:\/\/codehim.com\/#organization"},"image":{"@id":"https:\/\/codehim.com\/html5-css3\/skew-header-with-background-image-css\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/Skew-Header-with-Background-Image-CSS.png","articleSection":["HTML5 &amp; CSS3"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/codehim.com\/html5-css3\/skew-header-with-background-image-css\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/codehim.com\/html5-css3\/skew-header-with-background-image-css\/","url":"https:\/\/codehim.com\/html5-css3\/skew-header-with-background-image-css\/","name":"Skew Header with Background Image CSS &#8212; CodeHim","isPartOf":{"@id":"https:\/\/codehim.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/codehim.com\/html5-css3\/skew-header-with-background-image-css\/#primaryimage"},"image":{"@id":"https:\/\/codehim.com\/html5-css3\/skew-header-with-background-image-css\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/Skew-Header-with-Background-Image-CSS.png","datePublished":"2024-01-09T18:03:00+00:00","dateModified":"2024-01-22T11:04:56+00:00","description":"Here is a free code snippet to create a Skew Header with Background Image CSS. You can view demo and download the source code.","breadcrumb":{"@id":"https:\/\/codehim.com\/html5-css3\/skew-header-with-background-image-css\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/codehim.com\/html5-css3\/skew-header-with-background-image-css\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codehim.com\/html5-css3\/skew-header-with-background-image-css\/#primaryimage","url":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/Skew-Header-with-Background-Image-CSS.png","contentUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/Skew-Header-with-Background-Image-CSS.png","width":1280,"height":960,"caption":"Skew Header with Background Image CSS"},{"@type":"BreadcrumbList","@id":"https:\/\/codehim.com\/html5-css3\/skew-header-with-background-image-css\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/codehim.com\/"},{"@type":"ListItem","position":2,"name":"HTML5 &amp; CSS3","item":"https:\/\/codehim.com\/category\/html5-css3\/"},{"@type":"ListItem","position":3,"name":"Skew Header with Background Image CSS"}]},{"@type":"WebSite","@id":"https:\/\/codehim.com\/#website","url":"https:\/\/codehim.com\/","name":"CodeHim","description":"Web Design Code Snippets","publisher":{"@id":"https:\/\/codehim.com\/#organization"},"alternateName":"Web Design Codes","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/codehim.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/codehim.com\/#organization","name":"CodeHim - Web Design Code & Scripts","url":"https:\/\/codehim.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codehim.com\/#\/schema\/logo\/image\/","url":"http:\/\/codehim.com\/wp-content\/uploads\/2023\/06\/Codehim-short-logo.jpg","contentUrl":"http:\/\/codehim.com\/wp-content\/uploads\/2023\/06\/Codehim-short-logo.jpg","width":280,"height":280,"caption":"CodeHim - Web Design Code & Scripts"},"image":{"@id":"https:\/\/codehim.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/codehimofficial","https:\/\/x.com\/CodeHimOfficial","https:\/\/www.instagram.com\/codehim\/","https:\/\/www.linkedin.com\/company\/codehim","https:\/\/co.pinterest.com\/codehim\/","https:\/\/www.youtube.com\/@codehim"]},{"@type":"Person","@id":"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed","name":"Asif Mughal","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codehim.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/b25bfcd7d4e341c2c6f785a88d8ad2a4?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b25bfcd7d4e341c2c6f785a88d8ad2a4?s=96&d=mm&r=g","caption":"Asif Mughal"},"description":"I code and create web elements for amazing people around the world. I like work with new people. New people new Experiences. I truly enjoy what I'm doing, which makes me more passionate about web development and coding. I am always ready to do challenging tasks whether it is about creating a custom CMS from scratch or customizing an existing system.","sameAs":["https:\/\/codehim.com"],"url":"https:\/\/codehim.com\/author\/asif-mughal\/"}]}},"views":1168,"_links":{"self":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/9463","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/comments?post=9463"}],"version-history":[{"count":0,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/9463\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media\/9472"}],"wp:attachment":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media?parent=9463"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/categories?post=9463"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/tags?post=9463"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}