SlideShare a Scribd company logo
1 of 45
Download to read offline
BARCAMP GENT 28 november 2008




       Meester van het CSS-
        universum worden /
     Opvolging “Craftsmanship”
Johan Ronsse
Meester van het CSS-
 universum worden
20 minuten
Layout
CSS = hulpmiddel
HTML + CSS
1


    Simple column system
<div class=quot;colsquot;>
	 <p>tekst</p>
</div>
<div class=quot;colsquot;>
	 <div class=quot;colquot;>
	 	 <p>tekst</p>
	 </div>
</div>
<div class=quot;colsquot;>
	 <div class=quot;colquot;>
	 	 <p>tekst</p>
	 </div>
	 <div class=quot;colquot;>
	 	 <p>tekst</p>
	 </div>
</div>
.col {
	 float: left;
	 width: 50%;
}
Uitbreiden
Meerdere breedtes
/* Default simple column system */
.columns .column { float: left; }

/* Two columns */
.columns .column-12,
.columns .column-24 { width: 49.9%; }

/* Three columns*/
.columns .column-23 { width: 66.5%; }
.columns .column-13 { width: 33.2%; }

/* Four columns */
.columns .column-14 { width: 24.9%; }
.columns .column-34 { width: 74.9%; }

/* Five columns */
.columns .column-15   {   width:   19.9%;   }
.columns .column-25   {   width:   39.9%;   }
.columns .column-35   {   width:   59.9%;   }
.columns .column-45   {   width:   79.9%;   }

/* Spacing divs to fit inside colunns: gutter width and 1/2 gutter width */
.columns .spacing-left { margin-left: 20px; }
.columns .spacing-left-half { margin-left: 10px; }
.columns .spacing-right { margin-right: 20px; }
.columns .spacing-right-half { margin-right: 10px; }
.columns .spacing-both-half { margin-right: 10px; margin-left: 10px; }
Marges
/* Default simple column system */
.columns .column { float: left; }

/* Two columns */
.columns .column-12,
.columns .column-24 { width: 49.9%; }

/* Three columns*/
.columns .column-23 { width: 66.5%; }
.columns .column-13 { width: 33.2%; }

/* Four columns */
.columns .column-14 { width: 24.9%; }
.columns .column-34 { width: 74.9%; }

/* Five columns */
.columns .column-15   {   width:   19.9%;   }
.columns .column-25   {   width:   39.9%;   }
.columns .column-35   {   width:   59.9%;   }
.columns .column-45   {   width:   79.9%;   }

/* Spacing divs to fit inside colunns: gutter width and 1/2 gutter width */
.columns .spacing-left { margin-left: 20px; }
.columns .spacing-left-half { margin-left: 10px; }
.columns .spacing-right { margin-right: 20px; }
.columns .spacing-right-half { margin-right: 10px; }
.columns .spacing-both-half { margin-right: 10px; margin-left: 10px; }
<div>-soup
<div class=quot;colsquot;>
	 <div class=quot;col col-2quot;>
	 	 <div class=quot;spacing-right-halfquot;>
	 	 	 <p>tekst</p>
	 	 </div>
	 </div>
	 <div class=quot;col-2quot;>
	 	 <div class=quot;spacing-left-halfquot;>
	 	 	 <p>tekst</p>
	 	 </div>
	 </div>
</div>
Gebruik: overal
2


    Grid column system
Begint bij ontwerp
Breedte kolom: 138px
Tussen kolommen: 12px
.cols { padding-left: 68px; float: left; }
.colshift { position: relative; bottom: 17px; }
.col { width: 138px; padding-right: 12px; float: left; }

.col-15 { width: 207px; } /* One and a half column */
.col-2 { width: 288px; } /* Double column */
.col-3 { width: 438px; } /* Triple column */
.col-4 { width: 588px; } /* Four columns */
.col-5 { width: 738px; } /* Five columns */
.col-6 { width: 888px; } /* Six columns */
.cols { padding-left: 68px; float: left; }
.col { width: 138px; padding-right: 12px; float: left; }

.col-15 { width: 207px; } /* One and a half column */
.col-2 { width: 288px; } /* Double column */
.col-3 { width: 438px; } /* Triple column */
.col-4 { width: 588px; } /* Four columns */
.col-5 { width: 738px; } /* Five columns */
.col-6 { width: 888px; } /* Six columns */
.cols { padding-left: 68px; float: left; }
.col { width: 138px; padding-right: 12px; float: left; }

.col-15 { width: 207px; } /* One and a half column */
.col-2 { width: 288px; } /* Double column */
.col-3 { width: 438px; } /* Triple column */
.col-4 { width: 588px; } /* Four columns */
.col-5 { width: 738px; } /* Five columns */
.col-6 { width: 888px; } /* Six columns */
Opvolging
“Craftsmansship”
“You don’t want to be
making mediocre stuff.”

                 IRA GLASS
Better.
Dankjewel!
Vragen?

More Related Content

More from Johan Ronsse

iOS design: a case study
iOS design: a case studyiOS design: a case study
iOS design: a case studyJohan Ronsse
 
Designing better user interfaces
Designing better user interfacesDesigning better user interfaces
Designing better user interfacesJohan Ronsse
 
Design for developers
Design for developersDesign for developers
Design for developersJohan Ronsse
 
The jump to freelance
The jump to freelanceThe jump to freelance
The jump to freelanceJohan Ronsse
 
Wolf fronteers 2010
Wolf fronteers 2010Wolf fronteers 2010
Wolf fronteers 2010Johan Ronsse
 

More from Johan Ronsse (8)

What is Bedrock?
What is Bedrock?What is Bedrock?
What is Bedrock?
 
iOS design: a case study
iOS design: a case studyiOS design: a case study
iOS design: a case study
 
Designing better user interfaces
Designing better user interfacesDesigning better user interfaces
Designing better user interfaces
 
Design for developers
Design for developersDesign for developers
Design for developers
 
The jump to freelance
The jump to freelanceThe jump to freelance
The jump to freelance
 
Wolf fronteers 2010
Wolf fronteers 2010Wolf fronteers 2010
Wolf fronteers 2010
 
CSS3 now
CSS3 nowCSS3 now
CSS3 now
 
Workflow
WorkflowWorkflow
Workflow
 

Meester van het CSS universum worden + Opvolging “Craftsmanship”

  • 1. BARCAMP GENT 28 november 2008 Meester van het CSS- universum worden / Opvolging “Craftsmanship”
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10. Meester van het CSS- universum worden
  • 15. 1 Simple column system
  • 16.
  • 18. <div class=quot;colsquot;> <div class=quot;colquot;> <p>tekst</p> </div> </div>
  • 19. <div class=quot;colsquot;> <div class=quot;colquot;> <p>tekst</p> </div> <div class=quot;colquot;> <p>tekst</p> </div> </div>
  • 20. .col { float: left; width: 50%; }
  • 21.
  • 24. /* Default simple column system */ .columns .column { float: left; } /* Two columns */ .columns .column-12, .columns .column-24 { width: 49.9%; } /* Three columns*/ .columns .column-23 { width: 66.5%; } .columns .column-13 { width: 33.2%; } /* Four columns */ .columns .column-14 { width: 24.9%; } .columns .column-34 { width: 74.9%; } /* Five columns */ .columns .column-15 { width: 19.9%; } .columns .column-25 { width: 39.9%; } .columns .column-35 { width: 59.9%; } .columns .column-45 { width: 79.9%; } /* Spacing divs to fit inside colunns: gutter width and 1/2 gutter width */ .columns .spacing-left { margin-left: 20px; } .columns .spacing-left-half { margin-left: 10px; } .columns .spacing-right { margin-right: 20px; } .columns .spacing-right-half { margin-right: 10px; } .columns .spacing-both-half { margin-right: 10px; margin-left: 10px; }
  • 26. /* Default simple column system */ .columns .column { float: left; } /* Two columns */ .columns .column-12, .columns .column-24 { width: 49.9%; } /* Three columns*/ .columns .column-23 { width: 66.5%; } .columns .column-13 { width: 33.2%; } /* Four columns */ .columns .column-14 { width: 24.9%; } .columns .column-34 { width: 74.9%; } /* Five columns */ .columns .column-15 { width: 19.9%; } .columns .column-25 { width: 39.9%; } .columns .column-35 { width: 59.9%; } .columns .column-45 { width: 79.9%; } /* Spacing divs to fit inside colunns: gutter width and 1/2 gutter width */ .columns .spacing-left { margin-left: 20px; } .columns .spacing-left-half { margin-left: 10px; } .columns .spacing-right { margin-right: 20px; } .columns .spacing-right-half { margin-right: 10px; } .columns .spacing-both-half { margin-right: 10px; margin-left: 10px; }
  • 28. <div class=quot;colsquot;> <div class=quot;col col-2quot;> <div class=quot;spacing-right-halfquot;> <p>tekst</p> </div> </div> <div class=quot;col-2quot;> <div class=quot;spacing-left-halfquot;> <p>tekst</p> </div> </div> </div>
  • 30. 2 Grid column system
  • 32.
  • 33.
  • 35.
  • 37.
  • 38. .cols { padding-left: 68px; float: left; } .colshift { position: relative; bottom: 17px; } .col { width: 138px; padding-right: 12px; float: left; } .col-15 { width: 207px; } /* One and a half column */ .col-2 { width: 288px; } /* Double column */ .col-3 { width: 438px; } /* Triple column */ .col-4 { width: 588px; } /* Four columns */ .col-5 { width: 738px; } /* Five columns */ .col-6 { width: 888px; } /* Six columns */
  • 39. .cols { padding-left: 68px; float: left; } .col { width: 138px; padding-right: 12px; float: left; } .col-15 { width: 207px; } /* One and a half column */ .col-2 { width: 288px; } /* Double column */ .col-3 { width: 438px; } /* Triple column */ .col-4 { width: 588px; } /* Four columns */ .col-5 { width: 738px; } /* Five columns */ .col-6 { width: 888px; } /* Six columns */
  • 40. .cols { padding-left: 68px; float: left; } .col { width: 138px; padding-right: 12px; float: left; } .col-15 { width: 207px; } /* One and a half column */ .col-2 { width: 288px; } /* Double column */ .col-3 { width: 438px; } /* Triple column */ .col-4 { width: 588px; } /* Four columns */ .col-5 { width: 738px; } /* Five columns */ .col-6 { width: 888px; } /* Six columns */
  • 42. “You don’t want to be making mediocre stuff.” IRA GLASS