Tuesday, 20 January 2015

Star With CSS

Star With CSS

all cover rectangles displayed in different colors

It's time to create a star with CSS!

The first step is to create a huge square which has the tag div and the id="body27". Using invisible cover rectangles colored in white and with different degrees on the left and right site of this square forms the star shape.

A picture says more than thousand words-I've put different colors on the cover rectangles to make it crystal clear how the object is created so please have a look at the code below.

HTML and CSS Code

No comments:

Post a Comment