{"id":343,"date":"2012-05-04T08:34:07","date_gmt":"2012-05-04T08:34:07","guid":{"rendered":"https:\/\/ibex.tech\/cloud\/?p=343"},"modified":"2022-02-17T07:14:04","modified_gmt":"2022-02-17T07:14:04","slug":"rollover-buttons","status":"publish","type":"post","link":"https:\/\/ibex.tech\/cloud\/css\/rollover-buttons","title":{"rendered":"Rollover buttons"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p>Based on this guide<\/p>\n<p><a href=\"http:\/\/www.table2css.com\/articles\/how-create-rollover-image-button-html-and-css-without-any-javascript\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/www.table2css.com\/articles\/how-create-rollover-image-button-html-and-css-without-any-javascript<\/a><\/p>\n<p>Create your image double height with the roll over image in the bottom half<\/p>\n<h5>In the &lt;head&gt;<\/h5>\n<pre><code>\r\n&lt;style type=\"text\/css\"&gt;\r\na.myrollover {\r\n  display: block;\r\n  width: 80px;\r\n  height: 30px;\r\n  background-image: url('button_combined.png');\r\n}\r\n\r\na.myrollover:hover {\r\n  background-position: center bottom;\r\n}\r\n&lt;\/style&gt;\r\n\r\n<\/code><\/pre>\n<h5>Then for your link<\/h5>\n<pre><code>\r\n&lt;a href=\"#\" class=\"myrollover\"&gt;&lt;\/a&gt;\r\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; Based on this guide http:\/\/www.table2css.com\/articles\/how-create-rollover-image-button-html-and-css-without-any-javascript Create your image double height with the roll over image in the bottom half In the &lt;head&gt; &lt;style type=&#8221;text\/css&#8221;&gt; a.myrollover { display: block; width: 80px; height: 30px; background-image: url(&#8216;button_combined.png&#8217;); } a.myrollover:hover { background-position: center bottom; } &lt;\/style&gt; Then for your link &lt;a href=&#8221;#&#8221; class=&#8221;myrollover&#8221;&gt;&lt;\/a&gt;<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[45],"tags":[],"class_list":["post-343","post","type-post","status-publish","format-standard","hentry","category-css"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/343","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/comments?post=343"}],"version-history":[{"count":5,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/343\/revisions"}],"predecessor-version":[{"id":3228,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/343\/revisions\/3228"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/media?parent=343"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/categories?post=343"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/tags?post=343"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}