WDD : Implementation (CSS) Flashcards

1
Q

Inline CSS

A

This is when the CSS command is inside a specific tag.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Internal CSS

A

This is when the CSS code is saved in the individual web page code.
This CSS can only be accessed by the web page.
Can make the coding FOR THIS PAGE ONLY more efficient.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

External CSS

A

This is when the CSS code is saved in a separate file.
This CSS can be accessed by any web page
Can make coding FOR MANY WEB PAGES more effecient.
Makes ensuring conistency FOR MANY PAGES easier.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Control appearance and positioning:

display:block

A

an element uses the entire width of its container

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Control appearance and positioning:

display:inline

A

an elemnt uses only as much width as necessary

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Control appearance and positioning:

Display:none

A

an elemnt is not visible

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Control appearance and positioning:

float: left
float: right

A

Displays the element to the left/right hand side of other elements

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Control appearance and positioning:

clear:both

A

States that an element is not allowed to floar on the LEFT or RIGHT side.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Control appearance and positioning:

Margin

A

A transparent area around the outside of an element.

Margins can be declared as :
margin = Margin is declared on all 4 sides
margin-top = Margin is decalred on the top
margin-right = Margin is decalred on the right
margin-bottom = Margin is declared on the bottom
margin-left= Margin is declared on the left

These properties may have the values:
auto (calculated by the browser) is normally used to positiona an element in the middle of the browser’s window or within another element.
length (usually in pixels)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Control appearance and positioning:

Padding

A

A transperent area inside the edge of an element.

Paddings can be declared as:
padding
padding-top
padding-right
padding-bottom
padding-left

These properties may have the value:
length (usually in pixels)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Control appearance and positioning:

Width and height

A

These allow for the size of an element to be defined

Measured as either
Percentage
Pixels
Centimetres

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Creating Horizontal Navigational Bars

A
  1. Remove bullter points
    nav li {list-style-type:none}
  2. Positioning list items horizonataly
    nav ul li {float:left}
  3. Spacing out each item
    nav ul li {float:left; width:100px; text-allign:center;}
  4. Creating clickable boxes
    nav ul li a {display:block}
  5. Add colour to clickable boxes when hover
    nav ul li a:hover {background-color:blue ;color:white}
How well did you know this?
1
Not at all
2
3
4
5
Perfectly