{"id":7606,"date":"2021-04-15T00:48:45","date_gmt":"2021-04-14T21:48:45","guid":{"rendered":"https:\/\/elzero.org\/?p=7606"},"modified":"2022-09-28T17:59:09","modified_gmt":"2022-09-28T14:59:09","slug":"tutorials-fill-element-background-from-other-element","status":"publish","type":"post","link":"https:\/\/elzero.org\/old\/tutorials-fill-element-background-from-other-element\/","title":{"rendered":"Fill Element Background From Other Element"},"content":{"rendered":"<h3>\u0627\u0644 Code<\/h3>\r\n\r\n<script type=\"text\/plain\" class=\"language-html\">\r\n<div class=\"product\">\r\n  <div class=\"number\">01<\/div>\r\n  <h3>Product Title<\/h3>\r\n  <p>\r\n    Lorem ipsum dolor sit amet, consectetur adipisicing elit. \r\n    Expedita tenetur accusantium recusandae perspiciatis\r\n    laborum. Aspernatur optio itaque accusamus ex molestiae dolorem, \r\n    quas qui illo similique fugit unde error sit\r\n    ipsa.\r\n  <\/p>\r\n<\/div>\r\n<\/script>\r\n\r\n<script type=\"text\/plain\" class=\"language-css\">\r\n* {\r\n  box-sizing: border-box;\r\n  padding: 0;\r\n  margin: 0;\r\n}\r\nbody {\r\n  font-family: Arial, Tahoma;\r\n}\r\n.product {\r\n  width: 400px;\r\n  margin: 20px auto;\r\n  box-shadow: 0 0 10px #ddd;\r\n  padding: 20px;\r\n  text-align: center;\r\n  overflow: hidden;\r\n}\r\n.product .number {\r\n  background-color: #009688;\r\n  color: #fff;\r\n  width: 60px;\r\n  height: 60px;\r\n  border-radius: 50%;\r\n  margin: auto;\r\n  display: flex;\r\n  justify-content: center;\r\n  align-items: center;\r\n  font-weight: bold;\r\n  font-size: 26px;\r\n  transition: 0.6s;\r\n}\r\n.product h3 {\r\n  margin: 15px 0;\r\n  font-size: 26px;\r\n  transition: 0.6s;\r\n}\r\n.product p {\r\n  line-height: 1.6;\r\n  transition: 0.6s;\r\n  font-size: 18px;\r\n}\r\n.product:hover .number {\r\n  box-shadow: 0 0 0 500px #009688;\r\n}\r\n.product:hover h3,\r\n.product:hover p {\r\n  color: white;\r\n}\r\n<\/script>","protected":false},"excerpt":{"rendered":"<p>\u0627\u0644 Code<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[879],"tags":[],"class_list":["post-7606","post","type-post","status-publish","format-standard","hentry","category-front-end-tutorials"],"_links":{"self":[{"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/posts\/7606","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/comments?post=7606"}],"version-history":[{"count":2,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/posts\/7606\/revisions"}],"predecessor-version":[{"id":7608,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/posts\/7606\/revisions\/7608"}],"wp:attachment":[{"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/media?parent=7606"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/categories?post=7606"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/tags?post=7606"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}