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