How to make a Trapezoid in CSS

This is how you make a trapezoid in CSS. First you want to set up the div. We will give our div an id of trapezoid.

[code]<div id="trapezoid"></div>[/code]

Next we will style the div in our CSS.

[code]<style>
#trapezoid {
border-bottom: 100px solid lightBlue;
border-left: 50px solid transparent;
border-right: 50px solid transparent;
height: 0;
width: 100px;
}
</style>[/code]

Only cool people share!

How to make a Trapezoid in CSS

Feel free to copy and paste the code to suit your needs. 🙂 Most coders tear apart a code piece by piece in order to debug it. Do the same thing to this code so you can lear what each command does to your CSS. This is the best way to learn How to make a Trapezoid in CSS.

How to make a Trapezoid in CSS was last modified: May 8th, 2015 by Maximus Mccullough
Summary
How to make a Trapezoid in CSS
Article Name
How to make a Trapezoid in CSS
Description
This is how you make a trapezoid in CSS. First you want to set up the div. We will give our div an id of trapezoid.
Author
create-a-trapezoid-with-css

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.