Skip to content

Instantly share code, notes, and snippets.

@RedSoxFan22
Created June 2, 2015 14:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RedSoxFan22/267cc1eb8df720762dd8 to your computer and use it in GitHub Desktop.
Save RedSoxFan22/267cc1eb8df720762dd8 to your computer and use it in GitHub Desktop.
CSS box model: content is on the inside. you can give it a witdth and height.
outside of content is padding.
outside of padding is border.
outside of border is margin.
right click "Inspect Element" to see and adjust border/padding/margins etc.
div id="verses" CSS #verses div { }
CSS #verses > div { } direct children, not just any ancestor
#verses > div:first-letter (pseudo selector. selecting the first letter only)
linear-gradient(takes three hex numbers
text-shadow
box-shadow: for the checkout button, just need two elements in box shadow
box-shadow: x-offset/y-offset/blur/width-of-shadow hsl(hue, saturation, lightness)
Font: use Helvetica or Sans Serif, for a cleaner look
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment