Professional Documents
Culture Documents
Notes
Notes
List
1. Ordered list <ol> -- </ol>
2. Unordered list <ul> -- </ul>
3. Description list HW
image tag = <img src=" path to image " alt="" width="" height="">
attr tags
id all
class all
src img
href a
sub-tag tag
img figure
figcaption figure
p blockquote
cite blockquote
<blockquote cite="source">
</blockquote>
FlexBox
Flexbox is a great way to get more flexibility in your layouts and simplify
responsive layout design.
It makes it easy to align elements on a 2D plane and is pretty easy to use once you
get familiar with the main properties.
The first step is to set display: flex on a "container" element. The "children" in
the flex container become flex items.
A set of properties can be applied to flex containers, and have an effect on all
the items as a whole, and a different set of properties can be used to flex items
and have their impact on the targeted items.
Flex items can in turn also be flex containers for the elements it contains, making
it easy to create complex layouts.
Container
flex-direction = row, row-reverse, column, column-reverse
flex-wrap = wrap, nowrap, wrap-reverse
flex-flow(shorthand rotation) = flex.direction flex-wrap
justify-content(horizontal alignment) = flex-start, flex-end, center, space-around,
space-evenly, space-between
align-item(vertical alignment) = flex-start, flex-end, center, stretch, baseline
gap(shorthand rotation)(row/column spacing) = 10px
align-content(row spacing)(row alignment) = flex-start, flex-end, center, space-
around, space-evenly, space-between
Items(child)
order = any number, default 0
flex-grow = any number, default 0
flex-shrink = any number, default 1
flex-basis(width hides the overflow content but flex-basis increases the width
according to the content) = 100px, 10%
flwx(shorthand rotation) = order flex-grow flex-shrink flex-basis
align-self = stretch, flex-start, flex-end, center