Week 5
Week 5
P {
Width: 250px;
Border: 3px dotted #0088d;}
Padding?
P {
Width: 275px;
Border: 2px solid #0088dd;}
P.example {
Padding: 10px;}
-> ( Easier to read due to the availability of paddin
Body {
Text-allign: center;}
P {
Width: 300px;
Padding: 50px;
Border: 20px solid #00888dd;}
P.example {
Margin: 10px auto 10 px auto; " -> First=Top. Second=B
Text-allign: left;}
P.example {
Margin: 20px;}
Li {
Display: inline;
Margin-right: 10px;}
=Right. Third=Bottom.
ng )
Bottom "
Change inline / block display
Li {
Display: inline;
Margin-right: 10px;}
Li.coming-soon {
Display: none;}
-> Hidden for users, but it is there ready to be relea
Also you can do the following:
Li.coming-soon {
visibility: hidden;}
-> Users will be able to see there is an empty list, w
on
P {
Border-radius: 10px;}
-> Determine how rounded the corner is
Summary:
5-2)
The Example:
'HTML'
List
Unordered List
Paragraph
'CSS'
ally line
'CSS'
ol {
List-style-type: lower-roman;}
-> "Lower-Roman" To change the sort from "1- 2-" to "i, iV
Ordered List
- Decimal - 1 , 2 , 3
- Decimal-Leading-Zero - 01 , 02 , 03
- Lower-Alpha a, b, c
- Upper-Alpha A, B, C
- Lower-Roman i , ii
- Upper-Roman I, II, III
ul {
List-style-image: url ( "star.png " );}
li {
Margin: 10px 0px 0px 0px;}
ul.illiminations {
LIZED'
V"
ul {
Width: 250px;}
li {
Margin: 10px;}
ul.illiminations {
List-style-position: outside;}
ul.season {
List-style-position: inside;}
ul {
List-style: inside cicle; -> like letter 'o' discuss
Width: 300px;}
li {
Margin: 10px 0px 1px 5px;}
5-4
a {
Cursor: move;}
5-5) Layout
Building Blocks:
text
d to do
Building Blocks:
○ Inline
○ Block-Level
.clear {
Clear: left;}
-> The Paragraph will begin from a new space or row, its l
.Clear {
Clear: -
-> Can be left, right, both or none
Floating Elements:
fault
Floating Elements:
Multi-Column:
○ Width
• This sets the the width of the column
○ Float
• This positions the columns next to each other
○ Margin
○ Width
• This sets the the width of the column
○ Float
• This positions the columns next to each other
○ Margin
• This creates a gap between the columns
<div> is used to create columns
Note:
The higher resolution the smaller text appears!!
Note "RULES":
As with all style sheets, if two rules apply to the sa
that appear later in a document will take precedence o
Summary:
per inch