I'm trying to make a simple button. But instead of <button>
, I'm using <div>
and <p>
, but the result will show up as only border, and the text won't show up over the border.
Am I doing something wrong?
Screenshot of the button:
<!-- begin snippet: js hide: false console: true babel: false --> <!-- language: lang-css -->.Something4 {
margin-top: -72px;
margin-left: 335px;
font-size: 20px;
width: 110px;
height: 60px;
border: 1px solid #E12976;
border-radius: 20px;
}
.Something4 p2 {
margin-left: 335px;
width: 100px;
height: 50px;
}
<!-- language: lang-html -->
<div onclick="location.href='Login.php';" style="cursor: pointer;" class="Something4">
<p2 style="font-family: Sans-serif;font-size:16px;font-style:normal;">Login</p2>
</div>
<!-- end snippet -->