Basic Code Training for Gianteagle.com

Bootstrap/Classes/Div/Spans/H1s-H6

Code Samples



Use of Headers, h1-h6
  • ***These need to be used properly and not just to assign styles or sizes to heading text. Assign headers correctly then if need be change styles and sizing.
  • Only 1 H1 per page, so when laying out a page keep this in mind.

    Some classes you can use to style your content. Any of the colors will make the font that color.
    class=“red blue black green yellow”

    Alignment Classes will align the font within that div.
    class=“left center right”

    Other basic classes include:
    class=“display-none underline no-disc text-underline hide-mobile hide-desktop marg-50 inline img image inline-block”

    Some bootstrap classes that will come in handy, (*note that bootstrap class should be placed on divs to work correctly and places within a row div, see example below for structure).
    Special Class I Made
    .col-lg-20 {width: 20%;}

    Everything you want in a row should be contained in a row div. Should equal 12 or 100%.
    Example:


    Code sample to understand structure:



    Output:

    h1-Page Header

    Some texty text about some shenanigans

    h2-Chapter Heading

    h3-Mini Section Heading, Component Header

    Giant Eagle Pecan Pie with blue background

    p-This is a sentence and we only want this word red.

    Link Text

    h3-Mini Section Heading, Component Header

    Giant Eagle Pecan Pie with blue background

    p-This is a sentence and we only want this word red.

    This is an H4

    This is an H5
    This is an H6

    Link Text

    Relative vs exact Links vs vanity vs alias

    Relative: (Only to be used within the same site, please always use this navigating around our site.)
    Example:
    Starting URL: /save
    Goes to URL: https://www.gianteagle.com/save

    Exact: (Exact URL, typically used if linking to external site. do not use these internally)
    Example:
    Starting URL: https://www.gianteagle.com/save
    Goes to URL: https://www.gianteagle.com/save

    Vanity/Alias: (Different URL than actual url, sort of a customer trick)
    Example:
    Starting URL: https://www.gianteagle.com/weekly-meal-plan
    Goes to URL: https://www.gianteagle.com/recipes

    Redirect: (Redirecting from our site to another site to make it look
    they are on our site)
    Example:
    Starting URL: www.GiantEagle.com/Dario
    Goes to URL: http://intro.mydario.com/gianteagle.php