Giter Site home page Giter Site logo

bootstrap-practivelanding-page's Introduction

Bootstrap 5 used clases in this proyect

Alt text

the idea of navabar is to display links from horizontal view in md and up brakpoints and center links with a toggler menu in small devices.

.container = in lg display will fit in devices > or = 992px to 960px

navbar-nav: "from Supported Content" for a full-height and lightweight navigation (including support for dropdowns). WHAT I UNDERSTEND IS: THAT THIS CLASS IS COVERIGNG FULL HEIGHT IF YOU PASS THE NORMAL ONE LINE NAVBAR. AT THE SAME TIME :ADDING THIS CLASS TO THE NAV TAG:

   <nav>
      <a href="">Link 1</a>
      <a href="">Link 2</a>
      <a href="">Link 3</a>
      <a href="">Link 4</a>
      <a href="">Link 5</a>
    </nav>
    RESULT = Link 1 Link 2 Link 3 Link 4 Link 5
    HORIZONTAL ROW DISPLAY in all breakpoints
<nav class="navbar-nav">
  <a href="">Link 1</a>
  <a href="">Link 2</a>
  <a href="">Link 3</a>
  <a href="">Link 4</a>
  <a href="">Link 5</a>
</nav>
RESULT = DISPLAY in all breakpoints
Link 1
Link 2
Link 3
Link 4
Link 5

d-flex flex-md-row justify-content-md-between text-center OK

THE TOGGLE MENU OR HAMBURGUER MENU

   <div class="border-top">
      <div class="navbar navbar-expand-lg container navbar-light">
        <a class="nombre-sitio navbar-brand d-lg-none fs-2 fw-bold text-uppercase" href="index.html">
          Forniture Store
        </a>
        <button class="navbar-toggler border-0" type="button" data-bs-toggle="collapse" data-bs-target="#navegacion">
          <span class="navbar-toggler-icon"></span>
        </button>
        <div id="navegacion" class="collapse navbar-collapse">
          <nav class="navbar-nav container d-flex flex-md-row justify-content-md-between text-center py-3">  
             ...
          </nav>
        </div>
      </div>
    </div>
<div class="border-top"></div> it's the principal container
<div class="navbar navbar-expand-lg container navbar-light"></div>
 Display or hide the toggler menu

navbar= add some ruleset styles to the navigation, like send hamb icon to the right in the sm brakpoint. navbar-expand-lg= set the size in wich navbar bar will display itself in an expanded form ** then lg display will fit in devices > or = 992px to 960px... at that breakpoint navbar will display horizontal, less than 992 will display verticla for small devices. Also if the navbar doesnt contain it, will not display the navigation links container = the size navbar-light= is the class that gives hamburger menu it's color

  <button 
  class="navbar-toggler border-0" type="button" data-bs-toggle="collapse" data-bs-target="#navegacion">
    <span class="navbar-toggler-icon"></span>
  </button>

.navbar-toggler = for use with our collapse plugin and other navigation toggling behaviors. (thte colapse an appearence of hamb menu). The button has a span with "navbar-toggler-icon", this icon changes when we click on it, showing an X or three bars. border-0 = deletes a border towards hamb menu data-bs-toggle and data-bs-target are used to make an action when you click on this button. span class="navbar-toggler-icon" = displays the icon itself but remember that has to had the color specifien in the div with navbar...

<div id="navegacion" class="collapse navbar-collapse">

The div "id=navegacion" makes the hamburguer menu works, it's linked with the class collapse from bootstrap. .collapse.navbar-collapse = for grouping and hiding navbar contents by a parent breakpoint.

THE CONCEPT OF: order-0, -1, -2 is the right and left place you can change order from original setup ALso they only works with d-flex

bootstrap-practivelanding-page's People

Watchers

The-Shugga'-Rush 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.