Git Product home page Git Product logo

html-css-group-ex-mar-22's Introduction

We will be reusing project files from last time.

Start by editing the index.html and style.css files in this repo. Add the style code at the end of the style.css file.

We will be refactoring our code, to build a better layout.

Inside of body, add a div with id "body-container";

  • move the header tag in it;

  • add a div with class "main-container" inside the body-container div

  • create an aside tag with class "sidebar" inside the main-container div, with 5 p tags, with text "Item 1" - "Item 5" in it

  • move the main tag and its contents inside the div main-container, after the aside tag.

  • move the footer tag inside the "body-container div.

  • style the aside tag with display flex, flex-direction column, align-items: center;

Style the main tag with:

  • flex: 1;

Style the "body-container" div:

  • add a min-width: 100%; to it
  • make it display flex, flex-direction column;
  • make the header align to center, by using align-self: center;
  • make the footer align to the left side of the screen, by using align-self: start;

Style the "main-container" div:

  • make it display flex
  • justify-content space-between

Style the sidebar with:

  • flex: 0.3;
  • display flex, flex-direction column, align items center

html-css-group-ex-mar-22's People

Contributors

doublemacro avatar

Watchers

 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.