Coder Social home page Coder Social logo

friendbook_with_grid's Introduction

Friendbook with Grid

In this project, we're going to switch from using a <table> for layout to a better system; a grid of <div>s that we'll float next to one another.

Setup

  1. Click the "Clone or download" button.
  2. Select "Download ZIP".
  3. Extract and open the entire folder in Atom.
  4. Open with_table.html in Chrome.
  5. This was my solution to the homework. Study it and think up questions. CSS style rules are located in our_styles.css.
  6. Follow along with the video linked from Canvas
  7. We will explore some more CSS, the following diagram of the HTML Box Model will be useful:

From table to grid

We translate the basic <table> layout to one that uses the <div> block element. The <div> element is simply a way to contain or encapsulate some html within a block for some common styling purpose.

  1. Open up with_grid.html
  2. Each <table> element has been translated to a <div> element as follows:
table element grid element
<table> <div class=“main-content”>
<tr> <div class=“row”>
<td class="main-content-cell" colspan="6”> <div class=" main-content-cell colspan-6">

friendbook_with_grid's People

Contributors

ddedde 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.