{"id":335,"date":"2012-05-04T08:27:11","date_gmt":"2012-05-04T08:27:11","guid":{"rendered":"https:\/\/ibex.tech\/cloud\/?p=335"},"modified":"2022-02-17T07:14:04","modified_gmt":"2022-02-17T07:14:04","slug":"hover","status":"publish","type":"post","link":"https:\/\/ibex.tech\/cloud\/css\/hover","title":{"rendered":"Hover"},"content":{"rendered":"<p>\nYou can use :Hover on anything &#8211; doesn&#39;t have to be a link\n<\/p>\n<p>\nE.g.\n<\/p>\n<pre>\r\n<code>\r\n.my_style_name:Hover {\r\n\tcolor: #000000;\r\n}\r\n<\/code><\/pre>\n<p>\n&nbsp;\n<\/p>\n<h4>\nTool Tip Style Hover Text<br \/>\n<\/h4>\n<p>\nYou can use the title attribute to add pop up text to most things:\n<\/p>\n<pre>\r\n<code>\r\n&lt;span title=&quot;Text that will show on hover&quot;&gt;Text on page&lt;\/span&gt;\r\n<\/code><\/pre>\n<h5>\nUsing CSS instead when you want to control the style<br \/>\n<\/h5>\n<pre>\r\n<code>\r\n&lt;span class=&quot;droptext&quot; &gt;Text on page\r\n  &lt;span style=&quot;width:500px;&quot;&gt;Text that will show on hover&lt;\/span&gt;\r\n&lt;\/span&gt;\r\n<\/code><\/pre>\n<pre>\r\n<code>\r\nspan.droptext {border-bottom: thin dotted; background: #ffeedd;}\r\nspan.droptext:hover {text-decoration: none; background: #ffffff; z-index: 6; }\r\nspan.droptext span {position: absolute; left: -9999px;\r\n  margin: 20px 0 0 0px; padding: 3px 3px 3px 3px;\r\n  border-style:solid; border-color:black; border-width:1px; z-index: 6;}\r\nspan.droptext:hover span {left: 2%; background: #ffffff;} \r\nspan.droptext span {position: absolute; left: -9999px;\r\n  margin: 4px 0 0 0px; padding: 3px 3px 3px 3px; \r\n  border-style:solid; border-color:black; border-width:1px;}\r\nspan.droptext:hover span {margin: 20px 0 0 170px; background: #ffffff; z-index:6;} \r\n<\/code><\/pre>\n<p>\n&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You can use :Hover on anything &#8211; doesn&#39;t have to be a link E.g. .my_style_name:Hover { color: #000000; } &nbsp; Tool Tip Style Hover Text You can use the title attribute to add pop up text to most things: &lt;span title=&quot;Text that will show on hover&quot;&gt;Text on page&lt;\/span&gt; Using CSS instead when you want to [&hellip;]<\/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-335","post","type-post","status-publish","format-standard","hentry","category-css"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/335","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=335"}],"version-history":[{"count":7,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/335\/revisions"}],"predecessor-version":[{"id":1450,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/335\/revisions\/1450"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/media?parent=335"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/categories?post=335"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/tags?post=335"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}