Jessica Flikkie

Step 7

Step 7

Materials for your web page…

States of Display

There are four states of display that are helpful to know when dealing with media screens. These can help you determine how your text will flow on a page, especially in relation to images.

  1. None/Hidden: This display can be used to make en element invisible in a certain media screen. For example, you would want to use this display mode for your menu icon on larger media screens. Since your full navigation bar will show up just fine, you don't need the menu icon to be visible until the screen size is smaller.

  2. Block: A block display element will take up the full width of the screen. This means no other elements will show up on that same line. Examples of this type of display are divs, h1-h6, p, header, and footer.

  3. Inline: An inline element does not start on a new line and only takes up its necessary width. This is the default for all untagged text on an HTML page.

  4. Inline-block: This is used when you want to place blocks next to each other. It works very well for divisions, such as main and align, when you want them to be side-by-side instead of stacked one and top of the other.