1. Border Radius
Earlier we used to use images to get border radius, which is bit a long procedure and lots of codes are needed to complete this. But now with CSS3 Border Radius Property we can do it in second. View alos css curve buttonCode #border-radius { width: 200px; height:100px; background-color:#398ebe; -webkit-border-radius: 10px; -moz-border-radius: 10px; border-radius: 10px; } | Demo |
2. Box Shadow
This is the new property of CSS3 which gives shadow to selected DIV. Using Box Shadow we can set the X and Y offset of shadow, color of shadow along with Blur in pixel.Code #box-shadow { width: 200px; height: 150px; background-color:#398ebe; -webkit-box-shadow: #244766 5px 5px 10px; -moz-box-shadow: #244766 10px 10px 10px; box-shadow: #244766 10px 10px 10px; } | Demo |
3. Text Shadow
This is the new property of CSS3 which gives shadow to selected DIV. Using Box Shadow we can set the X and Y offset of shadow, color of shadow along with Blur in pixel.Code #text-shadow { font-family:Arial, Helvetica, sans-serif; font-weight:bold; font-size:50px; color:#398ebe; text-shadow: #555 3px 3px 3px; -webkit-text-shadow: #555 3px 3px 3px; -moz-text-shadow: #555 3px 3px 3px; box-text: #555 3px 3px 3px; } | Demo |
4. Text Stroke
This is the new property of CSS3 which gives stroke/outline to Text. Here we will use syntax as text-fill-color for color of text, text-stroke-color which gives color to the stroke and text-stroke-width for width of stroke/outline.Code #text-stroke { font-family:Arial, Helvetica, sans-serif; font-size:50px; font-weight:bold; -webkit-text-fill-color: #398ebe; -webkit-text-stroke-color: #000000; -webkit-text-stroke-width: 2px; } | Demo |
5. Linear Gradient
Linear Gradient gives a gradient to any HTML elements. View also css gradient button for more details.Code #linear-gradient { width: 200px; height: 150px; /* For Firefox */ background-image: -moz-linear-gradient(top, #83cbf4, #d1ecfa);/* For Safari/Chrome */ background-image: -webkit-gradient(linear,left bottom,left top,color-stop(0, #d1ecfa),color-stop(1, #83cbf4));} | Demo |
6. Radial Gradient
This CSS3 Property gives a radial gradient to any selected element of XHTMl. Visit Webkit and Gecko for more detail on this property.Code #radial-gradient { width: 200px; height: 150px; /* For Firefox */ background-image: -moz-radial-gradient(center 45deg, circle closest-corner, #d1ecfa 10%, #83cbf4 70%);/* For Safari/Chrome */ background-image: -webkit-gradient(radial, center center, 10, center center, 90, from(#d1ecfa), to(#83cbf4));} | Demo |
7. Rotate
This CSS3 Property allows any html element to rotatCode #rotate { width: 200px; height: 150px; background-color:#398ebe; -webkit-transform: rotate(-20deg); -moz-transform: rotate(-20deg); } | Demo |
8. Reflection
This CSS3 Property allows reflection of text or boxes.Code #reflection { font-family:Verdana, Arial, Helvetica, sans-serif; font-weight:bold; font-size:18px; color: #398ebe; -webkit-box-reflect: below -5px -webkit-gradient(linear, left top, left bottom, from(transparent), to(rgba(100, 100, 100, 0.4))); } | Demo |
9. Resize
This CSS3 Property allows resizing of box on horizontal, vertical and both axis.Code #resizing { width: 200px; height: 100px; border:1px solid #398ebe; overflow: hidden; resize: both; } | Demo |
10. Outline
When we style any element with outline then we can have a outline specified with offset to that particular element. Suppose we want to have an outline which is 5px away from the element box then we use outline property.Code #outline { width: 200px; height: 150px; background-color:#398ebe; outline: solid 1px #398ebe; outline-offset: 5px; } | Demo |
I don't know how you know all this technical information, but it is wonderful that you share it. Great site!
ReplyDeleteHere is the correct code for the box-reflect feature:
ReplyDelete-webkit-box-reflect: below 5px -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop(0.87, transparent), to(white));
-moz-box-reflect: below 5px -moz-linear-gradient(top, white, transparent);
There is no support for box-reflect in firefox. Not even in firefox 4 beta at the moment.
ReplyDeletecore information,this will help,thanks
ReplyDeleteThere is support for box-reflect in FF4, see http://hacks.mozilla.org/wp-content/uploads/2010/08/reflection1.html and https://hacks.mozilla.org/2010/08/mozelement/
ReplyDeleteIn css use id then enjoy more feature in css change any design just type h1 and change whole color site in the website all h1 tags.
ReplyDeleteGoood but try to do more goood ..... we are wating for next version ....
ReplyDeletewe are the most economical web developing company and we also provide great service and it's a great blog ,thanks for sharing
ReplyDeleteawsum tutorials.....thanks for sharing them.
ReplyDeleteOnline Javascript Course | Backbone.JS Online Course | KnockoutJS Online Training | Angularjs Online Course | Bootstrap Online Training | Node js Online Course | Typescript Online Training
ReplyDelete