SlideShare une entreprise Scribd logo
1  sur  27
Télécharger pour lire hors ligne
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

Contenu connexe

En vedette

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 hotelKevin Fitzsimons
 
Processing ii
Processing iiProcessing ii
Processing iicitylore
 
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
 
Peripheral Vascular Injuries
Peripheral Vascular InjuriesPeripheral Vascular Injuries
Peripheral Vascular InjuriesLateef Khan
 
Presentation railways
Presentation railwaysPresentation railways
Presentation railwaysjags_champ
 

En vedette (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
 

Similaire à 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.docxphilipnelson29183
 
Making Links Magical Again with CSS
Making Links Magical Again with CSSMaking Links Magical Again with CSS
Making Links Magical Again with CSSJenn 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_.docxdickonsondorris
 
HTML5 and CSS3 Refresher
HTML5 and CSS3 RefresherHTML5 and CSS3 Refresher
HTML5 and CSS3 RefresherIvano Malavolta
 

Similaire à 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
 

Dernier

How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 
FILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipinoFILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipinojohnmickonozaleda
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)lakshayb543
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptxmary850239
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfJemuel Francisco
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...Postal Advocate Inc.
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYKayeClaireEstoconing
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...Nguyen Thanh Tu Collection
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptxmary850239
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfSpandanaRallapalli
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4MiaBumagat1
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 

Dernier (20)

How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
FILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipinoFILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipino
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptxYOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
 
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptxLEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdf
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 

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