Git Product home page Git Product logo

flexbox-layout-exercises's Introduction

CSS Layout Exercises

These exercises are designed to practice doing layout using CSS with flexbox.

Problem #1 - "Holy Grail" Layout

Inside a file called holy-grail.html, create a Holy Grail layout using flexbox that resembles this image.

NOTE: Due to the nature of this problem, there are many examples of this already done on the Internet. Honor system here; do not cheat. This is an example of a "real world" problem.

Problem #2 - Chessboard

Inside a file called chessboard.html, create a chessboard using HTML and flexbox. The board should work at any width for the outermost container.

For an extra challenge, add some chess pieces on their starting positions. How can you do this semantically?

Problem #3 - Piet Mondrian Painting

Piet Mondrian was a 20th century Dutch painter whose paintings emphasized simple geometric elements.

Inside a file called mondrian.html, create this Piet Mondrian painting using HTML and flexbox.

If you're having trouble creating the whole thing, pick a "chunk" of the painting and work on just that. Then pick another "chunk" and do that, etc. How can you combine your chunks into a single image? (think: HTML tree structure).

Some students have found printing the image and numbering each rectangle helpful.

License

ISC License

flexbox-layout-exercises's People

Contributors

oakmac avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

flexbox-layout-exercises's Issues

provide chessboard markup?

Should provide the desired chessboard markup so the focus is on the CSS.

Specifically: the only size information should be on the .board element; the rows and squares should be proportional via flex.

Also @oakmac wrote this ๐Ÿ˜‚

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.