GDH2 Topics to research -

  1. All navbar - collapsing toggle not working in Firefox
  2. 2nd navbar - Why does the R side cut off "com" if there's not "sign up"?
GDH2 Comment - I built this web site to illustrate how a single web site can be designed to work well on any size screen, from phone to desktop.

I also built it as a test bed for my personal education and future reference!

"Bootstrap" is a new web development system developed in 2011. it was updated in 2013 (bootstrap 3), "moving to a mobile first approach and using a flat design."

"Mobile First" means start the design for the SM (small, like large phones) or XS (extra small screen, like small phones). Then adapt to larger screens.

Over 50% of web traffic is Mobile!

Bootstrap offers hundreds of predefined components which can be used to assemble a web page design: navigation bar, title box, buttons, typography, tables, forms, progress bars, panels, and thumbnails. Each element can have pre-defined colors, borders, text font, etc.

Bootstrap uses CSS (Cascading Style Sheets) and generates the final HTML code for all web browsers.

    This system offers 3 spectacular advantages:
  1. It automatically scales the format of the web page to adapt to different sized display screens. 4 columns of text or large graphics are not effective on a small screen like a phone.
  2. The "style" can be changed easily without any new coding, even a complete revamp..
  3. Only one web page (or set of pages) need to be designed, coded, maintained. and virtually no time is required for stylistic changes

Saves time and money!

Page design usually starts with a wireframe sketch that shows where different elements will be located.

Wireframe Page Layout

HTML (the actual code that browsers "translate" into what displays on the screen) used to be driven by Tables, now out of vogue. Bootstrap uses grids, made of rows and columns. Similar, but "grids" are usually easier to use and the big advantage of accommodating the tiny screen widths of phones.

GDH2 Comment - Each section below illustrates or explains (red "GDH2 Comment" panels) different elements.

GDH2 Comment - The "navigation bar" at the top is common because it adapts well to the small displays. The "navbar" automatically becomes 2 lines if it will not fit on 1 line. When the screen is too small to even accommodate is replaced by a navigation icon (aka a "hamburger") in the top right corner when the screen is EXTRA SMALL (mobile device).

Screenshots showing menu ("navbar") because it adapts well to the small displays. The "navbar" automatically adapts to larger/smaller screen width:

  • Only 1 "line" is used if the screen is wide enough to display everything -

    Large Screen Navbar

    Everything is easy to read

  • Simply shrinking everything to fit on a narrow screen would not work -

    Large Screen Shrunk

    Impossible to read

  • If the screen too narrow for that, 2 lines display everything -

    2 Line Navbar

    Everything is easy to read

  • Narrow Navbar Expanded
  • If the screen too narrow for that, the bar collapses to one line and a navigation icon (aka a "hamburger") appears in the top right corner.

    Click the icon to toggle back and forth between the two displays.


    Navbar with Hamburger Icon

    Easy to read, although "everything" does not show

Very clever!

LARGE SCREEN - Desktop, Notebook Drag screen edge to change size ===>

MEDIUM SCREEN- Laptop, Large Tablet Drag screen edge to change size ===>

SMALL SCREEN- Small Tablet, Big Phone Drag screen edge to change size ===>

X SMALL SCREEN - Phone Drag screen edge to change size ===>

Pixel Ruler

Panel "primary" Style

Panel "body" style = Panels can create a nicely framed box. The "body" panels are often coupled with the other styles, most of which are considered "header" types of panels.

In some themes the stylistic differences between different panels is large, in others they are identical. Most themes use a heading "h3" for all the panels except body, and in some themes "h3" is very large, so I modified text in my "danger-panel" comments to "strong".

Panel "info" Style


The inside of any panel, "header" type or "body", can contain text, links, images, buttons, and special formatting.


FYI -Gobbledygook text is used for filler - Latin makes it less distracting? It's used in lots of places, like... Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit. >Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus.

Panel "success" Style

Panel "warning" Style

Panel "danger" Style

LARGE SCREEN - Desktop, Notebook Drag screen edge to change size ===>

MEDIUM SCREEN- Laptop, Large Tablet Drag screen edge to change size ===>

SMALL SCREEN- Small Tablet, Big Phone Drag screen edge to change size ===>

X SMALL SCREEN - Phone Drag screen edge to change size ===>

Pixel Ruler

300x200

Thumbnail Design

Generally the "thumbnail" style includes a picture at the top and text in a framed box.

Buttons and other elements can be added.

This "thumbnail" style can be very useful,. The image itself can be a link to another page, another location on the same page, or a full-screen version of the image.

I've included several button styles to display a few of the possibilities.


Meet Someone Call Shrink
300x200

Random Images? Hit "refresh"

The images here are random images from several of many possible categories. They will probably change if you hit screen refresh! Who knew there would be a domain dedicated to generating random images for sample web sites?

Fly Drive Walk

Thumbnail Image Size

Images can be any shape and located anywhere inside the "thumbnail box."

Click image to view larger picture (in a new tab of your browser)
It is cold!

This is the T-Bar at the top of the glacier at Whistler. Brr, I'm getting cold just looking at it!

Go to Gym I'm too Lazy!

GDH2 Comment - Multiple Nested Rows and Columns SCREENSHOTS - require less work to see the effect (Skeptical? See actual column layout in next section)

Desktop Screen (Left 33% part)

Small Phone Display

  • On the small screen, the content of each "column" is displayed at full width.
  • Each "column" is displayed in sequence.

LARGE SCREEN - Desktop, Notebook Drag screen edge to change size ===>

MEDIUM SCREEN- Laptop, Large Tablet Drag screen edge to change size ===>

SMALL SCREEN- Small Tablet, Big Phone Drag screen edge to change size ===>

X SMALL SCREEN - Phone Drag screen edge to change size ===>

Pixel Ruler

Multiple Nested Rows & Columns (there is no limit to the number)

NOTE: The Row/Column labels and where the row/column will appear. Shrink the browser screen to Small or X Small to see changes.

Easier Design & Maintenance

(R2 C1 - Displays full width on phone, 2nd, after R1)

Sample Layout of Smaller Columns

The viewing problem on small screens is readability. The examples below will illustrate the problem, and the cure.


Note: The rules for rows and columns in this example apply ONLY to Large & Medium screens. Each of these columns will display sequentially at full-width when the screen is Small or X Small. Otherwise it all would be unreadable.


Very Small Column Example

This column = 4/12 of the available space. The column to the right = 8/12 wide.

Let's break this column (which itself = 4/12 of whole screen) down further, even though it's impractical.


(R2 C1 C1 - Displays full width on phone - 3rd)

This uses 2/12 of space.

(R2 C1 C2 - Full width on phone - 4th)

Column is 4/12 of available space, just 11% of width of whole screen - too small on a phone.

(R2 C1 C3 - Displays full width 5th on phone screen)

This column is defined as 6/12 of the available space. Any column can be further divided, so let's do it.


(R2 C1 C3 C1 - Full width on phone - 6th)

4/12 of available space, 5.5% of screen


(R2 C1 C3 C1 - Full width on phone - 7th)

8/12 of the available space, about 11% of total screen width.

Sports Image, 100 pixels wide



(R2 C2 - Displays full width, 8th on phone screen)

Style Flexibility

Change one "Theme" file to completely change the look of the site!

The code describes the content and the basic layout but the "style" is independent.

Sample themes can be viewed at BootSwatch (this link does work). The differences can be spectacular!


SuperHero Theme

SuperHero

(R2 C2 C2 - Displays full width, 10th on phone screen)

United Theme

United


LARGE SCREEN - Desktop, Notebook Drag screen edge to change size ===>

MEDIUM SCREEN- Laptop, Large Tablet Drag screen edge to change size ===>

SMALL SCREEN- Small Tablet, Big Phone Drag screen edge to change size ===>

X SMALL SCREEN - Phone Drag screen edge to change size ===>

Pixel Ruler

Named Colors By Hue for "background-color"

In all cases below, the font is default size and text color is default, black, or white (for contrast with certain background colors)

HTML has 140 "Named Colors"

Theses are the "background-color" ranges that most interest me.

"Reds" Arranged by Hue

Reds =LightCoral

Reds =Tomato

Reds =DeepPink

Reds =Red

Reds =Fuchsia

Reds =OrangeRed

Reds =PaleVioletRed

Reds =MediumVioletRed

Reds =IndianRed

Reds =Crimson

Reds =Brown

Reds =FireBrick

Reds =DarkRed

Reds =Maroon

Blues Arranged by Hue

Blues = AliceBlue"

Blues = LightSteelBlue"

Blues = PowderBlue"

Blues = LightBlue"

Blues = LightSkyBlue"

Blues = SkyBlue"

Blues = CornflowerBlue"

Blues = DeepSkyBlue"

Blues = SteelBlue"

Blues = CadetBlue"

Blues = DodgerBlue"

Blues = MediumSlateBlue"

Blues = SlateBlue"

Blues = BlueVioLet"

Blues = RoyalBlue"

Blues = blue"

Blues = MediumBlue"

Blues = DarkBlue"

Blues = DarkslateBlue"

Blues = MidnightBlue"

"Yellows" Arranged by Hue

Yellows = Beige

Yellows = LightYellow

Yellows = LightGoldenRodYellow

Yellows = LemonChiffon

Yellows = Cornsilk

Yellows = Yellow

Yellows = PaleGoldenRod

Yellows = Khaki

Yellows = GoldenRod

Yellows =Gold

Grays Arranged by Hue

Grays = LightGray"

Grays = DarkGray"

Grays =LightSlateGray"

Grays = SlateGray"

Grays = Gray"

Grays = DimGray"

Grays = DarkSlateGray"

Grays = Black"


Automatic Image Sizing

(drag screen larger or smaller)

Full Size 1280
50% Size 640w
33% Size 426w
25% Size 320w

Paradise Trail at Mad River Glen

LARGE SCREEN - Desktop, Notebook Drag screen edge to change size ===>

MEDIUM SCREEN- Laptop, Large Tablet Drag screen edge to change size ===>

SMALL SCREEN- Small Tablet, Big Phone Drag screen edge to change size ===>

X SMALL SCREEN - Phone Drag screen edge to change size ===>

Pixel Ruler


Bootstrap Class Lab #1 - G Douglas Hobkirk II


Music Store

Album Title

Artist

This is what the final solution should look like. The coloring will be different based on the theme you select. This is what the final solution should look like. The coloring will be different based on the theme you select. This is what the final solution should look like. The coloring will be different based on the theme you select.

End of Bootstrap Class Lab #1

Author

Copyright 2015 by G. Douglas Hobkirk II (GDH2)

Acton, Massachusetts, USA

Test # 6 at 17:50