Thursday, November 27, 2014

alert and redirect

window.location='http://localhost:81/friendlyvilla/?page=booking-tour-packages&id=98';
    alert('coming soon...1');

Sunday, November 23, 2014

hide some part of image when it over flow

span { position: relative; display: block; width: 50px; /* Change this */ height: 50px; /* Change this */ overflow: hidden; border: 1px solid #000; } span img { position: absolute; left: -10px; /* Change this */ top: -10px; /* Change this */ }

Wednesday, November 19, 2014

css css

apply css on input tag

.tour-bookingform input[type="text"],input[type="email"], select, input[type="date"], textarea,input[type="number"]{ width: 350px; height:30px; display: block; margin-bottom: 10px; background:#000; color:white }

.menu li li.active a{color:#fff !important}

--------------------------------------------------
Expand clickable area og tag A

.navp a{background:#CCC; border-radius:3px; padding: 7px 7px; margin-left:1px; margin-top:10px; display:inline-block;color:#fd792a}

--------------------------------------------------
Selected Active link

.menu>li.active,.menu>li:hover,.menu li>ul>li.active{
    box-shadow: 0 5px #fd792a;
-moz-box-shadow: 0 5px #fd792a;
-webkit-box-shadow: 0 5px #fd792a;
background: #000;
}

Tuesday, November 18, 2014

Monday, November 17, 2014

keep original width , height when upload

if($info['mime'] == 'image/gif') $src = imagecreatefromgif($uploadedfile); $o_wd = imagesx($src); // original width $o_ht = imagesy($src);// original height }

Saturday, November 8, 2014