ISDS 3105 Final Exam: Questions & Solutions (Rated
A+)
Flexible Box / flexbox Right Ans - CSS layout mode that provides an
efficient way to lay out elements in a container, so the elements behave
predictably when the container is resized or viewed on different screen sizes
flex container Right Ans - An element that has the CSS property display set
to 'flex' to create a block-level flex container or 'inline-flex' to create an inline
flex container. ex: <div style = "display: flex">
flex item Right Ans - a child element of a flex container that is positioned
and sized according to various CSS flexbox properties
flex-direction property Right Ans - defines the direction of flex items within
the container using values:
- row(default): left to right
- row-reverse: right to left
- column: top to bottom
- column-reverse: bottom to top
gap property Right Ans - defines the space between flex items
ex: gap: 10px;
justify-content property Right Ans - justifies the flex items within the
container using values: - flex-start (default): start at left - flex-end: start at
right - center: centered - space-between: A and C at ends and B in the middle -
space-around: like space-between but with space on left and right ends -
space-evenly: centered with even spaces on ends and between
flex-wrap property Right Ans - determines if or how flex items wrap onto
multiple rows when the container is not wide enough to hold all items, using
values: - nowrap (default): continues it direction it is going - wrap: wraps to
next line below - wrap-reverse: wraps to line above
A flex item's width is determined by the combination of three CSS properties:
Right Ans - 1. the flex-basis property sets the initial length of a flex item. the
,values can be 'auto' (the default), a percentage, or a length unit. the default
value 'auto' makes the flex item the same initial length as the content.
2. the flex-grow property sets a proportion that determines how much of the
available container space should be assigned to the item. the default is 0,
meaning the size should be based on the item's content.
3. the flex-shrink property sets a proportion that determines the item's
minimum size. the default is 1, meaning the size should shrink at the same
rate as other items when the container width shrinks. a value of 0 means the
item should not change sizes when the container width shrinks.
flex Right Ans - the shorthand property flex specifies flex-grow, flex-shrink,
and flex-basis together (ex = flex: 0 1 auto;)
Grid layout Right Ans - CSS layout mode that divides a webpage into a
rectangular grid in which to position page elements. ideal for designing two-
dimensional webpage layouts
grid container Right Ans - element that has the CSS property 'display' set to
'grid' to create a block-level grid container or 'inline-grid' to create an inline
grid
ex: <div style="display: grid">
grid item Right Ans - child element of a grid container that is by default
placed into a single grid cell
grid-template columns property Right Ans - defines the grid container's
number of columns and optionally the width of each column
ex: grid-template-columns: 50px 90px auto auto;
gap property (grid) Right Ans - defines the gap between each grid row and
column
ex: gap: 5px 25px; puts a 5px gap between each row and a 25px gap between
each column
grid-template-rows property Right Ans - defines the height of each row
ex: grid-template-rows: 20px 40px; makes the first row 20px tall and the
second row 40px tall
,justify-content property (grid) Right Ans - horizontally aligns the grid
items inside the grid container using values:
- start: aligns grid flush with the grid container's starting edge
- end: aligns grid flush with the grid container's ending edge
- center: aligns grid in the center of the grid container
- stretch: stretches the grid items to fill the grid container width
- space-around: places equal spacing between grid items with half the space
on either side of the grid container
- space-between: places equal spacing between grid items with no space on
either side of the grid container
- space-evenly: places equal spacing between grid items, including the sides of
the grid container
align-content property Right Ans - vertically aligns the grid items inside the
grid container using values:
- start: aligns grid flush with the grid container's starting edge
- end: aligns grid flush with the grid container's ending edge
- center: aligns grid in the center of the grid container
- stretch: stretches the grid items to fill the grid container height
- space-around: places equal spacing between grid items with half the space
on either side of the grid container
- space-between: places equal spacing between grid items with no space on
either side of the grid container
- space-evenly: places equal spacing between grid items, including the sides of
the grid container
A grid item may be placed in a specific row or column or span multiple rows
and/or columns using various following CSS properties: Right Ans - - the
grid-row property lists the grid item's starting and ending row line numbers.
ex: grid-row: ; makes the grid item start at row line 1 and end at row line
3, so the grid item spans 2 rows.
- the grid-column property lists the grid item's starting and ending column
line numbers. ex: grid-column: ; makes the grid item start at column line
1 and end at column line 4, so the grid item spans 3 columns.
- the grid-area property lists the grid item's starting and ending row and
column numbers. ex: grid-area: / ; makes the grid item start at row
line 1 and column line 2 and end at row line 3 and column line 4, so the grid
item spans 2 rows and 2 columns.
, grid-template-areas property Right Ans - specifies the grid layout using the
named grid items
position property Right Ans - gives developers more control over where
elements should appear in the browser. position has four possible values: -
static: Static positioning is the default positioning - relative: Relative
positioning positions the element relative to the element's default position -
fixed: Fixed positioning positions the element relative to the viewport in a
fixed location - absolute: Absolute positioning positions the element relative
to the nearest positioned ancestor.
viewport Right Ans - the visible area of a webpage, not including the
address bar, bookmark bar, tabs, etc.
Absolute positioning is similar to fixed positioning except: Right Ans - 1.
The position is based on the nearest positioned ancestor element that uses
fixed, absolute, or relative positioning. If no positioned ancestor element
exists, the element is positioned relative to the document body.
2. An absolute-positioned element scrolls with the document unless an
ancestor element is using fixed positioning.
z-index property Right Ans - used to specify a relative distance that orders
the appearance of elements. elements with higher z-index values are placed
on top of elements with lower z-index values
text-shadow property Right Ans - adds shadows to text and accepts four
values:
- offset-x: horizontal pixel offset of shadow
- offset-y: vertical pixel offset of shadow
- blur-radius: optional shadow blur (default is 0)
- color: optional shadow color (default is usually the current CSS color)
box-shadow property Right Ans - adds a shadow to the box around an
element using the following properties:
- inset: optional value that draws the shadow inside the box (default is outside
the box)
- offset-x: horizontal pixel offset of shadow
- offset-y: vertical pixel offset of shadow
- blur-radius: optional shadow blue (default is 0)
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller LeCrae. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $26.99. You're not tied to anything after your purchase.