SlideShare a Scribd company logo
Tuesday, July 15, 14
HTML IS LIKE
Tuesday, July 15, 14
Tuesday, July 15, 14
CSS IS ALL
Tuesday, July 15, 14
body {
    background-color: #d0e4fe;
}
h1 {
    color: orange;
    text-align: center;
}
p {
    font-family: "Times New Roman";
    font-size: 20px;
}
Tuesday, July 15, 14
Index.html style.css
Tuesday, July 15, 14
Index.html style.css
Tuesday, July 15, 14
http://www.filedropper.com/website_7
Tuesday, July 15, 14
Tuesday, July 15, 14
p	
  {
	
  	
  	
  	
  margin-­‐top:	
  100px;
	
  	
  	
  	
  margin-­‐bottom:	
  100px;
	
  	
  	
  	
  margin-­‐right:	
  150px;
	
  	
  	
  	
  margin-­‐left:	
  50px;
}
Tuesday, July 15, 14
p	
  {
	
  	
  	
  	
  margin:	
  100px	
  50px;
}
Tuesday, July 15, 14
p	
  {
	
  	
  	
  	
  padding-­‐top:	
  25px;
	
  	
  	
  	
  padding-­‐bottom:	
  25px;
	
  	
  	
  	
  padding-­‐right:	
  50px;
	
  	
  	
  	
  padding-­‐left:	
  50px;
}
Tuesday, July 15, 14
IT’S JUST A BUNCH OF BOXES!
Tuesday, July 15, 14
#divOne	
  {
	
  	
  	
  	
  width:	
  220px;
	
  	
  	
  	
  padding:	
  10px;
	
  	
  	
  	
  border:	
  5px	
  solid	
  gray;
	
  	
  	
  	
  background-­‐color:blue;
	
  	
  	
  	
  margin:	
  10px;	
  
}
<div	
  id=”divOne”>	
  PUT	
  SOME	
  
CONTENT	
  HERE
</div>
in	
  style.css
in	
  index.html
Tuesday, July 15, 14
#divTwo	
  {
	
  	
  	
  	
  width:	
  220px;
	
  	
  	
  	
  padding:	
  10px;
	
  	
  	
  	
  background-­‐color:yellow;
	
  	
  	
  	
  margin:	
  10px;	
  
}
<div	
  id=”divTwo”>	
  PUT	
  SOME	
  
CONTENT	
  HERE
</div>
in	
  style.css
in	
  index.html
Tuesday, July 15, 14
Tuesday, July 15, 14
div.layout-­‐1218	
  {	
  width:	
  1218px;	
  margin:	
  0px	
  auto;	
  }
div.row	
  {	
  height:	
  1%;	
  }
div.row-­‐end	
  {	
  clear:	
  both;	
  font:	
  1px/1px	
  sans-­‐serif;	
  height:	
  1px;	
  overflow:	
  hidden;	
  }
div.col1,	
  div.col2,	
  div.col3,	
  div.col4,	
  div.col5,	
  div.col6,	
  div.col7,	
  div.col8,	
  div.col9,	
  div.col10,	
  div.col11,	
  
div.col12,	
  div.col13,	
  div.col14,	
  div.col15,	
  div.col16	
  {	
  float:	
  left;	
  margin-­‐left:	
  30px;	
  }
div.col1:first-­‐child,	
  div.col2:first-­‐child,	
  div.col3:first-­‐child,	
  div.col4:first-­‐child,	
  div.col5:first-­‐child,	
  
div.col6:first-­‐child,	
  div.col7:first-­‐child,	
  div.col8:first-­‐child,	
  div.col9:first-­‐child,	
  div.col10:first-­‐child,	
  
div.col11:first-­‐child,	
  div.col12:first-­‐child,	
  div.col13:first-­‐child,	
  div.col14:first-­‐child,	
  div.col15:first-­‐child,	
  
div.col16:first-­‐child	
  {	
  margin-­‐left:	
  0px;	
  }
div.col1	
  {	
  width:	
  48px;	
  }
div.col2	
  {	
  width:	
  126px;	
  }
div.col3	
  {	
  width:	
  204px;	
  }
div.col4	
  {	
  width:	
  282px;	
  }
div.col5	
  {	
  width:	
  360px;	
  }
div.col6	
  {	
  width:	
  438px;	
  }
div.col7	
  {	
  width:	
  516px;	
  }
div.col8	
  {	
  width:	
  594px;	
  }
div.col9	
  {	
  width:	
  672px;	
  }
div.col10	
  {	
  width:	
  750px;	
  }
div.col11	
  {	
  width:	
  828px;	
  }
div.col12	
  {	
  width:	
  906px;	
  }
div.col13	
  {	
  width:	
  984px;	
  }
div.col14	
  {	
  width:	
  1062px;	
  }
div.col15	
  {	
  width:	
  1140px;	
  }
div.col16	
  {	
  width:	
  1218px;	
  }
STEAL EVERYTHING!!
http://978.gs/downloads/
Tuesday, July 15, 14
IDs vs Classes
Tuesday, July 15, 14
Tuesday, July 15, 14
#divOne	
  {
	
  	
  	
  	
  width:	
  220px;
	
  	
  	
  	
  padding:	
  10px;
	
  	
  	
  	
  border:	
  5px	
  solid	
  gray;
	
  	
  	
  	
  background-­‐color:blue;
	
  	
  	
  	
  margin:	
  10px;	
  
}
<div	
  id=”divOne”>	
  PUT	
  SOME	
  
CONTENT	
  HERE
</div>
in	
  style.css
in	
  index.html
Tuesday, July 15, 14
.divOne	
  {
	
  	
  	
  	
  width:	
  220px;
	
  	
  	
  	
  padding:	
  10px;
	
  	
  	
  	
  border:	
  5px	
  solid	
  gray;
	
  	
  	
  	
  background-­‐color:blue;
	
  	
  	
  	
  margin:	
  10px;	
  
}
<div	
  class=”divOne”>	
  PUT	
  
SOME	
  CONTENT	
  HERE
</div>
in	
  style.css
in	
  index.html
Tuesday, July 15, 14
YOU WILL ALWAYS FORGET THIS
IDs are for one time use
Classes are for stuff you will have a lot of
#
.
Tuesday, July 15, 14
Tuesday, July 15, 14
display:inline;
display:block;
VS
Tuesday, July 15, 14
In your CSS:
p {display:block;}
Tuesday, July 15, 14
float:left;
float:right;
VS
Tuesday, July 15, 14
In your CSS:
img {float:right;}
Tuesday, July 15, 14

More Related Content

Viewers also liked

Lesson 1
Lesson 1 Lesson 1
Lesson 1
citylore
 
Who wants to_be_a_millionaire_forces and machines
Who wants to_be_a_millionaire_forces and machinesWho wants to_be_a_millionaire_forces and machines
Who wants to_be_a_millionaire_forces and machinespaulaazaharareyes
 
Mn319 e marketing presentation glenroyal hotel
Mn319  e marketing presentation glenroyal hotelMn319  e marketing presentation glenroyal hotel
Mn319 e marketing presentation glenroyal hotel
Kevin Fitzsimons
 
Gary L Gillette
Gary L GilletteGary L Gillette
Gary L Gillette
GaryGillette
 
Processing ii
Processing iiProcessing ii
Processing ii
citylore
 
Who wants to_be_a_millionaire_forces and machines
Who wants to_be_a_millionaire_forces and machinesWho wants to_be_a_millionaire_forces and machines
Who wants to_be_a_millionaire_forces and machinespaulaazaharareyes
 
4o γελ χανιων
4o γελ χανιων4o γελ χανιων
4o γελ χανιων
xpapas
 
9th grade health
9th grade health9th grade health
9th grade healthhdpowell1
 
Describing objects
Describing objectsDescribing objects
Describing objects
paulaazaharareyes
 
Peripheral Vascular Injuries
Peripheral Vascular InjuriesPeripheral Vascular Injuries
Peripheral Vascular InjuriesLateef Khan
 
Presentation railways
Presentation railwaysPresentation railways
Presentation railwaysjags_champ
 

Viewers also liked (11)

Lesson 1
Lesson 1 Lesson 1
Lesson 1
 
Who wants to_be_a_millionaire_forces and machines
Who wants to_be_a_millionaire_forces and machinesWho wants to_be_a_millionaire_forces and machines
Who wants to_be_a_millionaire_forces and machines
 
Mn319 e marketing presentation glenroyal hotel
Mn319  e marketing presentation glenroyal hotelMn319  e marketing presentation glenroyal hotel
Mn319 e marketing presentation glenroyal hotel
 
Gary L Gillette
Gary L GilletteGary L Gillette
Gary L Gillette
 
Processing ii
Processing iiProcessing ii
Processing ii
 
Who wants to_be_a_millionaire_forces and machines
Who wants to_be_a_millionaire_forces and machinesWho wants to_be_a_millionaire_forces and machines
Who wants to_be_a_millionaire_forces and machines
 
4o γελ χανιων
4o γελ χανιων4o γελ χανιων
4o γελ χανιων
 
9th grade health
9th grade health9th grade health
9th grade health
 
Describing objects
Describing objectsDescribing objects
Describing objects
 
Peripheral Vascular Injuries
Peripheral Vascular InjuriesPeripheral Vascular Injuries
Peripheral Vascular Injuries
 
Presentation railways
Presentation railwaysPresentation railways
Presentation railways
 

Similar to Cssii

Html structure
Html structureHtml structure
Html structureakkias
 
Week ThreeExpress Holidayscssstyle.csshtml{ height 100.docx
Week ThreeExpress Holidayscssstyle.csshtml{ height 100.docxWeek ThreeExpress Holidayscssstyle.csshtml{ height 100.docx
Week ThreeExpress Holidayscssstyle.csshtml{ height 100.docx
philipnelson29183
 
CSS 3 Overview
CSS 3 OverviewCSS 3 Overview
CSS 3 Overview
Owen Williams
 
Making Links Magical Again with CSS
Making Links Magical Again with CSSMaking Links Magical Again with CSS
Making Links Magical Again with CSS
Jenn Lukas
 
untitled folder 6.DS_Store__MACOSXuntitled folder 6._.DS_.docx
untitled folder 6.DS_Store__MACOSXuntitled folder 6._.DS_.docxuntitled folder 6.DS_Store__MACOSXuntitled folder 6._.DS_.docx
untitled folder 6.DS_Store__MACOSXuntitled folder 6._.DS_.docx
dickonsondorris
 
Css for nondesigners
Css for nondesignersCss for nondesigners
Css for nondesigners
Ignacio Coloma
 
HTML5 and CSS3 Refresher
HTML5 and CSS3 RefresherHTML5 and CSS3 Refresher
HTML5 and CSS3 Refresher
Ivano Malavolta
 

Similar to Cssii (10)

Html structure
Html structureHtml structure
Html structure
 
FCIP SASS Talk
FCIP SASS TalkFCIP SASS Talk
FCIP SASS Talk
 
Theme verdadeiro
Theme verdadeiroTheme verdadeiro
Theme verdadeiro
 
Week ThreeExpress Holidayscssstyle.csshtml{ height 100.docx
Week ThreeExpress Holidayscssstyle.csshtml{ height 100.docxWeek ThreeExpress Holidayscssstyle.csshtml{ height 100.docx
Week ThreeExpress Holidayscssstyle.csshtml{ height 100.docx
 
CSS 3 Overview
CSS 3 OverviewCSS 3 Overview
CSS 3 Overview
 
Making Links Magical Again with CSS
Making Links Magical Again with CSSMaking Links Magical Again with CSS
Making Links Magical Again with CSS
 
untitled folder 6.DS_Store__MACOSXuntitled folder 6._.DS_.docx
untitled folder 6.DS_Store__MACOSXuntitled folder 6._.DS_.docxuntitled folder 6.DS_Store__MACOSXuntitled folder 6._.DS_.docx
untitled folder 6.DS_Store__MACOSXuntitled folder 6._.DS_.docx
 
CSS Box Model
CSS Box ModelCSS Box Model
CSS Box Model
 
Css for nondesigners
Css for nondesignersCss for nondesigners
Css for nondesigners
 
HTML5 and CSS3 Refresher
HTML5 and CSS3 RefresherHTML5 and CSS3 Refresher
HTML5 and CSS3 Refresher
 

Recently uploaded

A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
thanhdowork
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
EduSkills OECD
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
Tamralipta Mahavidyalaya
 
Multithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race conditionMultithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race condition
Mohammed Sikander
 
Group Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana BuscigliopptxGroup Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana Buscigliopptx
ArianaBusciglio
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
DhatriParmar
 
Normal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of LabourNormal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of Labour
Wasim Ak
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Atul Kumar Singh
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
Nguyen Thanh Tu Collection
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
Scholarhat
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
Levi Shapiro
 

Recently uploaded (20)

A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
Multithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race conditionMultithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race condition
 
Group Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana BuscigliopptxGroup Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana Buscigliopptx
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
 
Normal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of LabourNormal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of Labour
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
 

Cssii

  • 2. HTML IS LIKE Tuesday, July 15, 14
  • 4. CSS IS ALL Tuesday, July 15, 14
  • 5. body {     background-color: #d0e4fe; } h1 {     color: orange;     text-align: center; } p {     font-family: "Times New Roman";     font-size: 20px; } Tuesday, July 15, 14
  • 10. p  {        margin-­‐top:  100px;        margin-­‐bottom:  100px;        margin-­‐right:  150px;        margin-­‐left:  50px; } Tuesday, July 15, 14
  • 11. p  {        margin:  100px  50px; } Tuesday, July 15, 14
  • 12. p  {        padding-­‐top:  25px;        padding-­‐bottom:  25px;        padding-­‐right:  50px;        padding-­‐left:  50px; } Tuesday, July 15, 14
  • 13. IT’S JUST A BUNCH OF BOXES! Tuesday, July 15, 14
  • 14. #divOne  {        width:  220px;        padding:  10px;        border:  5px  solid  gray;        background-­‐color:blue;        margin:  10px;   } <div  id=”divOne”>  PUT  SOME   CONTENT  HERE </div> in  style.css in  index.html Tuesday, July 15, 14
  • 15. #divTwo  {        width:  220px;        padding:  10px;        background-­‐color:yellow;        margin:  10px;   } <div  id=”divTwo”>  PUT  SOME   CONTENT  HERE </div> in  style.css in  index.html Tuesday, July 15, 14
  • 17. div.layout-­‐1218  {  width:  1218px;  margin:  0px  auto;  } div.row  {  height:  1%;  } div.row-­‐end  {  clear:  both;  font:  1px/1px  sans-­‐serif;  height:  1px;  overflow:  hidden;  } div.col1,  div.col2,  div.col3,  div.col4,  div.col5,  div.col6,  div.col7,  div.col8,  div.col9,  div.col10,  div.col11,   div.col12,  div.col13,  div.col14,  div.col15,  div.col16  {  float:  left;  margin-­‐left:  30px;  } div.col1:first-­‐child,  div.col2:first-­‐child,  div.col3:first-­‐child,  div.col4:first-­‐child,  div.col5:first-­‐child,   div.col6:first-­‐child,  div.col7:first-­‐child,  div.col8:first-­‐child,  div.col9:first-­‐child,  div.col10:first-­‐child,   div.col11:first-­‐child,  div.col12:first-­‐child,  div.col13:first-­‐child,  div.col14:first-­‐child,  div.col15:first-­‐child,   div.col16:first-­‐child  {  margin-­‐left:  0px;  } div.col1  {  width:  48px;  } div.col2  {  width:  126px;  } div.col3  {  width:  204px;  } div.col4  {  width:  282px;  } div.col5  {  width:  360px;  } div.col6  {  width:  438px;  } div.col7  {  width:  516px;  } div.col8  {  width:  594px;  } div.col9  {  width:  672px;  } div.col10  {  width:  750px;  } div.col11  {  width:  828px;  } div.col12  {  width:  906px;  } div.col13  {  width:  984px;  } div.col14  {  width:  1062px;  } div.col15  {  width:  1140px;  } div.col16  {  width:  1218px;  } STEAL EVERYTHING!! http://978.gs/downloads/ Tuesday, July 15, 14
  • 18. IDs vs Classes Tuesday, July 15, 14
  • 20. #divOne  {        width:  220px;        padding:  10px;        border:  5px  solid  gray;        background-­‐color:blue;        margin:  10px;   } <div  id=”divOne”>  PUT  SOME   CONTENT  HERE </div> in  style.css in  index.html Tuesday, July 15, 14
  • 21. .divOne  {        width:  220px;        padding:  10px;        border:  5px  solid  gray;        background-­‐color:blue;        margin:  10px;   } <div  class=”divOne”>  PUT   SOME  CONTENT  HERE </div> in  style.css in  index.html Tuesday, July 15, 14
  • 22. YOU WILL ALWAYS FORGET THIS IDs are for one time use Classes are for stuff you will have a lot of # . Tuesday, July 15, 14
  • 25. In your CSS: p {display:block;} Tuesday, July 15, 14
  • 27. In your CSS: img {float:right;} Tuesday, July 15, 14