I am trying to turn my empty div into a triangle but everything I've tried produces the same result, nothing. I'm hoping a fresh set of eyes can tell me what I'm missing.
body {
background-color: #0A3D75;
width: 100vw;
height: 100vh;
}
header {
width: 100vw;
height: 100vh;
}
.shape {
width: 0;
height: 0;
border-top: 100px solid #E07D00;
border-right: 100px solid transparent;
border-left: 0 solid transparent;
}
/*I've also tried this*/
.shape {
border-color: transparent transparent transparent #E07D00;
border-style: solid;
border-width: 100px 100px 0 0;
height: 0px;
width: 0px;
}
<body>
<header>
<div class="menu">
<ul>
<li id="about"><a href="about.html">About</a></li>
<li id="portfolio"><a href="portfolio.html">Portfolio</a></li>
<li id="contact"><a href="contact.html">Contact</a></li>
</ul>
</div>
<h1>Alex Wilbur</h1>
<p>UI Designer/Front-end Developer - Graphic Artist - Indie Game Developer</p>
<h2>Imagination brought to life</h2>
<div class="shape"></div>
</header>
</body>
I have also tried changing the width and height of the body and header but that also did nothing. Any suggestions?