This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#setting path in MAC | |
1: go to /Users/hemant create a file .bash_profile | |
2: add below lines to set new path ( for ex. I am adding MAMP php path) | |
export MAMP_PHP=/Applications/MAMP/bin/php/php5.4.4/bin | |
export PATH="$MAMP_PHP:$PATH" | |
3: save it | |
4: check it => php -v |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* For modern browsers | |
*/ | |
.cf:before, | |
.cf:after { | |
content: " "; /* 1 */ | |
display: table; /* 2 */ | |
} | |
.cf:after { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
<meta charset="utf-8" /> | |
<style> | |
</style> | |
</head> | |
<body> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<title></title> | |
<meta charset="utf-8" /> | |
<style> | |
ul,li{ | |
margin: 0; | |
padding: 0; | |
list-style: none; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<title>click wit css3</title> | |
<meta charset="utf-8" /> | |
<style> | |
#wrapper{ | |
width: 600px; | |
margin: 20px auto; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Web Performance: | |
1: Turn on http compression: GZipping: | |
☐ test here | |
http://gzipwtf.com/ | |
☐ copy below lines to htaccess in your root folder (get latest from here https://github.com/h5bp/html5-boilerplate/blob/master/.htaccess) | |
# ---------------------------------------------------------------------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<title>css tringles</title> | |
<meta charset="utf-8" /> | |
<style> | |
.chat-bubble { | |
background-color:#EDEDED; | |
border:2px solid #ccc; | |
font-size:35px; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$images=glob("images/*.{png,jpg,jpeg}",GLOB_BRACE); | |
foreach ($images as $img) { | |
$pathinfo=pathinfo($img); | |
$thumb=$pathinfo['filename']."-thumb.".$pathinfo['extension']."<br />"; | |
echo $thumb; | |
} | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<title>Centering div using pure css</title> | |
<meta charset="utf-8" /> | |
<style> | |
.outer{ | |
position: absolute; | |
top: 50%; | |
left: 0px; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<title></title> | |
<meta charset="utf-8" /> | |
<style> | |
#wrapper div{ | |
float:left; | |
width:200px; | |
height:200px; |