Forums
Forums / Plugin: Enhanced Text Widget / CSS
(@beatdownhaus)
12 years, 8 months ago
Hi. I try add this CSS to widget: <div id=”cf6_image” class=”shadow”></div>
#cf6_image { margin:0 auto; width:450px; height:281px; transition: background-image 1s ease-in-out; background-image:url(“/images/Windows%20Logo.jpg”); }
#cf6_image:hover { background-image:url(“/images/Turtle.jpg”); } but widget it reed like text. thanks for help
http://ww.wp.xz.cn/plugins/enhanced-text-widget/
(@bostondv)
You have to wrap CSS in a <style> tag, like this:
<style>
<style type="text/css"> #cf6_image { margin:0 auto; width:450px; height:281px; transition: background-image 1s ease-in-out; background-image:url("/images/Windows%20Logo.jpg"); } #cf6_image:hover { background-image:url("/images/Turtle.jpg"); } </style>
The topic ‘CSS’ is closed to new replies.