Section 1

Preview this deck

overflow

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

1

All-time users

1

Favorites

0

Last updated

1 year ago

Date created

Mar 1, 2020

Cards (90)

Section 1

(50 cards)

overflow

Front

"overflow" property controls what happens to content that overflows its box can be set to the following values: - hidden (hide overflow content) - scroll (scrollbar added) - visible (overflow displayed outside of containing element)

Back

horizontal margins add,

Front

so add the right and left margin sizes

Back

multiple selectors

Front

h1, .menu{ font-family: Georgia; } (both h1 and .menu elements will be georgia)

Back

box model

Front

comprisesa set of properties used to create spacea round and between html elements

Back

content

Front

has height and width

Back

margin collapse

Front

margins collapse (but top and bottom padding does not)

Back

position

Front

change default position of an element

Back

classes can be reusable

Front

ids can not

Back

z-index

Front

controls how far back/forward an element is on the page z-index: 1; z-index: 2; ect

Back

border radius

Front

p{ border: 3px solid coral; border-radius: 5px; } to create perfect circle: border-radius: 100%

Back

<style> tag

Front

write a section of CSS code in HTML placed inside <head>

Back

vertical margins collapse,

Front

so the space between vertically adjacent elements is eequal to the larger margin

Back

!important

Front

even more specific than IDs will override any stile should almost never be used ex: .description h5{ color: teal !important; }

Back

display (block)

Front

not displayed on the same line as surrounding content fill entire width of page unless specified, are the height necessary to fit content inside them elements that are block-level by default: <h1>-<h6>, <p>, <div>, <footer>

Back

when font has two or more words

Front

put it in quotes

Back

padding

Front

space between content and border can specify padding-top, right, bottom, or left you can specify how much padding should be on each side in one declaration padding: 6px 11px 2px 3px (clockwise) padding: 5px (top and bottom) 10 px (left and right) ^this applies for margins too

Back

RGB

Front

numbers describe mix of red green and blue color: rgb (143, 188, 143)

Back

tag name

Front

the word/character between <> CSS syntax for <p> is p{

Back

display (inline)

Front

displays content on the same line as the content surrounding it, including the anchor tag

Back

ID name

Front

use if an HTML element needs to be styled uniquely with id attribute <h1 id= "large title"> ... </h1> #large-title{ }

Back

auto

Front

the margin property that allows you to center content div{ margin: 0 auto; } ^will center content 0 sets top and bottom margins to 0px and auto makes it centered (in order to center an element, a width must be set for the element)

Back

float

Front

left: move elements as far left as possible right: move elements as far right as possible

Back

<link>

Front

link CSS file to HTML with <link> - placed within <head> - self closing tag <link href= "url" type= "text/css" rel= "stylesheet"> if CSS file is in the same directory as HTML file, use relative path instead of url <link href= "./style.css" type= "text/css" rel= "stylesheet">

Back

CSS can select multiple elements by their rag, class, and ID

Front

order of power: ID, classes, tags you should always use least specific style possible

Back

position (absolute)

Front

all other elements on page will ignore the element, and the element will be positioned relative to its closest parent element can use offset properties top, bottom, left, right (in px)

Back

"color"

Front

styles foreground color

Back

multiple classes

Front

separate with space

Back

resetting defaults

Front

*{ margin: 0; padding: 0; } resets default margin and padding values of all html elements

Back

visibility

Front

can be used to hide items from view you can make the visibility of an element "hidden" or "visible"

Back

fixed

Front

fix an element to a specific position (regardless of scrolling)

Back

float (clear)

Front

clear specifies how elements should behave when the bump into each other - left: left side of element will not touch any other element - right: right side of element will not touch any other element - body: neither side of element will not touch any other element -none: the element can't touch either side

Back

display (inline-block)

Front

can appear next to each other and specify height and width ex: images are default inline-block

Back

property

Front

property you'd like to style (size, color, ect)

Back

value

Front

value of the property (18px, blue)

Back

default font for HTMl

Front

times new roman

Back

display

Front

<strong> <em> <a>

Back

boder

Front

can be set with width, style and color - width: thickness style: none, dotted, solid, ect p{ border: 3px solid coral; } default border: medium none color

Back

nested elements

Front

ex: lists nested elements selected with (for example): .main-list li{ }

Back

inline styles

Front

make it possible to write CSS code directly within HTML code add "style" attribute and CSS styles (end with ;) ex: <p style= "color: red;"> I'm learning code </p>

Back

height and width of content can be set to

Front

pixels or percentage

Back

HSL

Front

numbers describe hue saturation and lightness color: hsl(120, 60%, 70%)

Back

.css file

Front

keep style code separate from HTML

Back

box model

Front

Back

position (relative)

Front

position an element relative to its default static position on the web page can use offset properties top, bottom, left, right (in px)

Back

Adding more than one tag, class, or id to a CSS selection

Front

increases the specificity of the CSS selection

Back

HTML elements can have attributes

Front

"class" attribute is common HTML: <p class= "brand"> Sole Shoe </p> CSS: .brand { }

Back

named colors

Front

words describe color

Back

New box model

Front

"content-box": the default box model "border-box": resets box model -height and width remain fixed -border thickness and padding will be included in box (so overall dimensions don't change)

Back

background image

Front

.main-banner{ background-image: "https://ww....." }

Back

chaining selectors

Front

combining multiple selectors h1.special{ }

Back

Section 2

(40 cards)

justify-self

Front

how a single item should position itself with respect to the row axis

Back

to set up a grid

Front

you need a grid container (parent element) and grid items (child element) must set HTML element's "display" to "grid" (for block-level grid) or "inline-grid" (for inline grid)

Back

grid-auto-columns

Front

specifies the width oft he columns added implicitly to the grid

Back

letter-spacing

Front

changes how far apart individual letters are

Back

grid-gap

Front

set row and column gap at the same time

Back

font-style

Front

can make text appear in italics

Back

grid-template-rows

Front

defines the number of rows and sets each row's height (by default, rows are sized to fit evenly in the grid) can define size of rows in px or as percentage of entire grid's height

Back

grid-area

Front

will set starting and ending positions for rows and columns grid-area: 2 / 3 / 4 / span 5; order: 1. grid-row-start 2. grid-column-start 3. grid-row-end 4. grid-column-end

Back

grid-template

Front

can replace grid-template-columns and grid-template-rows grid-template: 200px 300px / 20% 10% 70% (rows come first)

Back

can also use

Front

hex colors

Back

align-content

Front

how groups of elements should spread across the column axis

Back

linking fonts

Front

add font to <head> in HTML using <link> and href <head> <link href= "https://fonts.google..." type= "text/css" rel="stylesheet"> </head> or @font-face property

Back

grid-column works same as rows

Front

can use "span" to start or end a column or row relative to its other end grid-column: 4 / span 2; begin in column 4 and take up 2 columns (4 and 5)

Back

align-items

Front

how individual elements should spread across the column axis

Back

justify-items

Front

how individual elements should spread across the row axis

Back

local fonts

Front

can be added to a document with the @font-face property and the path to the font's source

Back

grid-auto-flow

Front

specifies which direction implicit elements should be created

Back

opacity

Front

hsla (34, 100%, 50%, 0.1); rgba (55, 66, 77, 0.33); color: transparent value for half transparent = 0.5

Back

grid-template-areas

Front

specifies grid named grid areas

Back

font-weight

Front

property that controls weight of text

Back

grid-row-gap and grid-column-gap

Front

will put blank space between every row and column in the grid

Back

fr

Front

fraction sizing unit can define columns and rows as a fraction of the grid's length and width

Back

line-height

Front

used to modify vertical spacing between lines of text

Back

Google Fonts

Front

provides free fonts that can be used in an HTML file with the <ling> tag or the @font-face property

Back

minmax( )

Front

can prevent a row or column from getting too big or small when grid resizes based on web browser

Back

justify-content

Front

how groups of elements should spread across the row axis

Back

text-align

Front

changes where text is horizontally on page

Back

grid layouts are 2D

Front

they have a row, or inline, axis and a column, or block, axis

Back

"back-ground color"

Front

styles background color

Back

grid-auto-rows

Front

specifies the height of rows added implicitly to the grid

Back

fall back fonts

Front

used when a certain font isn't installed on your computer

Back

CSS grid

Front

grid can be used to lay out entire web page Whereas Flexbox is mostly used for positioning items in a one dimensional layout, CSS grid is mostly useful for 2D layouts, providing many tools for aligning and moving elements across rows and columns

Back

align-self

Front

how a single element should position itself with respect to the column axis

Back

grid-row-start and grid-row-end

Front

make single grid elements take up multiple rows

Back

word-spacing

Front

changes how far apart individual words are

Back

typography

Front

the art of arranging text on a page

Back

grid-template-columns

Front

define columns of a grid can define size of columns in px or as percentage of entire grid's width

Back

grid-row

Front

shorthand for grid-row-start and grid-row-end

Back

repeat ( )

Front

will duplicate the specifications for rows or columns a given umber of times useful with fractions can have multiple values ex: grid-template-columns: repeat (2, 20px 50px) will create 4 columns where first and third columns will be 20px wide and the second and fourth will be 50px wide

Back

serif

Front

have extra details on ends of letters sans-serif fonts do not

Back