Skip to content

Instantly share code, notes, and snippets.

@dgloriaweb
Created July 19, 2018 13:18
Show Gist options
  • Save dgloriaweb/3648dc2372792bdc8281f7f1c519e056 to your computer and use it in GitHub Desktop.
Save dgloriaweb/3648dc2372792bdc8281f7f1c519e056 to your computer and use it in GitHub Desktop.
JS Bin// source http://jsbin.com/vawimirugo
.styleClass
{
display:table-cell;
border:1px solid black;
padding: 20px;
text-align:center;
}
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
</style>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
.styleClass
{
display:table-cell;
border:1px solid black;
padding: 20px;
text-align:center;
}
</style>
</head>
<body>
<div class="styleClass" onclick="alert('DIV clicked')">DIV element
<span class="styleClass" onclick ="alert('span clicked')">SPAN element
<input type ="button" value="click me" id="btn" onclick="alert('button clicked')"/>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment