Background
- attachment
p {
background-image: url("starsolid.gif"), url("startransparent.gif");
background-attachment: fixed, scroll;
background-repeat: no-repeat, repeat-y;
}
scroll,fixed,local
- clip - border-box,padding,content,text
- color - beneath border
- image - can be more than one,linear gradient,radial gradient
- origin -set the background origin {border-box,padding-box,content-box}
- position ``` background-position: top; background-position: bottom; background-position: left; background-position: right; background-position: center;
/*
/*
/* Multiple images */ background-position: 0 0, center;
/* Edge offsets values */ background-position: bottom 10px right 20px; background-position: right 3em bottom 10px; background-position: bottom 10px right; background-position: top right 10px;
% is relative to container``` 7. repeat - {x,y,repeat,round,space,no-repeat} 8. size - {contain,cover,30%,40px,auto}
Border shorthand border-color border-style border-width
similar to outline but
The outline property in CSS draws a line around the outside of an element. It’s similar to border except that:
- It always goes around all the sides, you can’t specify particular sides
- It’s not a part of the box model, so it won’t affect the position of the element or adjacent elements (nice for debugging!)
border radius - left,right,right,left
box-shadow
box-shadow: [horizontal offset] [vertical offset] [blur radius] [optional spread radius] [color];
could be more than one;
inset keyword for shadow inside box
overflow shorthand for overflow x,overflowy
/* Keyword values */
overflow: visible;
overflow: hidden;
overflow: clip;
overflow: scroll;
overflow: auto;
overflow: hidden visible;
custom scrollbars- http://manos.malihu.gr/repository/custom-scrollbar/demo/examples/complete_examples.html
opacity pro-tip - change on hover