| Rico Rounded Corner |
|
|
| Written by Administrator | |
| Friday, 29 December 2006 | |
|
Have you ever wanned to make a simple rounded corner without making all those breath taking CSS styles?! Here by Rico everything seems to be as simple as apple pie. In this tutorial you will learn how to make division rounded corners for your website. 1. First Step: knowing some simple points about prototype
rounded_corner_example.zip <html> ok now these two scripts are going to be used in our web page. we can call any functions of these two scripts. Since prototype make it easy to use Ajax technology you will find it very useful if you are really willing to know how to use Ajax in your web application. Now its time to make some divisions in our web page. Its important that you know that for each division that you want to make its corners rounded you need to call a function and each division needs to have a unique ID. Without that it wouldn't work at all. An Example of making a division: <div id="firstdiv" style="background-color: #B7E1FE;"> Here you see that im putting some breaks between these division. From my own experience if the division is empty and you define a style or class element of height for showing the exact height of it, this script wouldn't work. you can place any other things instead of breaks, i just put these to show how it works. Well, until now everything seems to be so simple, right?! yea, its really simple. Next step is to call our functions. Note that its the hard part of our work, if you make a mistake here it wouldn't work! By this script you can simply call the functions to make these divisions corners rounded.You should place this script at the bottom of html code where the body tag will be closed. <script type="text/javascript"> As you see this is also simple but as i mentioned before you can only use each functions only for a specific division no iteration is allowed to occur here. Here the main difference that came into my consideration was the transparency element that i couldn't find in any other libraries it really helps to make a wonderful rounded corner because you use a background in the division and by using this color:"transparent" it would make the division corners rounded by this picture. this is the way that so many rounded corners button has been made as you can see in yahoo website or even amazon. Please Check this page to get to know all of its elements and how to use each one of them so easily in your web page. http://openrico.org/rico/demos.page?demo=rico_corner Please leave your comments below here so i can see if my tutorial is useful for you or not.
Trackback(0)
Comments (2)
![]() Helpfull
written by David, February 19, 2007
Thank you it was really helpfull
can oyu raed tihs? written by hmrtk, April 12, 2007
Cna yuo raed tihs? fi yuo cna raed tihs, yuo hvae a sgtrane mnid too. I cdnuolt blveiee taht I cluod aulaclty uesdnatnrd waht I was rdanieg. The phaonmneal pweor of the hmuan mnid, aoccdrnig to a rscheearch at Cmabrigde Uinervtisy, it dseno't mtaetr in waht oerdr the ltteres in a wrod are, the olny iproamtnt tihng is taht the frsit and lsat ltteer be in the rghit pclae. The rset can be a taotl mses and you can sitll raed it whotuit a pboerlm. Tihs is bcuseae the huamn mnid deos not raed ervey lteter by istlef, but the wrod as a wlohe. Azanmig huh? yaeh and I awlyas tghuhot slpeling was ipmorantt!
Write comment
Copyright 2007. All Rights Reserved. |
|
| Last Updated ( Tuesday, 10 July 2007 ) |









