Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why cursor CSS not working in Gmail?

Tags:

html

css

php

My code sends an email to the client contains a button, it's "cursor:pointer" css is not working in gmail....

    $mail->isHTML(true);

    $mail->Body=' <a href="#">
    <button style="border: 1px solid transparent;cursor: pointer;padding: 
    10px 60px;float: right;border-radius: 3px;color: #fff;background-color: 
    #1b84e7;background-image: linear-gradient(to right,#1b84e7 0%,#1515af 
    100%);">Approve Incident</button>
    </a> ';

    if(!$mail->send()) {
    echo 'Message could not be sent.';
    echo 'Mailer Error: ' . $mail->ErrorInfo;
    } else {
    echo 'Message has been sent';
    }
like image 847
Abijith P Avatar asked May 16 '18 06:05

Abijith P


People also ask

Why is my cursor pointer not working?

Check that the battery of the mouse is charged. Make sure that the receiver (dongle) is firmly plugged in to the computer. If your mouse and receiver can operate on different radio channels, make sure that they are both set to the same channel.

How do I change my mouse pointer to CSS?

You can simply use the CSS cursor property with the value pointer to change the cursor into a hand pointer while hover over any element and not just hyperlink. In the following example when you place the cursor over the list item, it will change into a hand pointer instead of the default text selection cursor.


1 Answers

I found the answer that cursor CSS is not supported in Gmail, see this Email client css support page on Mailchimp.

like image 155
Abijith P Avatar answered Sep 18 '22 00:09

Abijith P