Note that there are some explanatory texts on larger screens.

plurals
  1. POImage Change with Mouse Hover
    primarykey
    data
    text
    <p>I have some links to my facebook and twitter, these links are images. I want these links to turn lighter when I hover over them. I was thinking I could do this by making two images and making the images change when I hover over the image link. Is this the best way to do it and if it is how do i do it? I couldn't find any help on how to do it this way. </p> <p>Here is my HTML:</p> <pre><code>&lt;div class="social"&gt; &lt;a href="https://www.facebook.com/seth.urquhart?sk=wall&amp;v=wall"&gt; &lt;img src="../img/facebook_logo_extended.jpg"/&gt; &lt;/a&gt; &lt;/div&gt; &lt;br&gt; &lt;div class="social"&gt; &lt;a href="https://twitter.com/SethUrquhart"&gt; &lt;img src="../img/twitter_logo_extended.jpg"/&gt; &lt;/a&gt; &lt;/div&gt; </code></pre> <p>Here is my CSS:</p> <pre><code>p { color: #232323; text-indent:0px; margin-left:30px; padding-right: 30px; } ul { text-align: center; color: gray; } ul a { text-decoration: none; color: black; } ul a:hover { text-decoration: underline; margin-right: auto; margin-left: auto; } html { background: #e8e9e1; } h1 { text-align: center; } body { font-family: sans-serif; color: #232323; } .wrap { min-width: 600px; width: 1200px; margin: auto; height: 100px; text-align: center; background-color: none; } .content { background: #ffffff; width: 900px; margin-left: auto; margin-right:auto; height: auto; text-indent: 50px; } .footer { text-align: center; background-color: #383838; width: 900px; margin-left: auto; margin-right: auto; color: #e8e9e1; } .social { width: 900px; margin: auto; height: 100px; text-align: center; background-color: none; } .social:hover { margin-right: auto; margin-left: auto; background:#cccccc; color:#000; } ul#list-nav { padding: 0; list-style: none; width: 605px; margin: 0 auto; } ul#list-nav li { display:inline; } ul#list-nav li a { text-decoration:none; padding:5px 0; width:150px; background:#383838; color:#eee; float:left; border-left:1px solid #fff; } ul#list-nav li a:hover { margin-right: auto; margin-left: auto; background:#cccccc; color:#000; } </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload