Skip to content

Instantly share code, notes, and snippets.

View arnoldc's full-sized avatar
🏠
Working from home

Arnold Camas arnoldc

🏠
Working from home
  • Philippines
  • 20:18 (UTC -12:00)
View GitHub Profile
@font-face {
font-family: 'Graublau Web';
src: url('GraublauWeb.eot');
src: local('Graublau Web Regular'), local('Graublau Web'),
url('GraublauWeb.otf') format('opentype');
}
@arnoldc
arnoldc / cross-browser-opacity.css
Last active June 11, 2020 12:41 — forked from Quinten/cross-browser opacity
css: cross browser opacity
selector {
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";
filter: alpha(opacity=30);
-moz-opacity: 0.3;
-khtml-opacity: 0.3;
opacity: 0.3;
}
@arnoldc
arnoldc / skewed-shadow-demo.html
Last active January 28, 2018 22:47
css: Skewed Shadow using CSS3
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
<div class="box">
@arnoldc
arnoldc / pointers.css
Created June 23, 2013 11:39
css: Remove cursor pointer in current menu page
#home nav .home > a {
pointer-events: none;
cursor: default;
}
@arnoldc
arnoldc / search-button.css
Created June 23, 2013 11:55
css:style search box using html button
.search input.box {
height:12px;
width:109px;
margin:0;
padding:5px;
color:#A4A3A3;
border:1px solid #ccc;
}
@arnoldc
arnoldc / inset-shadow-img.css
Created June 23, 2013 11:59
css: inset shadow on img
.vignette {
-webkit-box-shadow: inset 0px 0px 85px rgba(0,0,0,0.4);
-moz-box-shadow: inset 0px 0px 85px rgba(0,0,0,0.4);
box-shadow: inset 0px 0px 85px rgba(0,0,0,0.4);
line-height: 0; /* ensure no space between bottom */
display: inline-block; /* don't go wider than image */
}
.vignette img {
position: relative;
@arnoldc
arnoldc / fieldset.html
Created June 23, 2013 12:00
html: fieldset and legend markup
<fieldset>
<legend>Billing Affress</legend>
<label for="billAddress">Address</label><input type="text" id="billAddress" name="billAddress" />
<label for="billCity">City</label><input type="text" id="billCity" name="billCity" />
<label for="billProvince">Province</label><input type="text" id="billProvince" name="billProvince" />
<label for="billPC" >Postal Code</label><input type="text" id="billPC" name="billPC" />
</fieldset>
@arnoldc
arnoldc / peekabo-bug.css
Created June 23, 2013 12:02
css: peekabo bug on IE6/7
#floater {
background-color: #dec;
float: left;
width: 35%;
position: relative; /* peekaboo bug fix for IE6 */
min-width: 0; /* peekaboo bug fix for IE7 */
}
@arnoldc
arnoldc / double-margin-bug-fix.css
Created June 23, 2013 12:03
css: Double margin bug in IE6
#navigation {
display: inline;
float: left;
margin-left: 10px;
width: 200px;
}
/*The fix is to set display:inline on the floating elements*/
@arnoldc
arnoldc / overfow-clear-method.css
Created June 23, 2013 12:05
css: overflow clear method
.container {
border: 1px solid #000000;
overflow: hidden;
width: 998px;
}
/*
With the simple-clear method, you apply the overflow property to the parent
container, preventing it from collapsing around its floated children.