Make a rectangle in CSS

This short sweet tutorial will show you how to make a rectangle in CSS.

First thing is you want to set up your div, we are going to give our div an id of rectangle.

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

Now lets enter our CSS to make our rectangle.

Only cool people share!

[code]<style>#rectangle{width:200px; height:100px;}</style>[/code]

We can give it a background color of blue in the CSS like this.

[code]<style>#rectangle{width:200px; height:100px; background:blue;}</style>[/code]

Make a rectangle in CSS was last modified: May 22nd, 2015 by Maximus Mccullough
Summary
Make a rectangle in CSS
Article Name
Make a rectangle in CSS
Description
Make a rectangle in CSS
Author
make-a-rectangle-in-css-yes

Leave a Reply

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