css3 from scratch Flashcards
css stands for
cascading style sheets
css style parts broken down
selector{property:value; property: value;}
ex p{color:blue; font-size:20px;}
ways of implementing css
internal, external using link rel=”stylesheet”,inline
external stylesheets exist where
a file of its own
advantages of external stylesheets
faster loading because it is cached
internal style sheet implementation
in header
'style' { color:blue; } '/style'
set style for specific type of element, like a footer that is inside a paragraph tag
style footer p { } /style
selector types
tag,class,id
selector tag
page-wide
class selector
apply to every element in that class
id selector
apply to one specific tag
id and javascript
javascript can use id selector
how to set style of a class type
using the .(class)’style’‘/style’
how to set tyle of an id
(id) …style…
background color css3 keyword
background-color: x;
set font color in css
color:x;
import stlyehseet
in head:
t/f
the inclusion of css sheets matters– second one overrides rules, first is base set
what does margin:auto do
equal margins on all sides and centered on page, can add constraints for the auto to inherit from
how to add two classes to an elemnet
seperate by space
what is one way to overide a css style for one of the elements in a grid so tyat it removes/adds something it needs
sperate class name my space, and add formatting in its corresponding css
overwrite css settings of an element after using it
set button to custom color, and set link tag (anchor tag) to default
what css atrr can make text upercase
text-transform: uppercase;
how to add an action to a css element in css
.btn:hover {
color:blue
padding and margin paramaters follow what order of pattern
trbl
what is float in css
float denotes the arrangement of items, like horizontal
what is list-style in css
a property that can remove list decorations or add them, like bullets
what are some border css styles
size, solid, etc.
css border can be added to individual sides of an element t/f
t, border-right or top etc.
in css, the word cascading means what
it means your styles can be overwritten
in css what is a Descendent Selector
CSS selector that selects all the elements of a given type that are nested inside another type of element.
whats a css rule
basically just the css:
footer { color: green;}
in csss in using a descendent selector, say you have
nav>ul>li>a; in stylyiyng the anchor tag (a) in a nav, how do we do this? Do we need to include ul,li?
nav a{}
css element to make a link not be underlined
text-decoration:none;