Skip to content

Instantly share code, notes, and snippets.

chriscoyier / input.scss
Created Feb 26, 2021
Generated by
View input.scss
body::before {
content: "\f19c";
View style.css
body {
font-family: "Trebuchet MS", sans-serif;
View social.php
<div class="social-menu">
<h1>Social Media Button Hover Effect</h1>
<?php if (get_field('twitter')): ?>
<a href="<?php the_field('twitter'); ?>">
<span class="link-label">Twitter</span>
View brewlist
atk git-credential-netlify libksba nspr redis
autoconf git-lfs libpng nss ruby
automake glib libtiff openssl ruby-build
cairo gobject-introspection libtool openssl@1.1 ruby@2.6
cmake graphite2 libxml2 pango sphinx-doc
dnsmasq gtk+ libyaml pcre sqlite
fontconfig harfbuzz lzo pixman wget
freetype icu4c makedepend pkg-config xz
fribidi jpeg mkcert python yarn
gdbm libffi mysql@5.6 python@3.8
chriscoyier / index.pug
Last active Jan 2, 2020
Playing with GistPad
View index.pug
# Hello World!
View gulpfile.js
// gulpfile.js
// Initialize modules
const gulp = require('gulp');
// Importing all the Gulp-related packages we want to use
const concat = require('gulp-concat');
const sourcemaps = require('gulp-sourcemaps');
const sass = require('gulp-sass');
//const browserSync = require('browser-sync');
//const server = browserSync.create();
const child = require('child_process');

The top property in CSS goes hand in hand with positioning. By default, elements are static positioned in which the top property has no effect whatsoever. But when the positioning of an element is relative, absolute, or fixed, the top value plays a big role.

div {
  top: value (px, em, %, pt, etc) || auto || inherit;   /* can be negative */

The value for top is any of the valid lengths of CSS.

"The Nudge" (Relative Position)

View ip.json
"continent":"North America",
"address_format":"{{recipient}}\n{{street}}\n{{city}} {{region_short}} {{postalcode}}\n{{country}}",
View embed.js
const App = () => {
return (
penTitle="My sweet demo"
description="Renders a barebones React component"