More Cascading Style Sheets

More Cascading Style Sheets

memorize.aimemorize.ai (lvl 286)
Section 1

Preview this deck

px

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

0

All-time users

0

Favorites

0

Last updated

7 years ago

Date created

Mar 1, 2020

Cards (54)

Section 1

(50 cards)

px

Front

Pixel, it varies with display resolution

Back

Prevent content from overlapping other content, make it easier to keep footer content at the bottom of the page

Front

Advantages of using Float

Back

Absolute Units

Front

Measurements that have predefined meanings or real-world equivalent

Back

Wrap the content in a div to which we can set a specific pixel width, specify pixel values for the floated elements

Front

Strategy for two-columns fixed width layout

Back

Fixed Layouts

Front

Layouts that stay put at a specific pixel width regardless of the size of the browser window or text size

Back

Line Lengths

Front

Measure of the number of words or characters in a line of text

Back

Dependent on the order in which the elements appear in the source

Front

Disadvantage of using Float

Back

Relative, Absolute

Front

Two Categories of Measurements

Back

Fixed Layouts

Front

Created at a specific pixel width as determined by the designer

Back

10-12 words

Front

Optimal line length (in words)

Back

Set the left and right margins on the #wrapper container to auto which will keep the whole page centered

Front

Strategy for two-columns fixed width centered layout

Back

Set widths on all three-column elements and float them to the left, clear the footer to keep it at the bottom of the page

Front

Strategy for three-columns fluid layout

Back

Elastic Layouts

Front

Layouts that resize proportionally based on the size of the text

Back

Hybrid Layouts

Front

Use a combination of pixel, percentage, and em measurements

Back

Line lengths can get very long and uncomfortable to read on large monitors, less predictable, more difficult to achieve whitespace, more math involved in calculating measurements

Front

Disadvantages of fluid layouts

Back

Percentage values, omit the width values

Front

Two ways of creating fluid layouts

Back

Liquid Layouts

Front

Other term for fluid layouts

Back

Fluid Layouts

Front

They follow the default behavior of the normal flow

Back

rem

Front

Root em, equal to the em size of the root element

Back

Fixed, Fluid, Elastic, Hybrid

Front

4 Page Layout Strategies

Back

The need to pick a width, decision about the position of the fixed-width layout in the window

Front

Points to consider when designing Fixed Layouts

Back

Fluid Layouts

Front

Layouts that resize proportionally when the browser window resizes

Back

Fixed Layouts

Front

Allow the designer to control the relationship of page elements, alignment and line lengths

Back

Provides consistent layout experience while allowing flexibility in text size, tighter control over line lengths than liquid and fixed layouts

Front

Advantages of Elastic Layouts

Back

ch

Front

Zero width, equal to the width of zero in the current font and size

Back

Elastic Layouts

Front

If the user makes the text larger, the box that contains it expands proportionally. Likewise, if the user likes her text size very small, the containing box shrinks to fit

Back

pc

Front

Picas (1 pica = 12 points)

Back

60-75

Front

Optimal line length (in characters)

Back

Keep with the spirit and nature of the medium, avoid potentially awkward empty space, users can control the width of the window and content on desktop browsers, no horizontal scrollbars

Front

Advantages of Fluid Layouts

Back

vw

Front

Viewport width unit, equal to 1/100 of the current viewport width

Back

pt

Front

Points (1/72 of an inch in CSS 2.1)

Back

Elastic Layouts

Front

Expand or contract with the size of the text

Back

Simplified Markup and Styles, Color Coding, Headers and Footers, Make it Yours

Front

4 Page Layout Techniques

Back

pixel

Front

Measurement equal to 1/96 of an inch in CSS3

Back

cm

Front

Centimeters

Back

ex

Front

x height, the height of lowercase "x" in font

Back

Elastic Layouts

Front

The result is that line lengths stay the same regardless of the text size

Back

Relative Units

Front

Measurements based on the size of something else

Back

vh

Front

Viewport height unit, equal to 1/100 of the current viewport height

Back

Predictable layout, easier to design and produce, behaves the way the majority of web pages behave

Front

Advantages of fixed layouts

Back

em

Front

Equal to the current font size

Back

vm

Front

Viewport minimum unit, equal to the value of vw or vh, whichever is smaller

Back

Content on the right edge will be hidden if the browser window is smaller than the page, awkward amount of left over space on large screens, line lengths may grow awkwardly short at very large text sizes, takes control away from the user

Front

Disadvantages of fixed layouts

Back

mm

Front

Milimiters

Back

960

Front

Width of most sites in pixels

Back

Images and videos don't lend themselves to automatic rescaling along with the text and the rest of the layout, the width of the layout might exceed the width of the browser window at largest text sizes, not as useful for addressing device and browser size variety, more complicated to create than fixed-width layouts

Front

Disadvantages of Elastic Layouts

Back

Hybrid Layouts

Front

Layouts that combine fixed and scalable areas

Back

Fluid Layouts

Front

The page area and columns within the page get wider or narrower to fill the available space in the browser window

Back

in

Front

Inches

Back

Set widths on both column elements and float them to the left, clear the footer to keep it at the bottom of the page

Front

Strategy for two-columns fluid layout

Back

Section 2

(4 cards)

Apply widths and floats to all three column elements, use a negative margin to drag the left column across the page into the left position

Front

Strategy for any order column using negative margins

Back

Contain the whole page in a #wrapper so it can be fixed and centered, Use pixel values for the measurements

Front

Strategy for three columns, positioned, fixed layout

Back

Positioning

Front

Can also be used to arrange columns in both fluid and fixed-width pages

Back

Wrap the three content divs in a div to serve as a containing block for the three positioned columns, Give the column elements widths and position them in the containing div element

Front

Strategy for three columns positioned, fluid layout

Back