Skip to content

Instantly share code, notes, and snippets.

@kellishouts
Last active August 29, 2015 14:14
Show Gist options
  • Save kellishouts/b30f47efd8bfd59b8da8 to your computer and use it in GitHub Desktop.
Save kellishouts/b30f47efd8bfd59b8da8 to your computer and use it in GitHub Desktop.
Out of this World: Styling

Out of this World: Styling

Setup

  • Create a new branch from the Out of This World project.
  • Set up a server to run the project.
  • In your project directory, create a directory called 'stylesheets'.
  • Inside the stylesheets directory, create an external stylesheet called styles.css
  • In your index document, link to the external stylesheet.
  • Besides adding the link to the stylesheet, do not add any additional markup to the index file.
  • In the external stylesheet, style the page to meet the following requirements.

Requirements

  1. Give all the content a max-width of 900px and center the content on the page.
  2. Style the text and use at most 3 Google Fonts. You will have to @import your fonts into the styles.css file. Use at least font-size, color, and line-height (you can use more properties!).
  3. Use a background image
  4. Style the hover state of at least 1 item on the page
  5. Add padding and margins
  6. Utilize at least 1 CSS transition
  7. Use a border or partial border somewhere

DO!!!

  • Add additional styling if you want to!
  • Go above and beyond!

DO-NOTS!!!

  • Besides adding the link to the stylesheet, do not add any additional markup to the index file.
  • Do not use default fonts.
  • Do not style the properties 'display', 'visibility', and 'position' (for now).
  • Do not use flexbox sizing (for now).
  • Do not create a multi-column layout (for now).
  • Do not use SASS or LESS.
  • Do not use frameworks or libraries.
  • Do not use LiveReload.

Resources

Hard Mode

If you already know basic styling and want to focus on UI/Design, shout @ Kelli when done to get 'Design Directives'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment