This post guides you how to shape the web elements as per your desire and increase the attractiveness of the paragraph,table and image elements.Sometimes we may use many softwares to achieve this desired shape yet we cannot achieve what we desire but using CSS correctly it will open gates to create wide variety of shapes.So this tutorial will teach you to create different shapes using th border property of CSS.You may also implement it in your website/blog for simplified designs and quite enough to get attraction from your visitors.
HTML CODE:
This coding of this was very simple that is to define the class of the CSS code inside a <div>, <p>, <table> and <img> to apply the shape style to your desired elements.
CSS CODES:HTML CODE:
This coding of this was very simple that is to define the class of the CSS code inside a <div>, <p>, <table> and <img> to apply the shape style to your desired elements.
This coding was the backbone of the shapes by adjusting the value of the border radius in means of percentage(%) or Pixels(px) you can achieve the shape you need.
ROUNDED CORNERS:
- .rounded{
- border-radius:20px 20px 20px 20px;
- -moz-border-radius:20px 20px 20px 20px;
- -webkit-border-radius:20px 20px 20px 20px;
- background:#1D86EF;
- height:200px;
- width:300px;}
ROUNDED CORNERS AT OPPOSITE SIDES:
- .rndop{
- border-radius:20px 0px 20px 0px;
- -moz-border-radius:20px 0px 20px 0px;
- -webkit-border-radius:20px 0px 20px 0px;
- background:#1D86EF;
- height:200px;
- width:300px;}
ROUNDED AT BOTTOM:
- .bottm{
- border-radius:0px 0px 20px 20px;
- -moz-border-radius:0px 0px 20px 20px;
- -webkit-border-radius:0px 0px 20px 20px;
- background:#1D86EF;
- height:200px;
- width:300px;}
- .circle{
- border-radius:50% 50%;
- -moz-border-radius:50% 50%;
- -webkit-border-radius:50% 50%;
- background:#1D86EF;
- height:300px;
- width:300px;}
OVAL:
- .oval{
- border-radius:50% 50%;
- -moz-border-radius:50% 50%;
- -webkit-border-radius:50% 50%;
- background:#1D86EF;
- height:200px;
- width:300px;}
Your comments and views about this post very precious and most welcome here.Share this post with others if you love it and for more CSS and HTML tutorial check out HTML and CSS page
Image may be NSFW.
Clik here to view.
Image may be NSFW.
Clik here to view.
Image may be NSFW.
Clik here to view.
Image may be NSFW.
Clik here to view.
Image may be NSFW.
Clik here to view.![]()
Image may be NSFW.Clik here to view.
Clik here to view.
Clik here to view.
Clik here to view.
Clik here to view.
Clik here to view.