

Lesson 11 Styling Elements with CSS
Presentation
•
Computers
•
7th Grade
•
Practice Problem
•
Medium
Laura FisherJohnson
Used 12+ times
FREE Resource
10 Slides • 6 Questions
1
Styling Elements
with CSS
Lesson 11
Unit 2
Computer Science Discoveries
2
Learning
Target
I can understand how to
use CSS to change non
text elements on a web
site
3
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
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?
background
page
every element that doesn't have it's own rules set listed
All elements even if they have their own rule set listed
6
Multiple Choice
Which elements to body styles apply to?
Text
All elements (HTML tags) on the page that have no other
Images
Headings
7
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?
body
p
h2
ALL elements can have a background color
9
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
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?
Border width
Border Color
Border Styles
It's not really important which comes first
12
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?
It moves the element around the page very slowly
It raises the element higher
The element moves vertically up the page
It places the element to the left, right, or center of the page
14
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?
Creates space at the sides and top and bottom of a page
allows for a certain amount of error in your coding
creates space around the element
None of the above
16
CREDITS
This presentation template is free for
everyone to use thanks to the following:
SLIDESCARNIVAL
PEXELS
for the presentation template
for the photos
Styling Elements
with CSS
Lesson 11
Unit 2
Computer Science Discoveries
Show answer
Auto Play
Slide 1 / 16
SLIDE
Similar Resources on Wayground
10 questions
Informative Writing-The Conclusion
Presentation
•
7th Grade
10 questions
elements
Presentation
•
7th Grade
10 questions
Much and Many
Presentation
•
7th Grade
10 questions
Regions and Relative Location of Asia
Presentation
•
7th Grade
12 questions
01.06 | Tone and Mood
Presentation
•
7th Grade
12 questions
Africa Religions & Ethnic Groups
Presentation
•
7th Grade
11 questions
Algebraic Expressions
Presentation
•
7th Grade
10 questions
Summary
Presentation
•
7th Grade
Popular Resources on Wayground
10 questions
Safety Day 2026 – Student Review
Quiz
•
9th Grade
21 questions
Continents and Oceans
Quiz
•
6th Grade
20 questions
Parts of Speech
Quiz
•
5th Grade
16 questions
Subject & Predicate
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
12 questions
Map Skills
Quiz
•
3rd Grade
22 questions
Continents and Oceans
Quiz
•
5th Grade
15 questions
Rounding Decimals
Quiz
•
5th Grade