SlideShare a Scribd company logo
HOW TO DEVELOP A CSS FRAMEWORK
                                             By Olivier Besson




HOW TO DEVELOP
A CSS FRAMEWORK
By Olivier Besson - 2011
HOW TO DEVELOP A CSS FRAMEWORK
                                                            By Olivier Besson




OUTLINE

The goal here is to present step by step how to develop easily
your own CSS framework. I deliver here my own experience
witch is to reduce time to integrate a web design in an
environment already providing is own CSS like Wordpress,
Tapestry,…

Our objectives
 • Easily reusable
 • Short source code
 • Increase productivity
 • Decrease bugs
HOW TO DEVELOP A CSS FRAMEWORK
                                                               By Olivier Besson




RULES

Your CSS must be non intrusive
 • Use class instead of id’s ( #id  .class)
 • Reserved a very few number of Id’s and exclusivly for layout


Stay with a generic template and layout
 • No complete cascading style (.Table .Line .Cell .Link)
 • Think about version upgrades conflicts
 • Let your CSS framework be able to integrate new components
 • Use a comprehensive semantic
HOW TO DEVELOP A CSS FRAMEWORK
                                                         By Olivier Besson




FRAMEWORK FILES
@import url("ui_reset.css");
@import url("ui_typo.css");
@import url("ui_grid.css");
@import url("ui_unit.css");
@import url("ui_layout.css");
@import url("ui_form.css");
@import url("ui_table.css");
@import url("ui_generic.css");

@import url("ui_components.css");

@import url("ui_theme_default.css");
HOW TO DEVELOP A CSS FRAMEWORK
                                                                    By Olivier Besson



FRAMEWORK FILES
1. Layout

The first step is to think about your principal layout. This file will be
the only one with id’s in. Web 3.0 semantic can help you (header,
footer,…).

@import url("ui_reset.css");
@import url("ui_typo.css");
@import url("ui_grid.css");
@import url("ui_unit.css");
@import url("ui_layout.css");
@import url("ui_form.css");
@import url("ui_table.css");
@import url("ui_generic.css");
@import url("ui_components.css");
@import url("ui_theme_default.css");
HOW TO DEVELOP A CSS FRAMEWORK
                                                                By Olivier Besson



FRAMEWORK FILES
1. Layout

Try to describe your principal layout : columns, sidebars, …
HOW TO DEVELOP A CSS FRAMEWORK
                  By Olivier Besson
HOW TO DEVELOP A CSS FRAMEWORK
                                                                By Olivier Besson



FRAMEWORK FILES
1. Layout

Discuss with product owner if your web application will have specific
functionalities. Here I used 14 id’s, for main containers and
functionalities already identifyed.
  •   #container
        • #header
         • #user
         • #sections
        • #navigation
         • #nav-context
         • #nav-menu
        • #content
         • #breadcrumbs
         • #content-title
         • #context
         • #filter
         • #synthesis
         • #content-main
HOW TO DEVELOP A CSS FRAMEWORK
                                                                              By Olivier Besson



FRAMEWORK FILES
1. Layout

You can also use zoning and eye tracking research to identify how to
place your layout.

Percentage of user wich have seen the zone one time   Eyetracking on our layout




 Study by Ipsos Media with 3000 users on
 100 differents websites
HOW TO DEVELOP A CSS FRAMEWORK
                                                                 By Olivier Besson



FRAMEWORK FILES
2. Grid & Unit

The second step is to define your grid unit system. This will help you
to realize your prototypes. With the grid you think in proportion and
with the unit you think in pixels.

@import url("ui_reset.css");
@import url("ui_typo.css");
@import url("ui_grid.css");
@import url("ui_unit.css");
@import url("ui_layout.css");
@import url("ui_form.css");
@import url("ui_table.css");
@import url("ui_generic.css");
@import url("ui_components.css");
@import url("ui_theme_default.css");
HOW TO DEVELOP A CSS FRAMEWORK
                                                                   By Olivier Besson



FRAMEWORK FILES
2. Grid & Unit

Unit are fixed by the result of your resolution users statistics.




According to those statistics we will use a 960*600 grid system.
HOW TO DEVELOP A CSS FRAMEWORK
                            By Olivier Besson




UNIT-GRID : full layout
HOW TO DEVELOP A CSS FRAMEWORK
                           By Olivier Besson




UNIT-GRID : #content
HOW TO DEVELOP A CSS FRAMEWORK
                                                                By Olivier Besson




FRAMEWORK FILES
2. Grid & Unit

With your units you can precise min-width or fixed contents.
HOW TO DEVELOP A CSS FRAMEWORK
                                                                        By Olivier Besson




FRAMEWORK FILES
2. Grid & Unit

For the Grid I used the Yahoo Grid system wich provide all
proportions I need for my content.
http://yuilibrary.com/yui/docs/cssgrids/
 .yui3-u-1                .yui3-u-1-6      .yui3-u-1-24
 .yui3-u-1-2              .yui3-u-5-6      .yui3-u-5-24
 .yui3-u-1-3              .yui3-u-1-8      .yui3-u-7-24
 .yui3-u-2-3              .yui3-u-3-8      .yui3-u-11-24
 .yui3-u-1-4              .yui3-u-5-8      .yui3-u-13-24
 .yui3-u-3-4              .yui3-u-7-8      .yui3-u-17-24
 .yui3-u-1-5              .yui3-u-1-12     .yui3-u-19-24
 .yui3-u-2-5              .yui3-u-5-12     .yui3-u-23-24
 .yui3-u-3-5              .yui3-u-7-12
 .yui3-u-4-5              .yui3-u-11-12
HOW TO DEVELOP A CSS FRAMEWORK
                                                                          By Olivier Besson




http://yuilibrary.com/yui/docs/cssgrids/cssgrids-units-example.html
HOW TO DEVELOP A CSS FRAMEWORK
                                                                       By Olivier Besson



FRAMEWORK FILES
3. Reset

The third step is to prevent your design of navigators differents. The
best solution is to reset all pre-design associated to html tags.
I used this one:
http://meyerweb.com/eric/tools/css/reset/reset.css


@import url("ui_reset.css");
@import url("ui_typo.css");
@import url("ui_grid.css");
@import url("ui_unit.css");
@import url("ui_layout.css");
@import url("ui_form.css");
@import url("ui_table.css");
@import url("ui_generic.css");
@import url("ui_components.css");
@import url("ui_theme_default.css");
HOW TO DEVELOP A CSS FRAMEWORK
                                                                 By Olivier Besson



FRAMEWORK FILES
4. Typography

The fourth step is to describe basic colors and size of content html
tags sucha as H1, P, Legend,…

@import url("ui_reset.css");
@import url("ui_typo.css");
@import url("ui_grid.css");
@import url("ui_unit.css");
@import url("ui_layout.css");
@import url("ui_form.css");
@import url("ui_table.css");
@import url("ui_generic.css");
@import url("ui_components.css");
@import url("ui_theme_default.css");
HOW TO DEVELOP A CSS FRAMEWORK
                                                                By Olivier Besson



FRAMEWORK FILES
5. Forms & Tables

The fifth step is to define html tags specific for forms and tables.
Remember, be generic, you will be more specific if a component use
a form and do not match really with your generic CSS.

@import url("ui_reset.css");
@import url("ui_typo.css");
@import url("ui_grid.css");
@import url("ui_unit.css");
@import url("ui_layout.css");
@import url("ui_form.css");
@import url("ui_table.css");
@import url("ui_generic.css");
@import url("ui_components.css");
@import url("ui_theme_default.css");
HOW TO DEVELOP A CSS FRAMEWORK
                                                                   By Olivier Besson



FRAMEWORK FILES
6. Generic classes

In this file you create all basic design tips you will need. This file is
generally increased during the project when a css line become used
by many elements

@import url("ui_reset.css");
@import url("ui_typo.css");
@import url("ui_grid.css");
@import url("ui_unit.css");
@import url("ui_layout.css");
@import url("ui_form.css");
@import url("ui_table.css");
@import url("ui_generic.css");
@import url("ui_components.css");
@import url("ui_theme_default.css");
HOW TO DEVELOP A CSS FRAMEWORK
                                                                    By Olivier Besson




Ui_generic.css
.centered {              .content {
   margin-right: auto;     margin-left: 10px;
   margin-left: auto;      margin-right: 10px;
}                        }
.alright{                .content-height {
   text-align:right;       margin-top: 10px;
}                          margin-bottom: 10px;
.alleft{                 }
   text-align:left;      .content-right {
}                          margin-left: 10px;
.hidden {                }
   height: 1px;          .content-left {
   left: -9999px;          margin-right: 10px;
   overflow: hidden;     }
   position: absolute;   .content-text {
   top: 0;                 padding:6px;
   width: 1px;           }
}                        .content-last {
                           margin-right: 0;
                         }
                         .content-top {
                           margin-bottom: 6px;
                         }
HOW TO DEVELOP A CSS FRAMEWORK
                                                                 By Olivier Besson



FRAMEWORK FILES
7. Components

This is the last important step, this css file describe basic component
of web interfaces, such as buttons, warnings…
You can also describe Html5 components.

@import url("ui_reset.css");
@import url("ui_typo.css");
@import url("ui_grid.css");
@import url("ui_unit.css");
@import url("ui_layout.css");
@import url("ui_form.css");
@import url("ui_table.css");
@import url("ui_generic.css");
@import url("ui_components.css");
@import url("ui_theme_default.css");
HOW TO DEVELOP A CSS FRAMEWORK
                                                   By Olivier Besson




Ui_component.css

Navigator components :
•Buttons
                 Button    Box                 Layer
•Box
•Layers

Web framework component:

•Error

•Flash message
HOW TO DEVELOP A CSS FRAMEWORK
                                                                By Olivier Besson



FRAMEWORK FILES
8. Default theme

The final step is to define default backgrounds and images of your
elements. It’s like to add a skin on a 3D model.
Then you concentrate in this file all colors and images.

@import url("ui_reset.css");
@import url("ui_typo.css");
@import url("ui_grid.css");
@import url("ui_unit.css");
@import url("ui_layout.css");
@import url("ui_form.css");
@import url("ui_table.css");
@import url("ui_generic.css");
@import url("ui_components.css");
@import url("ui_theme_default.css");
HOW TO DEVELOP A CSS FRAMEWORK
                                                    By Olivier Besson




                 Thank you


        A full exemple is accessible here :
http://www.motsdimages.com/framework/layout.html

More Related Content

What's hot (14)

PDF
Be nice to your designers
Pai-Cheng Tao
 
PDF
Modular HTML & CSS Workshop
Shay Howe
 
PDF
Modular HTML & CSS Turbo Workshop
Shay Howe
 
PPTX
Css3
Bronson Quick
 
PPSX
Responsive Web Design: Tips and Tricks
Gautam Krishnan
 
PDF
WordCamp Raleigh 2018 - Beginner's Guide to Wordpress
Convinsys
 
PDF
実践!CSSデザインの「型」でみる視覚表現テクニック
Youji Sakai
 
PDF
Lightning fast sass
chriseppstein
 
PDF
[heweb11] HTML5 Makeover
Christopher Schmitt
 
PPT
Making Your Own CSS Framework
Dan Sagisser
 
PDF
[edUi] HTML5 Workshop
Christopher Schmitt
 
PDF
Responsive Web Design: Clever Tips and Techniques
Vitaly Friedman
 
PPTX
HTML5 and CSS3 Techniques You Can Use Today
Todd Anglin
 
PDF
CSS Lessons Learned the Hard Way (Generate Conf)
Zoe Gillenwater
 
Be nice to your designers
Pai-Cheng Tao
 
Modular HTML & CSS Workshop
Shay Howe
 
Modular HTML & CSS Turbo Workshop
Shay Howe
 
Responsive Web Design: Tips and Tricks
Gautam Krishnan
 
WordCamp Raleigh 2018 - Beginner's Guide to Wordpress
Convinsys
 
実践!CSSデザインの「型」でみる視覚表現テクニック
Youji Sakai
 
Lightning fast sass
chriseppstein
 
[heweb11] HTML5 Makeover
Christopher Schmitt
 
Making Your Own CSS Framework
Dan Sagisser
 
[edUi] HTML5 Workshop
Christopher Schmitt
 
Responsive Web Design: Clever Tips and Techniques
Vitaly Friedman
 
HTML5 and CSS3 Techniques You Can Use Today
Todd Anglin
 
CSS Lessons Learned the Hard Way (Generate Conf)
Zoe Gillenwater
 

Viewers also liked (18)

PPS
Fundraiser
yeseniamenendez
 
PPTX
Css framework
Olivier Besson
 
PDF
21 hepatopatia-alcoholica
Tania Ramirez
 
PPTX
TC Capstone Portfolio
AnneBerryman
 
PPTX
Social commerce 거울의 단면
Kyeongtae Kyeongtae
 
PPTX
Mediate Africa Dispute Resolution Services (Pty) Ltd
Antoinette Sienna Raw
 
PPTX
Don quijote de la mancha 2016
Ivannia Campos
 
PPTX
Grade 9 week without walls
Keckerle
 
PPTX
Why SEO? For the non expert.
xsdesigns
 
PPTX
TC Capstone
AnneBerryman
 
PPTX
creatividad y biografía
TukanPRO
 
PPTX
Employee wellbeing risk management programme
Antoinette Sienna Raw
 
ODP
Treball c.medi (Rius)
JENNI987
 
PPT
Culture on kvarner festivals and manifestations
melita23
 
PPT
Oldest croatian picture postcards
melita23
 
PPS
The miracle of snowflakes
melita23
 
PPT
Our school is an eco school croatia2
melita23
 
DOCX
đề Thi học sinh giỏi toán lop 6
Nguyễn Hưng
 
Fundraiser
yeseniamenendez
 
Css framework
Olivier Besson
 
21 hepatopatia-alcoholica
Tania Ramirez
 
TC Capstone Portfolio
AnneBerryman
 
Social commerce 거울의 단면
Kyeongtae Kyeongtae
 
Mediate Africa Dispute Resolution Services (Pty) Ltd
Antoinette Sienna Raw
 
Don quijote de la mancha 2016
Ivannia Campos
 
Grade 9 week without walls
Keckerle
 
Why SEO? For the non expert.
xsdesigns
 
TC Capstone
AnneBerryman
 
creatividad y biografía
TukanPRO
 
Employee wellbeing risk management programme
Antoinette Sienna Raw
 
Treball c.medi (Rius)
JENNI987
 
Culture on kvarner festivals and manifestations
melita23
 
Oldest croatian picture postcards
melita23
 
The miracle of snowflakes
melita23
 
Our school is an eco school croatia2
melita23
 
đề Thi học sinh giỏi toán lop 6
Nguyễn Hưng
 
Ad

Similar to Css framework (20)

PDF
CSS Best Practices
nolly00
 
PPTX
Class15
Jiyeon Lee
 
PDF
960 grid psd
Raju Nag
 
PDF
Accelerated Stylesheets
Wynn Netherland
 
KEY
Bringing sexy back to CSS: SASS/SCSS, LESS and Compass
Claudina Sarahe
 
PDF
Think Vitamin CSS
Nathan Smith
 
PDF
Accelerated grid theming using NineSixty (DrupalCon San Francisco 2010)
Four Kitchens
 
PPT
An Introduction to CSS Frameworks
Adrian Westlake
 
PDF
Refresh OKC
Nathan Smith
 
PPT
Web design-workflow
Peter Kaizer
 
PPT
Using a CSS Framework
Gareth Saunders
 
PDF
CSMess to OOCSS: Refactoring CSS with Object Oriented Design
Kate Travers
 
PDF
Accelerated grid theming using NineSixty (Drupal Design Camp Boston 2010)
Four Kitchens
 
PDF
CSS: a rapidly changing world
Russ Weakley
 
PPT
CSS Frameworks: Faster Layout, Consistent Results
Steve Hong
 
PDF
CSS3 Layout
Zoe Gillenwater
 
KEY
CSS3 for web designer - How to design a visually appealing website
Mario Hernandez
 
PDF
Accelerated grid theming using NineSixty (Drupal Design Camp Boston 2009)
Four Kitchens
 
KEY
Getting started with CSS frameworks using Zurb foundation
Melanie Archer
 
PDF
DRY CSS A don’t-repeat-yourself methodology for creating efficient, unified a...
Jer Clarke
 
CSS Best Practices
nolly00
 
Class15
Jiyeon Lee
 
960 grid psd
Raju Nag
 
Accelerated Stylesheets
Wynn Netherland
 
Bringing sexy back to CSS: SASS/SCSS, LESS and Compass
Claudina Sarahe
 
Think Vitamin CSS
Nathan Smith
 
Accelerated grid theming using NineSixty (DrupalCon San Francisco 2010)
Four Kitchens
 
An Introduction to CSS Frameworks
Adrian Westlake
 
Refresh OKC
Nathan Smith
 
Web design-workflow
Peter Kaizer
 
Using a CSS Framework
Gareth Saunders
 
CSMess to OOCSS: Refactoring CSS with Object Oriented Design
Kate Travers
 
Accelerated grid theming using NineSixty (Drupal Design Camp Boston 2010)
Four Kitchens
 
CSS: a rapidly changing world
Russ Weakley
 
CSS Frameworks: Faster Layout, Consistent Results
Steve Hong
 
CSS3 Layout
Zoe Gillenwater
 
CSS3 for web designer - How to design a visually appealing website
Mario Hernandez
 
Accelerated grid theming using NineSixty (Drupal Design Camp Boston 2009)
Four Kitchens
 
Getting started with CSS frameworks using Zurb foundation
Melanie Archer
 
DRY CSS A don’t-repeat-yourself methodology for creating efficient, unified a...
Jer Clarke
 
Ad

Recently uploaded (20)

PDF
safiyayahaya-portfoliohighres-171228115344.pdf
architectsdreamdesig1
 
PDF
Introductory Plant Pathology Class Slides.pdf
tabishek325
 
PPTX
西班牙硕士毕业证加泰罗尼亚理工大学文凭证书UPC录取通知书2025年新版
Taqyea
 
PDF
GATE-26_AE_Online_CGATE-26_AE_Online_CGATE-26_AE_Online_C
aerom2341
 
PPTX
search engine optimization123244556.pptx
revathi148366
 
PDF
Design Social Change Creating Social Change
Eduardo Corrêa
 
PDF
Florida Gulf Coast University (FGCU) Diploma
bogusdiploma
 
PDF
Decorative Glass Dubai /Decorative Glass Dubai
Royal Matrixs
 
PPTX
Rubik’s cube learning in 3 fast days or just 12 hours
dhavitkumar119
 
PDF
Balance Your Home with These Vastu Tips!
https://homzinterio.in/
 
PDF
Dynamic Visuals for NJ Commercial Spaces
Yantram Animation Studio Corporation
 
PPTX
assignmesmcnjjanckujeckusent2-summit1.pptx
DoanHoaiAnhDuongK18C
 
PDF
IDES-502_Project-1-Home_Presentation-Boards_Codamon.pdf
codamona
 
PPTX
Infection Control Practicesin do ors .pptx
drinayadfm
 
PPTX
Presentationghjgghjhg (11)hcpckxgjt.pptx
ishafarikarbel
 
PDF
inbound6040378307114221962.pdf.dowload...
kayesetinasan
 
PPTX
Power BI - The future of Data Presentation and Visualizations
Techera
 
PDF
ppt for school nd college work helpful for student
krn6831
 
PDF
Graphic Designing Article All about Graphic Designing
Techera
 
PPTX
BMC S6 M3 P1 building mATERIALS AND CONSTRUCTION.pptx
RizwanAlavi
 
safiyayahaya-portfoliohighres-171228115344.pdf
architectsdreamdesig1
 
Introductory Plant Pathology Class Slides.pdf
tabishek325
 
西班牙硕士毕业证加泰罗尼亚理工大学文凭证书UPC录取通知书2025年新版
Taqyea
 
GATE-26_AE_Online_CGATE-26_AE_Online_CGATE-26_AE_Online_C
aerom2341
 
search engine optimization123244556.pptx
revathi148366
 
Design Social Change Creating Social Change
Eduardo Corrêa
 
Florida Gulf Coast University (FGCU) Diploma
bogusdiploma
 
Decorative Glass Dubai /Decorative Glass Dubai
Royal Matrixs
 
Rubik’s cube learning in 3 fast days or just 12 hours
dhavitkumar119
 
Balance Your Home with These Vastu Tips!
https://homzinterio.in/
 
Dynamic Visuals for NJ Commercial Spaces
Yantram Animation Studio Corporation
 
assignmesmcnjjanckujeckusent2-summit1.pptx
DoanHoaiAnhDuongK18C
 
IDES-502_Project-1-Home_Presentation-Boards_Codamon.pdf
codamona
 
Infection Control Practicesin do ors .pptx
drinayadfm
 
Presentationghjgghjhg (11)hcpckxgjt.pptx
ishafarikarbel
 
inbound6040378307114221962.pdf.dowload...
kayesetinasan
 
Power BI - The future of Data Presentation and Visualizations
Techera
 
ppt for school nd college work helpful for student
krn6831
 
Graphic Designing Article All about Graphic Designing
Techera
 
BMC S6 M3 P1 building mATERIALS AND CONSTRUCTION.pptx
RizwanAlavi
 

Css framework

  • 1. HOW TO DEVELOP A CSS FRAMEWORK By Olivier Besson HOW TO DEVELOP A CSS FRAMEWORK By Olivier Besson - 2011
  • 2. HOW TO DEVELOP A CSS FRAMEWORK By Olivier Besson OUTLINE The goal here is to present step by step how to develop easily your own CSS framework. I deliver here my own experience witch is to reduce time to integrate a web design in an environment already providing is own CSS like Wordpress, Tapestry,… Our objectives • Easily reusable • Short source code • Increase productivity • Decrease bugs
  • 3. HOW TO DEVELOP A CSS FRAMEWORK By Olivier Besson RULES Your CSS must be non intrusive • Use class instead of id’s ( #id  .class) • Reserved a very few number of Id’s and exclusivly for layout Stay with a generic template and layout • No complete cascading style (.Table .Line .Cell .Link) • Think about version upgrades conflicts • Let your CSS framework be able to integrate new components • Use a comprehensive semantic
  • 4. HOW TO DEVELOP A CSS FRAMEWORK By Olivier Besson FRAMEWORK FILES @import url("ui_reset.css"); @import url("ui_typo.css"); @import url("ui_grid.css"); @import url("ui_unit.css"); @import url("ui_layout.css"); @import url("ui_form.css"); @import url("ui_table.css"); @import url("ui_generic.css"); @import url("ui_components.css"); @import url("ui_theme_default.css");
  • 5. HOW TO DEVELOP A CSS FRAMEWORK By Olivier Besson FRAMEWORK FILES 1. Layout The first step is to think about your principal layout. This file will be the only one with id’s in. Web 3.0 semantic can help you (header, footer,…). @import url("ui_reset.css"); @import url("ui_typo.css"); @import url("ui_grid.css"); @import url("ui_unit.css"); @import url("ui_layout.css"); @import url("ui_form.css"); @import url("ui_table.css"); @import url("ui_generic.css"); @import url("ui_components.css"); @import url("ui_theme_default.css");
  • 6. HOW TO DEVELOP A CSS FRAMEWORK By Olivier Besson FRAMEWORK FILES 1. Layout Try to describe your principal layout : columns, sidebars, …
  • 7. HOW TO DEVELOP A CSS FRAMEWORK By Olivier Besson
  • 8. HOW TO DEVELOP A CSS FRAMEWORK By Olivier Besson FRAMEWORK FILES 1. Layout Discuss with product owner if your web application will have specific functionalities. Here I used 14 id’s, for main containers and functionalities already identifyed. • #container • #header • #user • #sections • #navigation • #nav-context • #nav-menu • #content • #breadcrumbs • #content-title • #context • #filter • #synthesis • #content-main
  • 9. HOW TO DEVELOP A CSS FRAMEWORK By Olivier Besson FRAMEWORK FILES 1. Layout You can also use zoning and eye tracking research to identify how to place your layout. Percentage of user wich have seen the zone one time Eyetracking on our layout Study by Ipsos Media with 3000 users on 100 differents websites
  • 10. HOW TO DEVELOP A CSS FRAMEWORK By Olivier Besson FRAMEWORK FILES 2. Grid & Unit The second step is to define your grid unit system. This will help you to realize your prototypes. With the grid you think in proportion and with the unit you think in pixels. @import url("ui_reset.css"); @import url("ui_typo.css"); @import url("ui_grid.css"); @import url("ui_unit.css"); @import url("ui_layout.css"); @import url("ui_form.css"); @import url("ui_table.css"); @import url("ui_generic.css"); @import url("ui_components.css"); @import url("ui_theme_default.css");
  • 11. HOW TO DEVELOP A CSS FRAMEWORK By Olivier Besson FRAMEWORK FILES 2. Grid & Unit Unit are fixed by the result of your resolution users statistics. According to those statistics we will use a 960*600 grid system.
  • 12. HOW TO DEVELOP A CSS FRAMEWORK By Olivier Besson UNIT-GRID : full layout
  • 13. HOW TO DEVELOP A CSS FRAMEWORK By Olivier Besson UNIT-GRID : #content
  • 14. HOW TO DEVELOP A CSS FRAMEWORK By Olivier Besson FRAMEWORK FILES 2. Grid & Unit With your units you can precise min-width or fixed contents.
  • 15. HOW TO DEVELOP A CSS FRAMEWORK By Olivier Besson FRAMEWORK FILES 2. Grid & Unit For the Grid I used the Yahoo Grid system wich provide all proportions I need for my content. http://yuilibrary.com/yui/docs/cssgrids/ .yui3-u-1 .yui3-u-1-6 .yui3-u-1-24 .yui3-u-1-2 .yui3-u-5-6 .yui3-u-5-24 .yui3-u-1-3 .yui3-u-1-8 .yui3-u-7-24 .yui3-u-2-3 .yui3-u-3-8 .yui3-u-11-24 .yui3-u-1-4 .yui3-u-5-8 .yui3-u-13-24 .yui3-u-3-4 .yui3-u-7-8 .yui3-u-17-24 .yui3-u-1-5 .yui3-u-1-12 .yui3-u-19-24 .yui3-u-2-5 .yui3-u-5-12 .yui3-u-23-24 .yui3-u-3-5 .yui3-u-7-12 .yui3-u-4-5 .yui3-u-11-12
  • 16. HOW TO DEVELOP A CSS FRAMEWORK By Olivier Besson http://yuilibrary.com/yui/docs/cssgrids/cssgrids-units-example.html
  • 17. HOW TO DEVELOP A CSS FRAMEWORK By Olivier Besson FRAMEWORK FILES 3. Reset The third step is to prevent your design of navigators differents. The best solution is to reset all pre-design associated to html tags. I used this one: http://meyerweb.com/eric/tools/css/reset/reset.css @import url("ui_reset.css"); @import url("ui_typo.css"); @import url("ui_grid.css"); @import url("ui_unit.css"); @import url("ui_layout.css"); @import url("ui_form.css"); @import url("ui_table.css"); @import url("ui_generic.css"); @import url("ui_components.css"); @import url("ui_theme_default.css");
  • 18. HOW TO DEVELOP A CSS FRAMEWORK By Olivier Besson FRAMEWORK FILES 4. Typography The fourth step is to describe basic colors and size of content html tags sucha as H1, P, Legend,… @import url("ui_reset.css"); @import url("ui_typo.css"); @import url("ui_grid.css"); @import url("ui_unit.css"); @import url("ui_layout.css"); @import url("ui_form.css"); @import url("ui_table.css"); @import url("ui_generic.css"); @import url("ui_components.css"); @import url("ui_theme_default.css");
  • 19. HOW TO DEVELOP A CSS FRAMEWORK By Olivier Besson FRAMEWORK FILES 5. Forms & Tables The fifth step is to define html tags specific for forms and tables. Remember, be generic, you will be more specific if a component use a form and do not match really with your generic CSS. @import url("ui_reset.css"); @import url("ui_typo.css"); @import url("ui_grid.css"); @import url("ui_unit.css"); @import url("ui_layout.css"); @import url("ui_form.css"); @import url("ui_table.css"); @import url("ui_generic.css"); @import url("ui_components.css"); @import url("ui_theme_default.css");
  • 20. HOW TO DEVELOP A CSS FRAMEWORK By Olivier Besson FRAMEWORK FILES 6. Generic classes In this file you create all basic design tips you will need. This file is generally increased during the project when a css line become used by many elements @import url("ui_reset.css"); @import url("ui_typo.css"); @import url("ui_grid.css"); @import url("ui_unit.css"); @import url("ui_layout.css"); @import url("ui_form.css"); @import url("ui_table.css"); @import url("ui_generic.css"); @import url("ui_components.css"); @import url("ui_theme_default.css");
  • 21. HOW TO DEVELOP A CSS FRAMEWORK By Olivier Besson Ui_generic.css .centered { .content { margin-right: auto; margin-left: 10px; margin-left: auto; margin-right: 10px; } } .alright{ .content-height { text-align:right; margin-top: 10px; } margin-bottom: 10px; .alleft{ } text-align:left; .content-right { } margin-left: 10px; .hidden { } height: 1px; .content-left { left: -9999px; margin-right: 10px; overflow: hidden; } position: absolute; .content-text { top: 0; padding:6px; width: 1px; } } .content-last { margin-right: 0; } .content-top { margin-bottom: 6px; }
  • 22. HOW TO DEVELOP A CSS FRAMEWORK By Olivier Besson FRAMEWORK FILES 7. Components This is the last important step, this css file describe basic component of web interfaces, such as buttons, warnings… You can also describe Html5 components. @import url("ui_reset.css"); @import url("ui_typo.css"); @import url("ui_grid.css"); @import url("ui_unit.css"); @import url("ui_layout.css"); @import url("ui_form.css"); @import url("ui_table.css"); @import url("ui_generic.css"); @import url("ui_components.css"); @import url("ui_theme_default.css");
  • 23. HOW TO DEVELOP A CSS FRAMEWORK By Olivier Besson Ui_component.css Navigator components : •Buttons Button Box Layer •Box •Layers Web framework component: •Error •Flash message
  • 24. HOW TO DEVELOP A CSS FRAMEWORK By Olivier Besson FRAMEWORK FILES 8. Default theme The final step is to define default backgrounds and images of your elements. It’s like to add a skin on a 3D model. Then you concentrate in this file all colors and images. @import url("ui_reset.css"); @import url("ui_typo.css"); @import url("ui_grid.css"); @import url("ui_unit.css"); @import url("ui_layout.css"); @import url("ui_form.css"); @import url("ui_table.css"); @import url("ui_generic.css"); @import url("ui_components.css"); @import url("ui_theme_default.css");
  • 25. HOW TO DEVELOP A CSS FRAMEWORK By Olivier Besson Thank you A full exemple is accessible here : http://www.motsdimages.com/framework/layout.html