Coder Social home page Coder Social logo

css-kenken's Introduction

title slug
Exercise: CSS Flexbox and Grid
/css-flexbox-grid-exercise

Exercise Repo

Objective

Recreate the 4x4 KenKen Board below using the HTML elements given in the index.html file for this exercise. In the end, the KenKen board with resemble the picture, and users with have the ability to put number answers into each square. The board will also be responsive to all screen sizes.

Example KenKen Board

Exercise 1

Steps are to be completed by writing css rulesets in your style.css file.

  1. Review the index.html file. Take note of the structure of the elements, class and id names.
  2. Style the body to display the width, height, margin, and background color that you want. Remember that the body encapsulates everything on the webpage so this will affect all elements being displayed.

Exercise 2

Steps are to be completed by writing css rulesets in your style.css file.

  1. Create a ruleset in your style.css file that selects elements with the classname grid
  2. Create a declaration that changes the display property of grid elements to grid
  3. Create a declaration that changes the grid-template-columns property of grid elements to repeat(4, 1fr)
  4. Create a declaration that changes the grid-template-rows property of grid elements to repeat(4, 1fr)

Exercise 3

Steps are to be completed by writing css rulesets in your style.css file.

  1. Create a ruleset in your style.css file that selects elements with the classname grid-items
  2. Create a declaration that changes the border property of grid-items elements to 0.1rem solid gray
  3. Create a declaration that changes the font size property of grid-items elements to 2rem
  4. Create a declaration that changes the background color property of grid-items elements to white

Exercise 4

Steps are to be completed by writing css rulesets in your style.css file.

  1. Create a ruleset in your style.css file that selects elements with the following ids: box3, box7, box10, box11, box12, box15
  2. Create a declaration that changes the border left property of the selected elements to 0.5rem solid black

Exercise 5

Steps are to be completed by writing css rulesets in your style.css file.

  1. Create a ruleset in your style.css file that selects elements with the following ids: box1, box2, box3, box4, box5, box8, box9, box10, box11
  2. Create a declaration that changes the border bottom property of the selected elements to 0.5rem solid black

Exercise 6

Steps are to be completed by writing css rulesets in your style.css file.

  1. Create a ruleset in your style.css file that selects elements with the classname prompt
  2. Create a declaration that changes the position property of the selected elements to absolute
  3. Create a declaration that changes the top property of the selected elements to 0%
  4. Create a declaration that changes the right property of the selected elements to 0%

Exercise 7

Steps are to be completed by writing css rulesets in your style.css file.

  1. Create a ruleset in your style.css file that selects elements with the classname answer
  2. Create a declaration that changes the width property of the selected elements to 50%
  3. Create a declaration that changes the height property of the selected elements to 50%
  4. Create a declaration that changes the text align property of the selected elements to center

Exercise 8

Steps are to be completed by writing css rulesets in your style.css file.

  1. Create a ruleset in your style.css file that selects elements with the classname special
  2. Create a declaration that changes the border property of the selected elements to none
  3. Create a declaration that changes the font size property of the selected elements to 2rem

Exercise 9

Steps are to be completed by writing css rulesets in your style.css file.

  1. Create a media query in your style.css file that will apply rulesets when the screen size is min-width: 475px
  2. Create a ruleset in your media query that selects elements the html element
  3. Create a declaration that changes the font size property of the html element to 16px

Exercise 10

Post KenKen Exercise

  1. Fully complete the Flexbox Zombies Learning Game by David Geddes

css-kenken's People

Contributors

bryantellius avatar samiali23 avatar tannerdrayton 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.