DIV CSS Draw Windmill

Source: Internet
Author: User

I have to say, CSS and Div are a lot of fun.

Because the head of a bored, suddenly think, draw a div windmill how, so he drew a.

Border's style can be chosen independently.

On the code:

<style>*{margin:0px;padding:0px;}. we{border-left:5px double red;border-right:5px dotted green;border-top:5px solid #3333FF; border-bottom:6px Groove # ff9900;width:500px;height:300px;margin:0 Auto;} #ftop {margin-left:100px;margin-right:0px;width:100px;height:200px;background-color: #FF0000;} #fright {margin-left:200px;margin-top:-100px;width:200px;height:100px;background-color: #FFFF66;} </style><div class= "We" >different border</div><br/><div><!--First part-->< Div id= "ftop" >up</div><div id= "Fright" >right</div></div><style> #fleft { Margin-left:0px;margin-right:0px;width:200px;height:100px;float:left;background-color: #0099CC;} #fdown {margin-left:200px;margin-top:0px;width:100px;height:200px;background-color: #66FF00}</style>< div><!--Second Part--><div id= "Fleft" >left</div><div id= "Fdown" >down</div></ Div>


Different border

Upright Leftdown

DIV CSS Draw Windmill

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.