by matt | Jan 19, 2015 | HTML / CSS, Uncategorized
ul { width: 100%; /* desired width */ text-align: center; } li { display: inline-block; *display: inline; /* IE7 hack */ *zoom: 1; /* IE7 hack */ }
by matt | Dec 28, 2014 | HTML / CSS, Uncategorized
<a href=”tel:+123456789″>1-23-456-789</a>
by matt | Oct 16, 2014 | HTML / CSS, Uncategorized
#container { background: url(images/bg.jpg) no-repeat center center fixed; -webkit-background-size: cover; /* For WebKit*/ -moz-background-size: cover; /* Mozilla*/ -o-background-size: cover; /* Opera*/ background-size: cover; /* Generic*/ } other variation:...
by matt | Oct 6, 2014 | HTML / CSS, Uncategorized
The basic html structure: <div class=”container”> <div class=”item”><p>Im floating in the center</p></div> </div> CSS: .container {text-align:center; width:100%} .item {display:inline-block; width:200px;}...