Hi Coding Forums,
I was wondering how you deal with hover effect on smartphone? You have to tap and maintain your finger on the screen to have an hover effect but I assume most users will just tap it briefly, so I use the code bellow but it does not work. So how would solve this? What is your approach for responsive design?
@media (max-width: 768px) {
.container {
padding: 20px;
}
.intro .button:focus,
.intro .button:active {
background-color: white;
color: dimgrey;
}
.intro {
padding: 30px;
}
.intro h1 {
font-size: 1.5em;
}
.intro p {
font-size: 1.45em;
}
.intro .button {
font-size: 0.9em;
padding: 15px 20px;
margin-top: 10px;
}
@keyframes pulse {
to {
box-shadow: 0 0 0 15px rgba(232, 76, 61, 0);
}
}
footer {
font-size: 0.90rem;
}
}
.intro .button:focus,
.intro .button:active {
background-color: white;
color: dimgrey;
}
VBService comes to my help!
I was wondering how you deal with hover effect on smartphone? You have to tap and maintain your finger on the screen to have an hover effect but I assume most users will just tap it briefly, so I use the code bellow but it does not work. So how would solve this? What is your approach for responsive design?
@media (max-width: 768px) {
.container {
padding: 20px;
}
.intro .button:focus,
.intro .button:active {
background-color: white;
color: dimgrey;
}
.intro {
padding: 30px;
}
.intro h1 {
font-size: 1.5em;
}
.intro p {
font-size: 1.45em;
}
.intro .button {
font-size: 0.9em;
padding: 15px 20px;
margin-top: 10px;
}
@keyframes pulse {
to {
box-shadow: 0 0 0 15px rgba(232, 76, 61, 0);
}
}
footer {
font-size: 0.90rem;
}
}
.intro .button:focus,
.intro .button:active {
background-color: white;
color: dimgrey;
}
VBService comes to my help!