Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 17625

a question for you javascript/html5 guys/dolls?

$
0
0

I found this code for "raw html" in wordpress to create a drop-down card with image and text when you hover over the button.

Trying to figure out how to change this code so that the card drops down when you click the button instead of hover?

 

here's my suggested code:

<!DOCTYPE html>

<html>

<title>W3.CSS</title>

<meta name="viewport" content="width=device-width, initial-scale=1">

<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">

<body>

 

<div class="w3-container">

 <h2>Card Dropdowns</h2>

 <p>Move the mouse over "London" or "Tokyo":</p> …


Viewing all articles
Browse latest Browse all 17625

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>