Category : "Uncategorized"

Make hanging style buttons with CSS3 transition

Here is a demo of hanging style buttons Tested in latest versions of Firefox, Chrome and Opera. Code Html is minimal : <div> <a class="button">Hang Down</a> </div> CSS : .button { /*border:1px solid #9DA5B4;*/ background-image: -webkit-linear-gradient(top, #9DA5B4, #7A8493); background-image: -moz-linear-gradient(top, #9DA5B4, #7A8493); background-image: -ms-linear-gradient(top, #9DA5B4, #7A8493); background-image: -o-linear-gradient(top, #9DA5B4, #7A8493); background-image: linear-gradient(top, #9DA5B4, #7A8493); color:#fff; padding:7px 15px; float:left; margin:0 ...

Make rotating buttons with CSS3 transition and transform

CSS3 has lots of new properties which can be used to make much more complex ui elements on webpages. Here is the rotating button Demo : Tested in latest versions of Firefox , Google Chrome , Opera. The above shown rotation effect is achieved using the transition and transform properties of CSS3. Code The html code is minimal : <div> <a class="button">Rotation</a> </div> CSS : .button { background:#aaa; color:#555; font-weight:bold; font-size:15px; padding:10px 15px; border:none; margin:50px; cursor:pointer; -webkit-transition:-webkit-transform 1s,opacity 1s,background 1s,width ...

Url encoded forward slash in MVC or codeignitor app urls

When using PATH_INFO , the urls of codeignitor apps or your custom MVC looks like this index.php/controlller/method/param1/param2 or /controlller/method/param1/param2 Now if the parameters contain a forward slash then you would urlencode it as : index.php/controlller/method/par%2Fam1/param2 But opening that kind of URL would give an error : Page Not Found This happens if AllowEncodedSlashes directive of Apache is not turned on. More Here. This directive should be turned ...

PATH_INFO, ORIG_PATH_INFO, APACHE and PHP

AcceptPathInfo Directive The AcceptPathInfo directive is a useful feature of apache. It detects any path information in a url following the actual script name and passes it to php as an environment variable in $_SERVER superglobal. Php mvc based frameworks often use such urls that have additional path information after a script name. This is necessary so that the application can ...

Change column / field order in OpenOffice Base ( HSQL )

Altering the sequence of fields of a table was a feature I was looking for in OpenOffice Base. It is not directly possible to drag the columns or fields and alter their sequence.A SQL workaround can do the same thing.If the sequence of fields is :name , email , address , phoneand phone is to be brought before address like ...

Output buffering PHP Apache mod gzip mod deflate

Till recently most of my php scripts were working fine on the servers with instantaneous outputs as and when a echo statement came. One issue that popped a lot on localhost was that of chunky outputs; that is the outputs of big scripts came out in chunks rather than smoothly with every echo or print statement. After some research flush() ...



Connect with us