Skip to content

Instantly share code, notes, and snippets.

CSS Tutorial

Float *Float allows elements to be pushed to the left or right side of it's container, allowing other elements to wrap around it. *Elements are floated horizontally, this means that an element can only be floated left or right, not up or down. *The elements after the floating elemet will flow around it. *The elements before the floating element will not be affected. *The 'clear:left, clear:right, clear:both' property specifies which side of an element other floating elements are not allowed.

Position Static/ Relative / Absolute

@drewfwest
drewfwest / 0_reuse_code.js
Created March 12, 2014 23:52
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@drewfwest
drewfwest / grocery.rb
Last active January 3, 2016 20:39
GPS 2.2 Grocery List App
# Your name:
# 1. Drew West
puts "\nWelcome to the GROCERY LIST!"
list = {}
while 0 == 0
@drewfwest
drewfwest / 0.2.1-boggle_class_from_methods.rb
Last active December 31, 2015 22:09 — forked from dbc-challenges/0.2.1-boggle_class_from_methods.rb
Create A Boggle Board Class Challenge
=begin
We've already worked with hashes and arrays as data structures.
They are handy ways of collecting and organizing data,
and ideal for modeling a group of objects.
In this challenge, we're going to model a grid or a board that has
coordinates for each of it's cells. A logical way of modeling a board
is to use a nested array, where a row and column are its coordinates.
Let's explore a boggle board as an example.