Search Header Logo
Lesson 11 Styling Elements with CSS

Lesson 11 Styling Elements with CSS

Assessment

Presentation

•

Computers

•

7th Grade

•

Practice Problem

•

Medium

Created by

Laura FisherJohnson

Used 12+ times

FREE Resource

10 Slides • 6 Questions

1

media
media
media
media
media
media
media

Styling Elements

with CSS

Lesson 11

Unit 2

Computer Science Discoveries

2

media
media
media
media

Learning

Target

I can understand how to

use CSS to change non

text elements on a web

site

3

media
media

Career Connection

Associated

Careers

Starting Salary

$60,000

This course is a project-based course that
develops career and communication skills in
Webdesign using Adobe tools. This course is
aligned to the Adobe Dreamweaver
certification. English language arts are
reinforced.

ADOBE Digital DESIGN II 432X0A

Credential Exam: Adobe Dreamweaver

Web Developer, Graphic
Designer, Content
Developer

4

media
media
media

Styling the Body

EXAMPLE
Results

Exceptions

Any style you see
inside this page will
apply to every
element on the page/website.

If the element has its
own rule set listed on
the page, the
element’s rule set
takes precedence.

body {
text-align: center;
color: blue;
}

This would make all text on the page blue and centered

5

Multiple Choice

Which elements of a page will the body styles apply to?

1

background

2

page

3

every element that doesn't have it's own rules set listed

4

All elements even if they have their own rule set listed

6

Multiple Choice

Which elements to body styles apply to?

1

Text

2

All elements (HTML tags) on the page that have no other

3

Images

4

Headings

7

media
media

background-color

●

Sets the background color of an element

●

Can set the whole page's background color or can highlight text.

●

Examples:
○

body{
background-color: purple;
}

○

p {

background-color: yellow;

}

8

Multiple Choice

Which tag can the background-color style be used in?

1

body

2

p

3

h2

4

ALL elements can have a background color

9

media
media
media
media
media
media
media
media
media
media
media
media
media

Border-Style

Results

Important Note

The border-style options are to
the far left. The code that utilizes
these options is to the right of
the results examples.

You MUST set the
border-style before
any other styles can
be applied to the
border

10

media
media
media
media

Other Border Styles

EXAMPLE

border-color

border-width

This changes the color
of the border around
the element. In this
case, a paragraph.

This determines how
thick the border will
be around the
element. In this case a
paragraph.

In this example, a blue border that is 25 pixels in
thickness is created around the paragraph.

11

Multiple Choice

Which style MUST be applied first when using border styles?

1

Border width

2

Border Color

3

Border Styles

4

It's not really important which comes first

12

media
media
media
media
media
media

Other Elements

height: 100;

sets the height of an element. In this

case the height is set to 100px.

width:100;

sets the width of an element. In this

case the width is set to 100px.

float: right;

places an element on a particular

side of the page. In this case, it
places it on the right side of the

page.

​Best Used in rulesets for text elements or images

13

Multiple Choice

What does the float element do?

1

It moves the element around the page very slowly

2

It raises the element higher

3

The element moves vertically up the page

4

It places the element to the left, right, or center of the page

14

media
media

margin

●

generates space around the element

●

Can set the whole pages background color or can highlight text.

●

Examples:
○

p {
margin: 35px;
}

15

Multiple Choice

What does the margin style do?

1

Creates space at the sides and top and bottom of a page

2

allows for a certain amount of error in your coding

3

creates space around the element

4

None of the above

16

media
media
media
media

CREDITS

This presentation template is free for

everyone to use thanks to the following:

SLIDESCARNIVAL

PEXELS

for the presentation template

for the photos

pattern-tertiary
media
media
media
media
media
media
media

Styling Elements

with CSS

Lesson 11

Unit 2

Computer Science Discoveries

Show answer

Auto Play

Slide 1 / 16

SLIDE