yes keep it at the top of the css file so all you would have is
@import "css/example.css";
Back
what is a descendent selector
Front
if you have a <span> nested inside a <header>
you would create your css file to look like
header span {
}
Back
keywords
Front
words such as "center or none" etc
Back
@media screen and (min-width: 480px) {
{
Front
This is saying that if it is a media scree (iphone, ipad) and the minium width hits 480 px it should create a break point
480 px is usually a breakpoint for smart phones
Back
can an element also have multiple classes assigned to it?
Front
yes
Back
rel attribute stands for what?
Front
the relationship between documents
Back
How do you ensure when someone clicks on a link that it goes to the right page (ex: click on the "about" from the "contact us"
Front
you change the class="selected" everytime you create a new page
<a href="contact.html" class="selected">Contact Us</a></li?
Back
what is a selector
Front
the part that targets html elements, targets the element we actually want to style
Back
what makes up a css rule?
Front
the selector and declaration block
Back
how are class selecters identified
Front
defined with the "." character defined by the class name
Back
what it means to write inline styles CSS
Front
writing the style directly into the HTML document via style attributes
Back
when linking a css file what does the href value do
Front
points to the location of the css file
Back
what is a css import statement @import?
Front
allows us to link to a style sheet, we can import css from other style sheet.
Back
three part of a responsive web design
Front
Fluid images, fluid grids, media queries
Back
hexadecimal numbers RGB
Front
First two are red, middle are green, last are blue
Back
pseudo-classes can
Front
target elements dynamically based on user interaction, an element's state, and more.
Back
how do you tag an ID in an element
Front
<div id="primary" >
Back
max-width
Front
want width to be no larger than X across but it could be smaller
Back
if you have margin '5px, 0, 0, 0' how are the 4 formatted
Front
top right bottom left
Back
how do you set a new media query
Front
@media screen and (min-width: "pixel size") {
}
Back
what does the css link look like in the head section
Front
Back
what is a declaration block
Front
{ X: Y'}
Back
can multiple elements share the same class
Front
yes
Back
what is the property inside a deck block and what is the value
Front
the property { X <--- indicates the part of the element we want to change and the value describes how we want to change it
Back
What is the purpose of responsive design?
Front
allows for the same code to work on multiple screen resolutions
Back
difference between id or class selectors
Front
id's only select on element while class can used to classify more than one element
Back
what to you use to select the id element of something?
Front
#
expl #content {}
Back
<li class="twitter"><a href="http://www.twitter.com/intent/tweet?screen_name=z_strauss">@z_strauss</a></li> * What does this do?**
Front
will create a @Z_Strauss on the website page and then when you click on it, it will allow you to tweet right at me
Back
what does the universal selector look like?
Front
It is an asterisk * {}
Back
where do you link a css style sheet?
Front
in the head section
Back
margin 0 auto
Front
auto sets margin to a specific width
Back
can you apply both a class and ID to an element
Front
yes
Back
what is a universal selector?
Front
selects every element on the page at once and applies the value to all of them
Back
class selectors let us target elements based on their
Front
class attribute
Back
how do you setup @import
Front
in the head create a <style> then @import "INSERT CSS FILE"; </style>
Back
first way to make a website responsive
Front
ensure that all the "widths" are 100% and not pixels
Back
external style sheet
Front
can change look with just one file
Back
480 px break point and 660 px break point
Front
480 is typical for smart phones and 660 for tablets
Back
what is a type selector
Front
selects and element type on the page, example <h1>, <p> etc
Back
what does a div tag do?
Front
it defines a division or section in a HTML element
ex <div>
<h3> Hello </h3>
</div>
Back
example of a pseudo-class
Front
selector: pseudo-class {
}
Back
what does a full css link file in the head look like?
Front
<link rel="stylesheet" href="css/style.css">
Back
what is the purpose of media quieries
Front
allow page elements to be adjusted based on width of the page
Back
1 em is equal to what font size in browser?
Front
16 font size (1.5 Em would be 24pt)
Back
what does the id attribute do
Front
The id attribute specifies a unique id for an HTML element
Back
internal styles
Front
embedded in the head section of the html using style tags
Back
Section 2
(50 cards)
what is unique about a rem unit
Front
it is only relative to the root element of the page (the html) element, rem units help us out of a pinch when font sizing an em starts to compound
Back
if we apply padding to two values (padding: 100px, 20px
Front
first value is applied to top and bottom, second is applied to left and rigth
Back
how to give custome line heights to decrease vertical space if it is too large
Front
Back
font properties let us do what
Front
let us assign font family, font size, font style
ex font-family: sans-serif;
Back
pixel units
Front
used for length, always fixed and do not scale
typically an abstract reference unit
Back
what is a "font stack"
Front
including multiple fonts to be viewed in a browser so for example
font-family: Helvetica, Arial, sans-serif;
Back
other common data types?
Front
integers, numbers, percentages
Back
relative lenth unit most commenly used measurement tag is?
Front
em --- this is called a font relative unit
Back
the innermost part of the 4 parts of the box holds what
Front
the content area, containing elements actual content, text and actual image
Back
what two items must be defined when using the font shortcut
Front
the font family and font size
Back
percentages
Front
always releative to something else, adjusts based on the parent elements
Back
compenents that make up a css box model
Front
boxes are certain amount of space that elements take up
each element is made up of a box
Back
what does text-align: justify; do?
Front
gives our text equal width, similar to a book or magazine alignment
Back
type of length unit data types
Front
pixels, ems ,rems
Back
besides the hexadecimal way of establishing colors (#ff0099) or #f09 how else can you establish rgb?
Front
color: rgb( 111, 333, 111)
Back
the line decoration allows us to do what
Front
remove underlined links of elements, etc
Back
line height defines what
Front
the vertical spacing between lines of text, you can increase and decrease the gaps of text
Back
1em is equivelant to how many pixels
Front
16 pixels
Back
what are web safe fonts
Front
fonts that are viewable from all types of browsers and operating systems
Back
in a font stack, if a font family name is more than one word what do you do?
Front
put it in quotation marks
ex
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
Back
the second innermost part of the 4 part box is
Front
the padding area
Back
the border area is
Front
the outermost part of the box
Back
to create transparancy or opaque looking colors you create the alpha of rgb and that looks like...
Front
color: rgba (233, 333, 333, .5);
Back
when defining a fluid padding value you use
Front
percentages
Back
what is the shortcut to define all types of the font at once (weight, size, height, family)
Front
example:
font: normal 1em/1.5 "Helvetica Neue", Helvetica, Arial;
Back
inline elements take up how much space
Front
only take up as much width as they need to
Back
if you apply padding to three values (padding (100px, 120px, 100px)
Front
the first value is applied to the top, the second value is applied to the left and right, and the third value is applied to the bottom
Back
the padding are
Front
gives the content some breathing room by seperating content from surrounding border area
Back
how do you add a comment in CSS
Front
/ This is a comment /
Back
Rem unit stands for what
Front
root em
Back
a value can be described as a
Front
number, length, image, url
Back
block elements
Front
form a seperate block that take up the full width available based on width of the parent element, and it creates a new line before and after element
Back
example of inline elements
Front
span tags, images, anchor elements
Back
what two ways elements are displayed in the box model
Front
blocks or inline
Back
example of block elements
Front
divs , paragraphs, any heading tag or list items
Back
the padding creates space ______ the box and the margin creates space ______ outside the box
Front
inside, outside
Back
the margin is actually outside of the box and does what
Front
is space around the element that seperates it from other areas
Back
in the shorthand padding value if we only define one value what happens (padding: 100px)
Front
the padding is applied on all sides
Back
the rgb model stands for
Front
red green blue
Back
text align lets us control what
Front
the horizontal alignment of text
Back
padding values can be defined two ways
Front
as any length or percentage values
Back
rems are more predictable then ems because they always relate back to the _______ element
Front
root element
typically (html)
Back
the text-transform value allows us to do what
Front
create uppercase and lowercase values for our text
text-transform: uppercase; (lowercase or capitalize
Back
the shorthand property for padding looks like ____ and is followed in what order?
Front
padding: top, right, bottom, left;
Back
when defining padding via percentages it is important to remember that percentage is relateive to the total ____ of the container
Front
width, not the height
Back
it is typically best practice to define line-height by
Front
unitless numbers
example -- 1.5, this means the browser will multiply the font size of each element by 1.5 to determine the line hegiht
Back
removing the underline from a link requires a text-_____
Front
a:visited { text-decoration: none; }
Back
what is a data type?
Front
fancy way of saying type of css value
Back
the "box" in the box model makes up of ___ distinct sparts
Front
four
Back
text styles
Front
Back
Section 3
(50 cards)
ordered list usually display a _____
Front
numbered list
Back
two ways to reverse the color order of a gradient?
Front
(to top, color 1, color 2) or just reverse the colors
Back
shorthand for border radius
Front
border-radius: and goes from left right bottom left and bottom right
Back
inside the :nth-child() what does the expression values look like
Front
:nth-child(an+b)
Back
what does background-image: cover; do?
Front
tells you that it will cover the background at a scaled size
Back
what character defines the "begins with" selector?
Front
^ ** example a[href^="http"] {
}
Back
gradients add depth to designs by making a smooth transition two or more what?
Front
colors
Back
how to change your media viewport do display nicely for mobile
Front
in <head>
create a meta tag
<meta name="viewport" content="width=device-width">
Back
what font format created by mozilla is supported by all modern font browsers
Front
WOFF
Back
text shadow format has 4 rules (x, x, x, x)
Front
horizonal px, vertical px, blur, and color
Back
what is a color stop?
Front
color stops are stopping point in a gradient that sshow a specific color at the exact location we decide it to be
Back
how do you change the type of list style
Front
list-style-type: square;
Back
the ~ targets what?
Front
the immediate sibling and every specified sibling that follows
Back
how do you stop a background image from repeating
Front
background-repeat: no-repeat;
Back
with the display property, can you override the default display settings of an element?
Front
yes
Back
the > is known as what type of combinator? and the selectors that use them are called
adjacent sibling combinator becuase they target the next sibling on the page
Back
how to add an inner shadow in a box shadow (keyword_
Front
inset
Back
google developer tools in chrome
Front
allows you to inspect your element in greater detail
Back
how do you select a class with the attribute selectors?
Front
[class="class-type"] {
}
Back
can max-width 100% for an img create responsiveness and fluidity
Front
Yes
img {
max-width: 100%
}
Back
what character defines the "ends with" selector?
Front
$ *** example a[href$="http"] {
}
Back
with the text shadow property you are able to add
Front
drop shadows to text
Back
applying rounded corners to a div (the process)
Front
border-top-left-radius: 50px;
border-top-right-radius: 10ps;
border-bottom-right-radius: 50px;
border-bottom-left-radius: or a percentage
Back
setting an element to max-width does what?
Front
prevents the element or content from being wider than it needs to be
Back
the inset value must be declared either ____ or _____ in a box shadow
Front
first or last
Back
how do you add an attribute selector to change a cursor to pointer? if the element is input and type is button?
Front
input[type="button'] {
cursor: pointer;
}
Back
The "contains" substring matching attribute selector targets an element containing the piece of code we define anywhere in an attribute's value, the contains selector appears as an ____
Front
asterisk
*
Back
what is the setup look like for a :nth-child if you want to highlight only the even number lines
Front
li:nth-child(even) {
}
Back
when you set a gradient to radial-gradient what does it do?
Front
you get a gradient that starts in the center
Back
what does the :only-child or :empty elements
Front
you can target an element if it is the only child of an element
or
target elements that have no child
Back
begins with and ends with does what
Front
Back
what 3 symbols can you use to be a combinator?
Front
> + ~
Back
to give the gradient more circular shape what do you put in front of the two colors?
Front
(circle, red, blue)
Back
when an element is floated it is taken out of the normal flow of the page and placed along the _ or _ side of the container depending on the float value we set
Front
left and right
Back
box sizing property alternates what
Front
the way the browser calculates the elements total height and width
Back
:first-child :last-child does what?
Front
targets the first or last child of an parent element
Back
if you set an even border radius what do you need to do
Front
just put on pixel value for all of it
Back
unordered lists typically display a ______ style list
Front
bulleted
Back
what is the value to change background positions
Front
background-position: center;
Back
if you want to make a gradient go from right to left what do you do
Front
simply input (to right or to left, before the two colors
Back
:nth-child does what
Front
can target any child position within a parent element
Back
anytime you need a containing element cleared, give them a class _____
Front
group
Back
overflow: auto; allows you to ____
Front
clear your floats and the browser is able to account for the height of the floated columns and the div is not collapsed
Back
how do you define a linear gradient?
Front
: linear-gradient(color 1, color 2);
Back
attribute selectors can also have a element in front of it?
Front
correct input[class="type"] {
}
Back
how do you target the first or last child of a list element?
Front
li:first-child {
}
or
li:last-child {
}
Back
the 4 most common types of display properties
Front
none, inline, block, inline-block
Back
what does an+b mean
Front
a and b are always represented by numbers and n never changes
Back
Section 4
(50 cards)
the main axis is the ___ axis and the cross axis is the ____ axis
Front
X access, Y access
Back
::first-line
Front
selects the first line of text
Back
if you do -webkit-justify-content: flex-end; what does that do?
Front
moves all your list items to the right and creates good space for them
Back
The column-rule property is shorthand for which properties?
Front
width, style, color
Back
the b value in an+B do
Front
tells the browser that is first number we want to selece
Back
The elements inside a flex container are called:
Front
flex items
Back
how do you control the direction of an item once it is in flex?
Front
{
-webkit-flex-direction: ;
}
Back
::first-letter
Front
selects the first letter of text
Back
transition-duration: ;
Front
describes the transition animations
Back
the -webkit-order: property does what?
Front
allows you to align certain boxes different ways using integers
Back
what is the default value of flex direction?
Front
row
Back
the :target selector
Front
selects the element when the element is the target of the link
Back
the -webkit-column-rule has a shorthand that goes
Front
width, style, color
Back
the default direction of the main axis is ____ to _____
Front
left to right
Back
in transition-duration how is the animation measured?
Front
in seconds example 0s
Back
the a value does what in an+b
Front
tells the cycle of list items it should select after taht
Back
transition-property: ;
Front
describes how an element transitions through something
Back
transition-timing-fuction does what?
Front
allows you to set the interval times when an element transitions
Back
if you select and individual child and set it to margin-right: auto; what will happen
Front
all the list items will be pushed to the right besides the one child that you signaled
ex
.nav li:first-child {
margin-right: auto;
}
Back
the flex container includes things such as ____ items
Front
flex items
Back
Give the .badge element a transform that rotates it 15 degrees counterclockwise and moves it down 50px.
the -webkit-column-rule property includes what types of values?
Front
width, style, color
Back
-webkit-align-self: center; does what?
Front
vertically aligns elements in the flex item they are in
Back
the integer after the "-webkit-column-count: " states what?
Front
how many columns you will break up your stuff into
Back
::before and ::after
Front
insert virtual elements
Back
the ___ ____ determines how much a flex item will grow, relative to the other flex itmes
Front
flex-grow
Back
Which of the following declarations will evenly distribute the space between flex items
Front
justify-content: space-between;
Back
how do you call the flex-grow property in CSS?
Front
-webkit-flex-grow: ;
Back
how to you display a class/parent/id as flex?
Front
.nav {
display: -webkit-flex;
}
Back
The" :nth-of-type "pseudo-class targets an element based on
Front
its position within a parent, but only if it's a specific type of element.
Back
the -webkit-column-span property will do what?
Front
span an element across all of the columns in the container
Back
the flex wrap property does what?
Front
creates multi line containers so your columns fit as you shrink your page
Back
In the transition shorthand property, the second time value is considered the _______value.
Front
transition-delay
Back
what does the flex wrap property look like in CSS
Front
{
-webkit-flex-wrap: wrap;
}
Back
the justify-content property adjust the positions of flex items on the ____ axis
Front
main
Back
flex-grow: takes integers that talk about the ratio of freespace that should be taken by list items (1) or you can use the property ____
Front
1 makes them take up all the same space
flex
Back
everything in flexbox is ______ to the X and Y axis
Front
relative
Back
a flex child is inside a flex item of a _____ container
Front
flex
Back
you can create gaps in your webkit-column-counts by?
Front
using the "gap" property
-webkit-column-gap: 3em;
Back
Which property defines borders between each column?
Front
column-rule
Back
Create a transition for the border-radius property of .box. Give the transition a duration of .6 seconds, a delay of 1 second, and a timing function that maintains a linear motion.
stretch, this makes all the elements the same height
Back
what does the :not() selector do
Front
allows you to "not" select a certain element or child
Back
how would you setup to justify content?
Front
{
-webkit-justify-content: "Value";
}
Back
how do you define a multi column layout in CSS (using webkit)
Front
-webkit-column-count: INTEGER
Back
the translate() function allow us to move an element on the __ ___ or ___ axis
Front
x, y, or z
Back
the default direction of the cross axis is ____ to _____
Front
top to bottom
Back
flexbox has a concept of two axis - the ____ axis and the _____ axis
Front
main and cross
Back
Section 5
(31 cards)
before and after psuedo classes
Front
a:before , you need to have the content: "", in the css in order to have an underline occur, then you need to put the top at 100% then stack on the a:hover:before
Back
when setting something to position: fixed; what does that do?
Front
The element is positioned relative to its normal position, so "left:20" adds 20 pixels to the element's LEFT position
Back
vh is relative to the size of the ____
Front
screen
Back
the focus psuedo class is only applied ot interactive elements
Front
the user is ready to interact with the field
Back
The default value of the transform-origin property is