Applied Visual Design Flashcards
(58 cards)
What are the options for text-align
justify
center
right
left
What is the justify option for text-align
causes all lines of text except the last line to meet the left and right edges of the line box.
Change the width of images to 220px
img{
width: 220px;
}
What are the different ways to express width
em
px
% relative to its parent
Set the height of h4 to 35px
{h4 style=”height: 35px;”}
What are the different ways to make text bold
font-weight: bold;
{strong}text/strong}
font-weight: 800;
What are the different ways to underline text
text-decoration: underline
{u} text {/u}
What are the different ways to italicize text
font-style: italic;
{em} text {/em}
How do you strike through text with CSS
text-decoration: strike-through;
How do you strike through text without CSS
{s} text {/s}
How do you add a horizontal line between a p and h4 element
{p} {/p}
{hr}
{h4} {/h4}
How do you adjust background color opacity
background-color: rgba(x,x,x,x);
What are the values for opacity
0.0 - 1.0
set font of a h3 elements to 25px
{h3 style=”font-size: 25px;”}
How do you add a shadow to an element
box-shadow
What are the properties for box shadow
offset-x offset-y blur-radius (optional) spread-radius (optional) color
How do you control how transparent an element is
opacity
Set all p tags to 75% opacity
p {
opacity: .75;
}
What does it mean when opaque is set to 1
element is not transparent at all
How do you make sure your element is capitalized
text-transform: capitalize;
How do you make all letters uppercase in your element
text-transform: uppercase;
How do you make all your letters lower case in your element
text-transform: lowercase;
What does text-transform: inherit; do
Inherit text transform property from the parent element
What are the different text-transform properties
uppercase lowercase capitalize initial inherit none