Section 1

Preview this deck

Explain the following property: padding-bottom

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

0

All-time users

0

Favorites

0

Last updated

6 years ago

Date created

Mar 1, 2020

Cards (270)

Section 1

(50 cards)

Explain the following property: padding-bottom

Front

Sets the bottom padding of an element

Back

Explain the following property: padding-top

Front

Sets the top padding of an element

Back

Explain the following property: border-right

Front

Sets all the right border properties in one declaration

Back

Explain the following property: border

Front

Sets all the border properties in one shorthand declaration

Back

Explain the following property: clear

Front

Specifies which sides of an element where other floating elements are not allowed

Back

Explain the following property: margin-right

Front

Sets the right margin of an element

Back

Explain the following property: max-width

Front

Sets the maximum width of an element

Back

Explain the following property: min-width

Front

Sets the minimum width of an element

Back

Explain the following property: border-right-color

Front

Sets the color of the right border.

Back

Explain the following property: padding-left

Front

Sets the left padding of an element

Back

background-image

Front

Specifies an image to use as the background of an element.

Back

Explain the following property: background-attachment

Front

Specifies that a background image should be fixed.

Back

Explain the following property: margin

Front

Sets all the margin properties in one declaration

Back

Explain the following property: background-color

Front

Specifies the background color of an element.

Back

Explain the following property: border-top

Front

Sets all the top border properties in one declaration

Back

Explain the following property: height

Front

Sets the height of an element

Back

Explain the following property: float

Front

Specifies whether or not a box should float

Back

Explain the following property: min-height

Front

Sets the minimum height of an element

Back

Explain the following property: border-color

Front

Sets the color of the four borders

Back

Explain the following property: border-right-width

Front

Sets the width of the right border.

Back

Explain the following property: border-width

Front

Sets the width of the four borders

Back

Explain the following property: max-height

Front

Sets the maximum height of an element

Back

Explain the following property: position

Front

Specifies the type of positioning method used for an element (static, relative, absolute or fixed)

Back

background-position

Front

Specifies the position of a background image.

Back

Explain the following property: padding

Front

Sets all the padding properties in one declaration

Back

Explain the following property: padding-right

Front

Sets the right padding of an element

Back

Explain the following property: margin-top

Front

Sets the top margin of an element

Back

Explain the following property: border-style

Front

Sets the style of the four borders

Back

Explain the following property: border-left

Front

Sets all the left border properties in one declaration

Back

Explain the following property: border-left-width

Front

Sets the width of the left border

Back

Explain the following property: clip

Front

Clips an absolutely positioned element

Back

Explain the following property: color

Front

Sets the color of text

Back

Explain the following property: background

Front

Specify all background properties in a single shorthand property.

Back

Explain the following property: margin-left

Front

Sets the left margin of an element

Back

Explain the following property: border-bottom-width

Front

Sets the width of the bottom border

Back

Explain the following property: border-left-color

Front

Sets the color of the left border

Back

Explain the following property: border-left-style

Front

Sets the style of the left border

Back

Explain the following property: border-bottom

Front

Sets all the bottom border properties in one declaration

Back

Explain the following property: border-bottom-style

Front

Sets the style of the bottom border

Back

Explain the following property: border-top-style

Front

Sets the style of the top border

Back

background-repeat

Front

Repeats a background image horizontally, vertically or not at all.

Back

Explain the following property: border-top-width

Front

Sets the width of the top border

Back

Explain the following property: border-bottom-color

Front

Sets the color of the bottom border

Back

Explain the following property: left

Front

Specifies the left position of a positioned element

Back

Explain the following property: bottom

Front

Specifies the bottom position of a positioned element

Back

Explain the following property: margin-bottom

Front

Sets the bottom margin of an element

Back

Explain the following property: overflow

Front

Specifies what happens if content overflows an element's box

Back

Explain the following property: display

Front

Specifies how a certain HTML element should be displayed

Back

Explain the following property: border-right-style

Front

Sets the style of the right border.

Back

Explain the following property: border-top-color

Front

Sets the color of the top border

Back

Section 2

(50 cards)

Explain the following property: word-spacing

Front

Increases or decreases the space between words in a text

Back

Explain the following property: z-index

Front

Sets the stack order of a positioned element

Back

Explain the following property: font-weight

Front

Specifies the weight of a font

Back

Explain the following property: caption-side

Front

Specifies the placement of a table caption

Back

Explain the following property: counter-reset

Front

Creates or resets one or more counters

Back

Explain the following property: outline

Front

Sets all the outline properties in one declaration

Back

Explain the following property: text-align

Front

Specifies the horizontal alignment of text

Back

Explain the following selector: div + p

Front

Selects all <p> elements that are placed immediately after <div> elements

Back

Explain the following property: page-break-after

Front

Sets the page-breaking behavior after an element

Back

Explain the following property: font-family

Front

Specifies the font family for text

Back

Explain the following selector: p

Front

Selects all <p> elements

Back

Explain the following selector: *

Front

Selects all elements

Back

Explain the following property: font

Front

Sets all the font properties in one declaration

Back

Explain the following property: outline-width

Front

Sets the width of an outline

Back

Explain the following property: list-style-image

Front

Specifies an image as the list-item marker

Back

Explain the following selector: div, p

Front

Selects all <div> elements and all <p> elements

Back

Explain the following property: white-space

Front

Specifies how white-space inside an element is handled

Back

Explain the following property: content

Front

Used with the :before and :after pseudo-elements, to insert generated content

Back

Explain the following property: border-collapse

Front

Specifies whether or not table borders should be collapsed

Back

Explain the following property: unicode-bidi

Front

Used together with the direction property to set or return whether the text should be overridden to support multiple languages in the same document

Back

Explain the following property: right

Front

Specifies the right position of a positioned element

Back

Explain the following property: table-layout

Front

Sets the layout algorithm to be used for a table

Back

Explain the following property: top

Front

Specifies the top position of a positioned element

Back

Explain the following property: list-style-position

Front

Specifies if the list-item markers should appear inside or outside the content flow

Back

Explain the following property: width

Front

Sets the width of an element

Back

Explain the following property: line-height

Front

Sets the line height

Back

Explain the following property: list-style-type

Front

Specifies the type of list-item marker

Back

Explain the following property: border-spacing

Front

Specifies the distance between the borders of adjacent cells

Back

Explain the following property: list-style

Front

Sets all the properties for a list in one declaration

Back

Explain the following property: text-indent

Front

Specifies the indentation of the first line in a text-block

Back

Explain the following property: empty-cells

Front

Specifies whether or not to display borders and background on empty cells in a table

Back

Explain the following selector: p ~ ul

Front

Selects every <ul> element that are preceded by a <p> element

Back

Explain the following property: page-break-inside

Front

Sets the page-breaking behavior inside an element

Back

Explain the following selector: div p

Front

Selects all <p> elements inside <div> elements

Back

Explain the following selector: div > p

Front

Selects all <p> elements where the parent is a <div> element

Back

Explain the following property: text-decoration

Front

Specifies the decoration added to text

Back

Explain the following property: vertical-align

Front

Sets the vertical alignment of an element

Back

Explain the following property: counter-increment

Front

Increments one or more counters

Back

Explain the following property: font-style

Front

Specifies the font style for text

Back

Explain the following property: letter-spacing

Front

Increases or decreases the space between characters in a text

Back

Explain the following property: cursor

Front

Specifies the type of cursor to be displayed

Back

Explain the following property: quotes

Front

Sets the type of quotation marks for embedded quotations

Back

Explain the following property: outline-style

Front

Sets the style of an outline

Back

Explain the following property: direction

Front

Specifies the text direction/writing direction

Back

Explain the following property: font-size

Front

Specifies the font size of text

Back

Explain the following property: text-transform

Front

Controls the capitalization of text

Back

Explain the following property: page-break-before

Front

Sets the page-breaking behavior before an element

Back

Explain the following property: visibility

Front

Specifies whether or not an element is visible

Back

Explain the following property: font-variant

Front

Specifies whether or not a text should be displayed in a small-caps font

Back

Explain the following property: outline-color

Front

Sets the color of an outline

Back

Section 3

(50 cards)

Explain the following styling: border: 2px solid green;

Front

Border short hand ( 2px solid green )

Back

Explain the following styling: a:visited { color: red;}

Front

Visited Link

Back

Explain the following selector: p::before

Front

Insert something before the content of each <p> element

Back

Explain the following styling: a{text-decoration:none;}

Front

removes or adds underlines

Back

Explain the following selector: a:hover

Front

Selects links on mouse over

Back

Explain the following selector: a:visited

Front

Selects all visited links

Back

Explain the following selector: [lang|=en]

Front

Selects all elements with a lang attribute value starting with "en"

Back

Explain the following styling: a:active{ color: blue;}

Front

Selected Link

Back

Explain the following selector: p::first-line

Front

Selects the first line of every <p> element

Back

Explain the following selector: [target=_blank]

Front

Selects all elements with target="_blank"

Back

Explain the following styling: text-indent:25px;}

Front

indents first line to 25px

Back

Explain the following selector: [title~=flower]

Front

Selects all elements with a title attribute containing the word "flower"

Back

Explain the following styling: padding-left:30px

Front

Sets padding left 30px

Back

Explain the following styling: H1{text-align:center;}

Front

Aligns text to centre ( left and right )

Back

Explain the following selector: input:focus

Front

Selects the input element which has focus

Back

Explain the following selector: a[href*="w3schools"]

Front

Selects every <a> element whose href attribute value contains the substring "w3schools"

Back

Explain the following styling: Background-color:[color];

Front

Select background colour

Back

Explain the following styling: Background-repeat: repeat-y;

Front

Repeats background vertically

Back

Explain the following styling: font-weight:bold;

Front

Sets font bold

Back

Explain the following selector: a:link

Front

Selects all unvisited links

Back

Explain the following styling: letter-spacing:25px;

Front

Sets individual letter spacing to 25px

Back

Explain the following styling: Line-height:25px;

Front

Sets line height to 25px

Back

Explain the following styling: Padding:25px 25px 20px 20px;

Front

PadsTop R Bottom L ( 25px 5px 20px 20px )

Back

Explain the following styling: list-style-type:upper-roman;

Front

Sets style of numbers on list ( upper Roman )

Back

Explain the following styling: Background-repeat: repeat-x;

Front

Repeats background horizontally

Back

Explain the following styling: H1{ Color:red;}

Front

Sets color of text

Back

Explain the following styling: font-family:"Courier";}

Front

sets font family

Back

Explain the following selector: a[href$=".pdf"]

Front

Selects every <a> element whose href attribute value ends with ".pdf"

Back

Explain the following styling: ul{list-style:circle inside url("img_marker.png");}

Front

Shorthand list bullet maker

Back

Explain the following styling: padding: 25px 50px 75px;

Front

Pads Top L/R Bottom 25px 50px 75px

Back

Explain the following styling: font-style:none;}

Front

Sets font to italic or oblique

Back

Explain the following selector: [target]

Front

Selects all elements with a target attribute

Back

Explain the following styling: padding: 25px 50px

Front

Pads Top/Bottom L/R 25px 50px

Back

Explain the following styling: Padding:25px;

Front

Pads all sides 25 px

Back

Explain the following selector: a:active

Front

Selects the active link

Back

Explain the following styling: Background-image:url("llama.jpg");

Front

Displays image as background

Back

Explain the following styling: P{text-transform:Capitalize;}

Front

Makes text capitalise / lowercase / uppercase

Back

Explain the following styling: font:italic 12pt Verdana;

Front

Font Shortcut ( italic 12pt Verdana )

Back

Explain the following selector: a[href^="https"]

Front

Selects every <a> element whose href attribute value begins with "https"

Back

Explain the following styling: font-size: 12pt;

Front

Sets font Size to 12pt

Back

Explain the following styling: list-style-type: circle;

Front

Lists have circle or square bullets

Back

Explain the following styling: a:link { color: red;}

Front

Unvisited Link

Back

Explain the following selector: p::first-letter

Front

Selects the first letter of every <p> element

Back

Explain the following styling: list-style-image:url(sqpurple.gif);}

Front

Lets you specify your own bullets

Back

Explain the following selector: p:first-child

Front

Selects every <p> element that is the first child of its parent

Back

Explain the following styling: Background-position: top right;

Front

Sets background posistion

Back

Explain the following styling: a:hover{color: red;}

Front

Mouse over Link

Back

Explain the following styling: Outline:10px solid green;`

Front

Outline short hand ( 10px solid green )

Back

Explain the following styling: Background-repeat: no-repeat;

Front

Stops background repeating

Back

Explain the following selector: p::after

Front

Insert something after the content of each <p> element

Back

Section 4

(50 cards)

Explain the following selector: P:first-child{

Front

Highlights first of tag in list

Back

Explain the following styling: Overflow:scroll/hidden/auto;

Front

Specifies leftover text

Back

Explain the following styling: z-index:-1;

Front

Sets layer order (-1)

Back

Selector are used to

Front

find/select elements

Back

Explain the following styling: background: linear-gradient(white, red, blue,);

Front

Basic gradient through colours ( white red blue )

Back

Explain the following styling: Height:100px;

Front

Sets element height to 100px

Back

Properties and values are separated by

Front

colons

Back

CSS stands for

Front

Cascading Style Sheets

Back

Style a <p> to refer to class 'center' and class 'large'

Front

<p class = "center large"> text phrase </p>

Back

External style sheets are stored in

Front

CSS files

Back

Class selectors are preceded with a

Front

period (.)

Back

In {color:blue;}, which is the value

Front

blue

Back

A declaration consists of (2)

Front

property and value

Back

Explain the following styling: background:linear-gradient(white,green);

Front

Basic gradient Background (white,green)

Back

Explain the following styling: border-image : url (x.png) 30 round;

Front

Border image shorthand (x.png 30 round)

Back

Explain the following selector: div p{

Front

Affects only p tags in div

Back

In {color:blue;}, which is the property

Front

color

Back

What are the 3 attributes in a link tag

Front

rel, type, and href

Back

CSS rules consist of 2 parts

Front

selector and declaration

Back

Selectors choose elements based on (4)

Front

element name, class, id, or attribute

Back

Explain the following styling: border-radius:25px;

Front

Sets rounded corners to 25px

Back

Rule that specifies all p tags with class = center

Front

p . center { }

Back

Explain the following styling: background-image: url(a.gif),url(b.gif);

Front

Sets background images b over a (a.gif b.gif)

Back

3 ways to insert CSS

Front

external or internal style sheet, or inline style

Back

Explain the following styling: opacity: 0.4;

Front

Sets Transparency / Opacity to 0.4

Back

Explain the following styling: Position:relative;

Front

Positioned by its ancestor

Back

Where is the link element

Front

between the head tags

Back

Explain the following styling: text-shadow:2px 2px;

Front

Text shadow 2pxVertical / 2pxhorizontally

Back

Explain the following styling: Display:none;

Front

Text Vanishes

Back

Explain the following styling: background:radial-gradient(white,green);

Front

Basic radial gradient (white green )

Back

CSS describes

Front

how HTML elements are to be displayed

Back

Why use CSS

Front

define styles for web pages and variations in different devices and screen sizes

Back

Explain the following styling: Position:absolute;

Front

Goes in an exact position, but scrolls

Back

Explain the following styling: Position:fixed;

Front

Object stays in position regardless

Back

Explain the following selector: [target]{

Front

Applies to anything with a tag inside [ ]

Back

Declarations end with a

Front

semi-colon

Back

Explain the following styling: background-size:cover;

Front

Background image covers entire desktop

Back

Explain the following styling: background-image: url(a.gif);

Front

Sets picture as background (a.gif)

Back

A class name CANNOT start with

Front

a number

Back

Id selectors are preceded with a

Front

hash tag (#)

Back

What element references to external style sheets

Front

<link> element

Back

Rule to make all elements with class=center, red in color

Front

.center { color : red ; }

Back

CSS comments start and end with ?

Front

/* comment goes here */

Back

Rule for all p tags center-aligned with red text color

Front

p { text-align : center ; color : red ; }

Back

Explain the following styling: visibility:hidden;

Front

Text Vanishes, but leaves space

Back

An id selector selects elements using

Front

the id attribute

Back

Explain the following styling: Width:100px;

Front

Sets Element Width to 100px

Back

An element selector selects elements based on

Front

the element name

Back

Declaration blocks are surrounded by

Front

curly braces

Back

Explain the following styling: background: linear-gradient(to bottom right , white, green);

Front

Basic gradient Background with direction (to bottom right , white, green)

Back

Section 5

(50 cards)

What value is associated with margin and not padding

Front

auto

Back

If border-style has 3 values

Front

top and bottom are valued, left & right the same

Back

If border-color is not set, it ...

Front

inherits the color of the element

Back

How do you set margin for top of an element

Front

margin-top

Back

Border property let you specify (3)

Front

width, style, and color of the border

Back

Margin shorthand uses values in what sequence

Front

top - right - bottom - left

Back

Why not use inline style

Front

mixes content with presentation

Back

Border-width can have 1 to 4 values for each

Front

side (order is top, right, bottom, left)

Back

In border shorthand, what property is required

Front

style

Back

If "%" is used with margins, "%" is the

Front

width of the containing element

Back

When are inline styles used ?

Front

to apply unique style to a single element

Back

Border-color can be set using (3)

Front

name, hex, or rgb

Back

What is the command for border shorthand

Front

border : width style color;

Back

What is the command for rounded borders

Front

border-radius : 5px;

Back

Padding puts space between

Front

the content and the border of an element

Back

How do you only set the bottom margin

Front

margin-bottom: __px;

Back

Can margins specify the side of an element

Front

yes (margin-top, margin-left, etc)

Back

What style has the lowest priority

Front

browser default

Back

Margin collapse is when ...

Front

elements have adjoining margins and the smaller of the two is collapsed

Back

If margin has 2 values

Front

values refer to top & bottom - left & right

Back

Margin collapse only affects

Front

top and bottom margins

Back

If padding property has 4 values

Front

they cover top, right, bottom, left

Back

Margin properties are used to

Front

generate space around elements

Back

If border-style has 2 values

Front

top and bottom same, left and right same

Back

If margin is set to 'auto'

Front

element will use specified width, remaining space split equally between left and right margins

Back

What must be set to use other border properties

Front

border-style

Back

Margin properties can have the following values (4)

Front

auto, length, %, inherit

Back

Can you have a negative value with margins

Front

yes

Back

If border-style has 1 value

Front

all 4 sides are the same

Back

What style method should be used sparingly

Front

inline

Back

What sides of an element accept padding

Front

all : top, right, bottom, left

Back

Border-width can be specific size, or (3)

Front

thin, medium, or thick

Back

Border-color can have 1 to 4 values for each

Front

side (order is top, right, bottom, left)

Back

What are the values for padding (3)

Front

length, %, and inherit

Back

If margin has 3 values

Front

values refer to top - right & left - bottom

Back

Command for border shorthand left side only

Front

border-left : width style color;

Back

How do you specify padding for only the top

Front

padding-top : __px;

Back

Margin properties set the size of

Front

the white space outside the border

Back

How do you set only the left margin

Front

margin-left: __px;

Back

Border-style property can have 1 to 4 values (4)

Front

top border, right border, bottom border, left border

Back

What does "inherit" mean for margins

Front

margin is inherited from the parent element

Back

What property indicates top style for the border

Front

border-top-style: solid;

Back

How do you specify padding for only the left side

Front

padding-left : __px;

Back

If margin has 4 values

Front

values refer to top - right - bottom - left

Back

If border-style has 4 values

Front

all 4 sides will be valued

Back

Multiple style sheet, which is used

Front

the last read style sheet

Back

If 'auto' is used with margins, the margin is set

Front

by the browser

Back

Border-style property specifies kind of borders (3)

Front

solid, dotted, dashed, double, groove, ridge, inset

Back

If margin has 1 value

Front

values refer to all sides

Back

If padding property has 3 values

Front

they cover top, left and right, bottom

Back

Section 6

(20 cards)

If height and width use %, it is a % of what

Front

dimensions will be % of the containing block

Back

Values for height and width (3)

Front

auto, length, or %

Back

How do you set the maximum width of an element

Front

max-width

Back

To calculate the full size of an element

Front

you must add width/height, padding, borders, and margins

Back

If height and width use auto, what determines the size

Front

the browser calculates them

Back

When the width of an element is greater that it container

Front

a scrollbar is created

Back

If padding property has 1 value

Front

it is assigned to all 4 sides

Back

Height and width do not include

Front

padding, borders, or margins

Back

Box model consists of (4)

Front

margins, borders, padding, and content

Back

How do you set the minimum height

Front

min-height: __px;

Back

A max-width : none means

Front

there is no maximum width

Back

Height and width properties are used to set

Front

the height and width of an element

Back

Total width of an element includes

Front

width + left padding + right padding + left border + right border + left margin + right margin

Back

When you set the width and height of an element you

Front

set the width and height of the content area

Back

Total height of an element includes

Front

height + top padding + bottom padding + top border + bottom border + top margin + bottom margin

Back

Height and width set the height/width of the

Front

area inside the padding, border, and margin of the element

Back

What value is missing from height and width

Front

inherit

Back

The value in max-width will overrides the value in

Front

width

Back

If padding property has 2 values

Front

they cover top and bottom, and left and right

Back

max-length property can be set to (3)

Front

length, %, or none

Back