Giter Club home page Giter Club logo

course-flexbox's Introduction

Why do you need flexbox?

The objective is to learn flexbox with the following tutorial: https://www.youtube.com/watch?v=2yJEkP2y4nY&list=PLM-Y_YQmMEqBxAQxxNW7J7-BTJdj_Ol3F&index=1

Float work flow

The container stops seeing the content, since it is not found in the document flow.

There are some provisional solutions for this, how to set clear: both.

Clauses

  • display: flex: [CONTAINER] flex container
  • flex-direction: [CONTAINER] indicates the main axis X or Y. By default is row
  • flex-wrap: : [CONTAINER] indicates whether the contained elements collapse or not
  • orden:: [ITEM] indicates a weight on an element. By default is 0
  • justify-content:: [CONTAINER] indicates the alignment in a container depending on the main axis
  • align-content:: [CONTAINER]
  • align-items:: [CONTAINER] indicates the aligment in a container depending on the cross axis
  • align-self:: [ITEM] indicaes the aligment in a item, with a diferent aligment on the main axis
  • flex-grow: [ITEM] control the excess space.
  • flex-shrink:: [ITEM] control the missing space
  • flex-basic:: [ITEM]
  • flex:: [ITEM] allows indicate grow/shrink/basic in one property

Sorting CSS properties

The order I use is as follows:

  • Layout Properties: (position, float, clear, display)
  • Box Model Properties_ (width, height, margin, padding)
  • Visual Properties_ (color, background, border, box-shadow)
  • Typography Properties: (font-size, font-family, text-align, text-transform)
  • Misc Properties: (cursor, overflow, z-index)

Interesting resources

course-flexbox's People

Watchers

James Cloos avatar

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.