Skip to content

Instantly share code, notes, and snippets.

@rafaelrozon
rafaelrozon / inset_border.css
Last active February 19, 2019 21:34
creates a nice effect of inset border/line
/* creates the effect of an inset line */
border-top: 2px solid #E4E4E4;
border-bottom: 1px solid white;
@rafaelrozon
rafaelrozon / embed external style sheet.html
Created June 17, 2015 23:45
embed external stylesheet
<link rel=‘stylesheet’ type=‘text/css’ href=“pathToCSSFile/file.css”
@rafaelrozon
rafaelrozon / externalStyleSheetMediaAttribute.html
Created June 17, 2015 23:49
embed external style sheet with media attribute
<link rel=‘stylesheet’ type=‘text/css’ href=‘pathToCSSFile/file.css’ media=‘screen’ />
tagName {
/* css rules */
}
#idName {
/* css rules */
}
@rafaelrozon
rafaelrozon / classSelector.css
Created June 18, 2015 00:39
class selector
.className {
/* css rules */
}
@rafaelrozon
rafaelrozon / descendantSelector.css
Created June 18, 2015 00:40
descendant selector
firstTag secondTag { /* css rules */ }
@rafaelrozon
rafaelrozon / childSelector
Created June 18, 2015 00:40
child selectors
parentTag > childTag { /* css rules */}
@rafaelrozon
rafaelrozon / pseudoClassSelector.css
Created June 18, 2015 00:41
pseudo class selector
tag:pseudoClassName { /* css rules */}
function getAllData(targetUrl) {
$.ajax({
url: targetUrl,
type: 'GET',
dataType: 'json',
success: function (data) {
// process data
},
error: function () {