S
S
SamWalton2018-05-02 00:30:38
Layout
SamWalton, 2018-05-02 00:30:38

How can I make it change color when hovering over an object?

Tell me how to do (ideally) similarly to these options. When hovering, it is interestingly highlighted.
So that when you go to the site you can immediately see the payment methods.

spoiler
5ae8db8e3408b102253461.png5ae8db936f941557432174.png5ae8db97e858a471407024.png

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
Roman Filippov, 2018-05-02
@Webram

We insert a list with images into footer.php.

<ul class="footer-pay">
<li class="pay-1">1 способ</li>
<li class="pay-2">2 способ</li>
<li class="pay-3">3 способ</li>
</ul>

In the style file we write:
.pay-1{
background: url(img/some1.jpg);
background-size: contain;
}
.pay-2{по аналогии с первым}
.pay-3{по аналогии с первым}

.footer-pay{
list-style:none;
display:inline-block;
float:left;

.footer-pay li{
-webkit-filter: grayscale(100%);
   -moz-filter: grayscale(100%);
    -ms-filter: grayscale(100%);
     -o-filter: grayscale(100%);
        filter: grayscale(100%);
transition-duration:0.3s;
}

.footer-pay li:hover{
-webkit-filter: grayscale(0%);
   -moz-filter: grayscale(0%);
    -ms-filter: grayscale(0%);
     -o-filter: grayscale(0%);
        filter: grayscale(0%);
}

A
Alexander Litvinov, 2014-05-27
@Sander_Li

It turned out that the reason was in the Urlmanager rules.
Dashes in urls do not fall under the \w+ rule
Helped on the forum

A
Alexander N++, 2014-05-17
@sanchezzzhak

try this config
www.yiiframework.com/doc-2.0/guide-installation.html
My config on local machine looks like this

server {
  listen   127.0.0.1:80;
  server_name  portal www.portal;
  
  root home/portal/public_html/web;
  index index.php index.html;

  log_not_found off;
  charset utf-8;

  access_log  logs/portal-access.log  main;

  location ~ /\. {deny all;}

  location / { if (!-e $request_filename) { rewrite ^(.*)$ /index.php; } }

  location = /favicon.ico {
  }

  location = /robots.txt {
  }

  location ~ \.php$ {
    if (!-e $document_root$document_uri){return 404;}
    fastcgi_pass 127.0.0.1:9054;
    fastcgi_index index.php;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    include fastcgi_params;
  }
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question