















































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
4) P {font-family: arial; font-size: 13pt; color: blue; margin-left: 1in; margin-right: 1in; text-align: right; }. The paragraph tag has both margins by 1 ...
Typology: Slides
1 / 55
This page cannot be seen from the preview
Don't miss anything!
















































CSS
**
inline styles
inline styles
inline styles
inline styles inline styles **Font Lengths
there are lots of style properties whose value is specified as somekind of length, including font sizes, indentation, spacing, etc.Lengths are specified using a number followed by a 2 letter code thatindicates the units. Some of the common unit codes are:
Color
Text Properties
Font properties determine the size, color and style ofcharacters. Text properties determine the spacing andalignment. Here are some of the text properties
:
Width of the letterM for that font(and height)
Height of theUpperCase letteris the same as ofthe lowercase x ofthat font
Based on themonitor'sresolution
Relative Length Values
xx-small
x-small
small medium large x-large xx-large
Absolute Length Values
Name
Type of Unit
What It Is
Example
cm
Centimeters
5.1cm
pc
Picas
Generally usedto describe fontsize. 1pc =12pt
3pc
mm
Millimeters
25mm
pt
Point
Generally usedto describe fontsize. 36pt = 1/2inch
12pt
in
Inches
1 inch = 2.54cm
2.25in
This is my paragraph. It should start out with an aquabackground and purple text. I'm thinking about changingcolors soon. Once I change I'll start a span with some otherstuff, perhaps a red background. OK here goes.This part of the paragraph should have a red backgroundand the text should be in white.This text is after the end of the span, so it should not havea red background.
WIDER
is better.
We all need to**
SPAN style="letter-spacing:10pt;font-
family: Arial; background-color:white;color: lime;">LEARN
and to understand how to use
** CSS
Cursor Types
Embedded Styles (Global)
Embedded CSS
(the Intended way)
1. Style Rules defined only once2. Create one place to store all Styles3. Linked to many Web pages4. Embedded Styles require less work!
Set Background colors or imagesSet one or more marginsDraw Borders in different sizes and colors.
**5. Embedded Styles are different sizes and colors.6. Embedded Styles use Curly Braces.To embed your **
Embedded Styling