CSS BORDERES Flashcards
1
Q
css tag for border
A
part of doc where you gon put the border.border-style:(type of border/values);
p.dotted {border-style: dotted;}
2
Q
CSS border properties
A
allows you to specify
* width
*style
* color
3
Q
values
A
- solid
- dotted
- dashed
- double
- inset - shade on top
- outset- shaded part on bottom
- none
- hidden
- groove- shaded part is outsude; 3d
- ridge- shaded part/dark part is inside; 3d
- mix
~~~
border-top-style: dotted;
border-right-style: solid;
border-bottom-style: dotted;
border-left-style: solid;
~~~
orborder-style: dotted solid double dashed;
4
Q
hierarchy of side widths
A
for the top border, right border, bottom border,
and the left border
5
Q
border widhts
A
specifies the
width of the four borders.
6
Q
border width; specific size
A
in
px, pt, cm, em,
7
Q
border width; pre defined values
A
thin,
medium, thicc
8
Q
border colors
A
The border-color property is used to set the color of the four
borders.
border-color: red;
9
Q
border colors; can be set by?
A
- name (red)
- HEX (#ff0000) HEXADECIMAL VALUE
- RGB (rgb(255,0,0)
- HSL – hsl(0, 100%, 50%)
10
Q
shorthand property
A
- shortens code
- follows format
border-width
border-style (required)
border-color
border: 5px solid red;
or in 1 syntax only
border-left: 6px solid red; background-color: lightgrey;
11
Q
rounded border
A
border : 2px solid red; border-radius: 5px;
- border1- round
- border2-rounder
- border 3- roundest (almost oval)