Created
November 30, 2017 08:14
-
-
Save ahmeturganci/8820bbafcbe187c64038e2b9cbf82edf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>Example Canvas Center Div</title> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css"> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.6/umd/popper.min.js"></script> | |
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/js/bootstrap.min.js"></script> | |
</head> | |
<style> | |
.graph-info, | |
.motivation-info { | |
padding-left: 0; | |
padding-right: 5px; | |
} | |
.action-info, | |
.behaviour-info { | |
padding-right: 0; | |
padding-left: 5px; | |
} | |
.radar-container { | |
margin-top: 30px; | |
} | |
.classWithPad { | |
border: 1px solid rgba(102, 187, 158, 0.3); | |
border-radius: 15px; | |
background-color: rgba(102, 187, 158, 0.05); | |
padding-top: 10px; | |
padding-bottom: 10px; | |
} | |
.radar-container .row { | |
margin-bottom: 15px; | |
} | |
.classWithPad h2 { | |
text-align: center; | |
background-color: #292B2C; | |
color: white; | |
} | |
canvas { | |
padding-left: 0; | |
padding-right: 0; | |
margin-left: auto; | |
margin-right: auto; | |
display: block; | |
} | |
</style> | |
<body> | |
<div class="container radar-container"> | |
<div class="row"> | |
<div class="col graph-info"> | |
<div class="col classWithPad"> | |
<h2>title</h2> | |
<canvas id="info_process" width="200" height="200" style="border:1px solid #000000;"> | |
Your Canvas | |
</canvas> | |
</div> | |
</div> | |
<div class="col action-info"> | |
<div class="col classWithPad"> | |
<h2>title</h2> | |
<canvas id="info_process2" width="200" height="200" style="border:1px solid #000000;"> | |
Your Canvas | |
</canvas> | |
<button title="selam canım">asdasd</button> | |
</div> | |
</div> | |
</div> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment