Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Nelson 94 posts 246 karma points
    Nov 25, 2015 @ 08:17
    Nelson
    1

    Change background color with color picker

    Hi guys!

    I've created a grid editor with an image and with text hover. What I want to do is to use the color picker of Umbraco to be able to change the background color of the image when on hover, and with 0.5 of opacity. Isis possible to do this without javascript?

    Thanks!

  • Kerri Mallinson 113 posts 497 karma points
    Nov 25, 2015 @ 16:36
    Kerri Mallinson
    0

    Hi Nelson,

    I've used a drop down list before to set a class then had the hover in the css.

    eg created a drop down list called "colour" for Blue, Red, Green etc for the editor to set, then output the class in the template:

                        <li>
                            <div class="menu_box">
                                <a class="@colour" href="@block.Url"><br>
                                <p class="menu_copy">@menuCopy</p> 
                            </div>
                        </li>
    

    Not sure if you could do something similar with colour picker?

Please Sign in or register to post replies

Write your reply to:

Draft