Coder Social home page Coder Social logo

aldrinseanpereira / fcc-technical-documentation-page Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 22 KB

mini project of the RWD certification

Home Page: https://aldrinseanpereira.github.io/fcc-technical-documentation-page/

License: Apache License 2.0

HTML 90.69% CSS 9.31%
css html5

fcc-technical-documentation-page's Introduction

fcc-technical-documentation-page

mini project of the RWD certification

  • The MOST FRUSTRATING project so far of the certfication, but I definitely learned from my mistakes

  • Easy part : Making everything look nice like borders, background, HTML structure

  • Hard part : to position the navigation and the text-content.

  • Temporary fix : I eventually had to use relative and absolute positioning to get the job done

  • The ACTUAL SOLUTION for the problem of positioning would be like this:

    • in HTML we have a div which contains nav and main
    • in CSS make the default positions to be mobile first, use flex-direction: column so nav on top and main on bottom
    • we want everything to fit the full viewport so let body be 100vh (meaning 100% of viewport height)
    • and let #container (having nav and main) be 100% height
    • we also want the nav and main to be vertically scrollable so set overflow-y: auto for them in CSS
    <body>
       <div id="container">
         <nav></nav>
         <main></main>
       </div>
    </body>
    body {
    height: 100vh;
    }
    
    #container {
       display: flex;
       flex-direction: column;
        height: 100%;
    }
    
    nav, main {
     overflow-y: auto;
    }
    • Then add a media query for larger screens, use flex-direction: row so nav on left and main on right
    @media(min-width: 1000px) {
      #container {
        display: flex;
        flex-direction: row;
      }
    }

fcc-technical-documentation-page's People

Contributors

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