1 Star2 Stars3 Stars4 Stars5 Stars (5 votes, average: 5.00 out of 5)

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.

Tip: Click on images to make them larger. If you find anything wrong on this page or need further assistance please comment below or contact me. 🙂
<div id="rectangle"></div>

Now lets enter our CSS to make our rectangle.

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

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

Subscribe To My YouTube Channel:
<style>#rectangle{width:200px; height:100px; background:blue;}</style>
Make a rectangle in CSS was last modified: May 22nd, 2015 by Maximus Mccullough

Please like, share and subscribe.

Advanced Programming Made Easy

I hope you enjoyed the article. If I was able to help you please consider a tip for the content.

One Time Tip

more tips

Reoccuring Tips


Cool People Share:

Leave a Reply

Your email address will not be published. Required fields are marked *

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