Giter VIP home page Giter VIP logo

13-colorboxes-html's Introduction

representing colors in CSS

Multiple ways to specify colors

  1. by name - best for quick specification/experimentation to see something
  2. oct / hex - # followed by 3 or 6 digits from 0-f, each third represents red, green, blue
  3. rgb format - rgb(red-value, green-value, blue-value)

color systems

  1. rgb - light
  2. color names
  3. cmyk - pigment
  4. red blue yellow

protips

  • use the inspector to do experiments - save the good result into your code
  • Make sure /something/ is happening before trying to make /the real thing/ happen - console.logo
  • use patterns that you know how to use, then adjust to what you want?

number representations

You can represent a number in different ways.

Roman numerals - X decimal / base 10 - 10 binary / base 2 - 1010 hexadecimal / base 16 - a

base 10: 5293 'places' - each place is a power of 10 multiply the digit in that place by the place value and add them all up 5 * 1000 + 2 * 100 + 9 * 10 + 3 * 1

13 base 10: 1 * 10 + 3 * 1 13 base 2: 1 * 8 + 1 * 4 + 0 * 2 + 1 * 1 1101 base 3: 1 * 9 + 13 + 11 111 base 16: '13'=d * 1 d

0, 1, 2, 3, 4, 5, 6, 7, 8, 9, a, b, c, d, e, f

largest number in hex 116 + 1616 + 256*16 + ... 16^6 0..16777216.to_hex = hex color

layout

  • how things are represented visually
  • the walls of the house
  • the format for displaying on the page
  • how it's arranged
  • rows, columns, sections
  • overlapping sticky notes
  • blueprint <-- wireframe
    • layout is the implementation of the plan
  • Jean's definition: Making the boxes go where you want them to be

css properties that will be involved!

  • display
  • width / height could be involved:
  • position
  • top / left / bottom / right

ways to scooch a div over horizontally

  • put it inside a display:flex
    • justify-content ^^
  • left: 50%
  • margin:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.