SlideShare une entreprise Scribd logo
1  sur  21
Télécharger pour lire hors ligne
CSS Framework?
      What’s out there?
             Conclusion




CSS Frameworks: An introduction

             Horst Gutmann


                  2/2/2008




                                  1 / 21
CSS Framework?
                   What’s out there?
                          Conclusion




1 CSS Framework?


2 What’s out there?
    Blueprint
    YUI Grids
    YAML


3 Conclusion




                                       2 / 21
CSS Framework?
                     What’s out there?
                            Conclusion



CSS Framework?



     ... or library, or in some cases a collection of common hacks
     for common problems.
     The moment you extract some general definitions from one
     project and make them accessible to other projects, have
     created yourself a framework
     They help you not to have to look up the same CSS hacks for
     positioning in IE again and again ;-)




                                                                     3 / 21
CSS Framework?
                           What’s out there?
                                  Conclusion



Purpose




         The goal here is to allow the designer or developer to
         focus on tasks that are unique to a given project, rather
         than reinventing the wheel each time around.
                                                                    – Jeff Croft1




    1
        http://www.alistapart.com/articles/frameworksfordesigners
                                                                                   4 / 21
CSS Framework?
                       What’s out there?
                              Conclusion



Separation



  In most cases it makes sense             reset
  to modularize a basic                    baseline
  stylesheet to make it possible           add-ons
  to only use some parts of it.                    typography
  This makes reusing the                           forms
  stylesheets even easier.                         grid
                                                   ...




                                                                5 / 21
CSS Framework?
                     What’s out there?
                            Conclusion



Advantages




      DRY (Don’t repeat yourself)
      Basic concept that makes it easy for other people to
      understand the style
      Implicitly use coding/naming guidelines




                                                             6 / 21
CSS Framework?
                      What’s out there?
                             Conclusion



Disadvantages




      ... that are not yours
      You have to learn the framework
      Possible semantical implications
      Might offer too much




                                          7 / 21
CSS Framework?      Blueprint
                        What’s out there?    YUI Grids
                               Conclusion    YAML



Something has to be there...
                                       Symfony

                 Ruby on                                 Turbo-
                  Rails                                  gears


                                       Backend
               Django                                         ...




               jQuery           JavaScript   CSS




                YUI                                       ?

                                ...




                                                                    8 / 21
CSS Framework?     Blueprint
                      What’s out there?   YUI Grids
                             Conclusion   YAML



Basic example
                                                  ... with 4 columns
                                                  Most frameworks and
                                                  base-designs are targeted
                                                  at a maximum of 3
                                                  columns
    1st   2nd   3rd     4th
                                                  ... so how to get 4
                                                  columns to work, should
                                                  give some indication of
                                                  the flexibility of a
                                                  framework
                                                  ... and when you have to
                                                  start with nesting
                                                  ... and how much
                                                  extra-markup is required
                                                                              9 / 21
CSS Framework?     Blueprint
What’s out there?   YUI Grids
       Conclusion   YAML




  http://blueprintcss.googlecode.com
  License: MIT
  Based on the idea of splitting the width of a
  page into 24 columns (with 40px = 30px +
  10px margin each)
  By default max-width 950px (24 ∗ 40 − 10)
  Semi-official tool to create a grid for every
  fixed resolution
  No fluid layout possible (yet)




                                                  10 / 21
CSS Framework?     Blueprint
                      What’s out there?   YUI Grids
                             Conclusion   YAML



Required structure

             .container

               .column    .column         .column     .column
                .span-6    .span-6         .span-6     .span-6
                                                         .last




   .span-6 basically defines a column that occupies 6 grid-columns.

                                                                     11 / 21
CSS Framework?     Blueprint
                         What’s out there?   YUI Grids
                                Conclusion   YAML



Tools




                                                     Figure: Layout buildera
        Figure: Grid generatora
                                                 a
                                                   http:
    a
      http://kematzy.com/                     //www.blueprintlayouttool.com/
  blueprint-generator/


                                                                               12 / 21
CSS Framework?     Blueprint
What’s out there?   YUI Grids
       Conclusion   YAML




  http://developer.yahoo.com/yui
  License: BSD
  Part of the Yahoo User Interface library
  Let’s you separate a page into multiple
  columns (with a max. of 4) and subcolumns
  No pre-defined columns like in Blueprint.
  Requires a basic page structure with id’
  elements.
  Font-size using % (mapping table provided)




                                               13 / 21
CSS Framework?     Blueprint
                                  What’s out there?   YUI Grids
                                         Conclusion   YAML



Template base structure

   #doc{2,3,4} | #custom-doc

                          #hd                         #doc defines the initial width of
                                                      the grid (#doc3 = 100%)
                          #bd

                                                      #bd is required for automatic
                                                      cleaning floats
              #yui-main         .yui-b
                                                      2-column designs with
                                                      templates .yui-t{1,2,3,4,5,6},
                                                      #yui-main and .yui-b
                          #ft
                                                      Nesting using pre-made floats
                                                      ((1/3,1/3,1/3), (1/4,3/4), ...)
  Figure: Structure for
  templates

                                                                                         14 / 21
CSS Framework?     Blueprint
                          What’s out there?   YUI Grids
                                 Conclusion   YAML



Grid example

  <d i v i d=” bd ”>
        <d i v c l a s s=” y u i −g ”>
              <d i v c l a s s=” y u i −g f i r s t ”>
                    <d i v c l a s s=” y u i −u f i r s t ”>1 s t</ d i v>
                    <d i v c l a s s=” y u i −u”>2 nd</ d i v>
              </ d i v>
              <d i v c l a s s=” y u i −g ”>
                    <d i v c l a s s=” y u i −u f i r s t ”>3 r d</ d i v>
                    <d i v c l a s s=” y u i −u”>4 t h</ d i v>
              </ d i v>
        </ d i v>
  </ d i v>




                                                                             15 / 21
CSS Framework?     Blueprint
What’s out there?   YUI Grids
       Conclusion   YAML




  http://www.yaml.de
  License: CC-A and commercial license
  Very well documented
  Floats everywhere
  Also supports IE5.
  No separation between reset- and
  base-stylesheet
  No merged stylesheet provided




                                         16 / 21
CSS Framework?     Blueprint
                            What’s out there?   YUI Grids
                                   Conclusion   YAML



Recommended base structure

   #page_margin

    #page

                  #header   #topnav


                   #nav                                  Recommended because
                  #main
                                                         mostly the IE-hacks are
                   #col1
                                                         based on this structurea
                                                         #col3 has an auto-width
                   #col2
                                                     a
                                                      http://www.yaml.de/en/documentation
                   #col3
                                                 variations.html

                  #footer




                                                                                    17 / 21
CSS Framework?     Blueprint
                        What’s out there?   YUI Grids
                               Conclusion   YAML



One last time: The example
  <d i v i d=” body ”>
    <d i v i d=” c o l 1 ”>
        <d i v i d=” c o l 1 c o n t e n t ”>1 s t</ d i v></ d i v>
    <d i v i d=” c o l 2 ”>
        <d i v i d=” c o l 2 c o n t e n t ”>2 nd</ d i v></ d i v>
    <d i v i d=” c o l 3 ”>
        <d i v c l a s s=” s u b c o l u m n s ”>
           <d i v c l a s s=” c 5 0 l ”>
              <d i v c l a s s=” s u b c l ”>3 r d</ d i v></ d i v>
           <d i v c l a s s=” c 5 0 r ”>
              <d i v c l a s s=” s u b c r ”>4 t h</ d i v></ d i v>
        </ d i v>
    </ d i v>
  </ d i v>

                                                                       18 / 21
CSS Framework?     Blueprint
                        What’s out there?   YUI Grids
                               Conclusion   YAML



Uhm...

                                             #c o l 1 {
                                                    w i d t h : 25%;
                                                    float : left ;
                                             }
  The problem here is, that this             #c o l 2 {
                                                    w i d t h : 25%;
  is not all that is required. You
                                                    float : left ;
  also need at least this:                   }
                                             #c o l 3 {
                                                    margin : 0 ;
                                                    w i d t h : 50%;
                                             }




                                                                       19 / 21
CSS Framework?
                      What’s out there?
                             Conclusion



Conclusion



      You’ll have to see for yourself, which one is the best for you
      Blueprint looks like a good approach for fixed-width designs
      because it makes calculating image dimensions easy.
      YUI looks more lightweight compared to YAML
      YUI doesn’t let you grid header not footer.
      Is it still worth supporting IE5?




                                                                       20 / 21
CSS Framework?
                  What’s out there?
                         Conclusion



Thanks for your attention




   Questions?




                                      21 / 21

Contenu connexe

Similaire à CSS Frameworks

An Introduction to CSS Frameworks
An Introduction to CSS FrameworksAn Introduction to CSS Frameworks
An Introduction to CSS FrameworksAdrian Westlake
 
Drupal Theming with CSS Frameworks (960grid)
Drupal Theming with CSS Frameworks (960grid)Drupal Theming with CSS Frameworks (960grid)
Drupal Theming with CSS Frameworks (960grid)Ryan Cross
 
Drupal 960 grid system based theming
Drupal 960 grid system based theming Drupal 960 grid system based theming
Drupal 960 grid system based theming Gaurav Mishra
 
Accelerated grid theming using NineSixty (Drupal Design Camp Boston 2009)
Accelerated grid theming using NineSixty (Drupal Design Camp Boston 2009)Accelerated grid theming using NineSixty (Drupal Design Camp Boston 2009)
Accelerated grid theming using NineSixty (Drupal Design Camp Boston 2009)Four Kitchens
 
A Java Fork_Join Framework
A Java Fork_Join FrameworkA Java Fork_Join Framework
A Java Fork_Join FrameworkHiroshi Ono
 
Accelerated grid theming using NineSixty (DrupalCamp Dallas)
Accelerated grid theming using NineSixty (DrupalCamp Dallas)Accelerated grid theming using NineSixty (DrupalCamp Dallas)
Accelerated grid theming using NineSixty (DrupalCamp Dallas)Four Kitchens
 
Accelerated Grid Theming
Accelerated Grid ThemingAccelerated Grid Theming
Accelerated Grid ThemingNathan Smith
 
Web I - 07 - CSS Frameworks
Web I - 07 - CSS FrameworksWeb I - 07 - CSS Frameworks
Web I - 07 - CSS FrameworksRandy Connolly
 
960 grid psd
960 grid psd960 grid psd
960 grid psdRaju Nag
 
Creating Responsive Drupal Sites with Zen Grids and the Zen 5 Theme
Creating Responsive Drupal Sites with Zen Grids and the Zen 5 ThemeCreating Responsive Drupal Sites with Zen Grids and the Zen 5 Theme
Creating Responsive Drupal Sites with Zen Grids and the Zen 5 ThemeAcquia
 
MW2011 Grid-based Web Design presentation
MW2011 Grid-based Web Design presentationMW2011 Grid-based Web Design presentation
MW2011 Grid-based Web Design presentationCharlie Moad
 
Set model and page fault.44
Set model and page fault.44Set model and page fault.44
Set model and page fault.44myrajendra
 
Fowa Miami 09 Cloud Computing Workshop
Fowa Miami 09 Cloud Computing WorkshopFowa Miami 09 Cloud Computing Workshop
Fowa Miami 09 Cloud Computing WorkshopMark Masterson
 
Fun with css frameworks
Fun with css frameworksFun with css frameworks
Fun with css frameworksMario Noble
 

Similaire à CSS Frameworks (20)

An Introduction to CSS Frameworks
An Introduction to CSS FrameworksAn Introduction to CSS Frameworks
An Introduction to CSS Frameworks
 
Drupal Theming with CSS Frameworks (960grid)
Drupal Theming with CSS Frameworks (960grid)Drupal Theming with CSS Frameworks (960grid)
Drupal Theming with CSS Frameworks (960grid)
 
How Servo Renders the Web
How Servo Renders the WebHow Servo Renders the Web
How Servo Renders the Web
 
fj
fjfj
fj
 
CSS Grid Systems
CSS Grid SystemsCSS Grid Systems
CSS Grid Systems
 
Drupal 960 grid system based theming
Drupal 960 grid system based theming Drupal 960 grid system based theming
Drupal 960 grid system based theming
 
Lec18
Lec18Lec18
Lec18
 
Accelerated grid theming using NineSixty (Drupal Design Camp Boston 2009)
Accelerated grid theming using NineSixty (Drupal Design Camp Boston 2009)Accelerated grid theming using NineSixty (Drupal Design Camp Boston 2009)
Accelerated grid theming using NineSixty (Drupal Design Camp Boston 2009)
 
A Java Fork_Join Framework
A Java Fork_Join FrameworkA Java Fork_Join Framework
A Java Fork_Join Framework
 
Beginning CSS.
Beginning CSS.Beginning CSS.
Beginning CSS.
 
Accelerated grid theming using NineSixty (DrupalCamp Dallas)
Accelerated grid theming using NineSixty (DrupalCamp Dallas)Accelerated grid theming using NineSixty (DrupalCamp Dallas)
Accelerated grid theming using NineSixty (DrupalCamp Dallas)
 
Accelerated Grid Theming
Accelerated Grid ThemingAccelerated Grid Theming
Accelerated Grid Theming
 
Knowing it all
Knowing it allKnowing it all
Knowing it all
 
Web I - 07 - CSS Frameworks
Web I - 07 - CSS FrameworksWeb I - 07 - CSS Frameworks
Web I - 07 - CSS Frameworks
 
960 grid psd
960 grid psd960 grid psd
960 grid psd
 
Creating Responsive Drupal Sites with Zen Grids and the Zen 5 Theme
Creating Responsive Drupal Sites with Zen Grids and the Zen 5 ThemeCreating Responsive Drupal Sites with Zen Grids and the Zen 5 Theme
Creating Responsive Drupal Sites with Zen Grids and the Zen 5 Theme
 
MW2011 Grid-based Web Design presentation
MW2011 Grid-based Web Design presentationMW2011 Grid-based Web Design presentation
MW2011 Grid-based Web Design presentation
 
Set model and page fault.44
Set model and page fault.44Set model and page fault.44
Set model and page fault.44
 
Fowa Miami 09 Cloud Computing Workshop
Fowa Miami 09 Cloud Computing WorkshopFowa Miami 09 Cloud Computing Workshop
Fowa Miami 09 Cloud Computing Workshop
 
Fun with css frameworks
Fun with css frameworksFun with css frameworks
Fun with css frameworks
 

Dernier

WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAndikSusilo4
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 

Dernier (20)

WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & Application
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 

CSS Frameworks

  • 1. CSS Framework? What’s out there? Conclusion CSS Frameworks: An introduction Horst Gutmann 2/2/2008 1 / 21
  • 2. CSS Framework? What’s out there? Conclusion 1 CSS Framework? 2 What’s out there? Blueprint YUI Grids YAML 3 Conclusion 2 / 21
  • 3. CSS Framework? What’s out there? Conclusion CSS Framework? ... or library, or in some cases a collection of common hacks for common problems. The moment you extract some general definitions from one project and make them accessible to other projects, have created yourself a framework They help you not to have to look up the same CSS hacks for positioning in IE again and again ;-) 3 / 21
  • 4. CSS Framework? What’s out there? Conclusion Purpose The goal here is to allow the designer or developer to focus on tasks that are unique to a given project, rather than reinventing the wheel each time around. – Jeff Croft1 1 http://www.alistapart.com/articles/frameworksfordesigners 4 / 21
  • 5. CSS Framework? What’s out there? Conclusion Separation In most cases it makes sense reset to modularize a basic baseline stylesheet to make it possible add-ons to only use some parts of it. typography This makes reusing the forms stylesheets even easier. grid ... 5 / 21
  • 6. CSS Framework? What’s out there? Conclusion Advantages DRY (Don’t repeat yourself) Basic concept that makes it easy for other people to understand the style Implicitly use coding/naming guidelines 6 / 21
  • 7. CSS Framework? What’s out there? Conclusion Disadvantages ... that are not yours You have to learn the framework Possible semantical implications Might offer too much 7 / 21
  • 8. CSS Framework? Blueprint What’s out there? YUI Grids Conclusion YAML Something has to be there... Symfony Ruby on Turbo- Rails gears Backend Django ... jQuery JavaScript CSS YUI ? ... 8 / 21
  • 9. CSS Framework? Blueprint What’s out there? YUI Grids Conclusion YAML Basic example ... with 4 columns Most frameworks and base-designs are targeted at a maximum of 3 columns 1st 2nd 3rd 4th ... so how to get 4 columns to work, should give some indication of the flexibility of a framework ... and when you have to start with nesting ... and how much extra-markup is required 9 / 21
  • 10. CSS Framework? Blueprint What’s out there? YUI Grids Conclusion YAML http://blueprintcss.googlecode.com License: MIT Based on the idea of splitting the width of a page into 24 columns (with 40px = 30px + 10px margin each) By default max-width 950px (24 ∗ 40 − 10) Semi-official tool to create a grid for every fixed resolution No fluid layout possible (yet) 10 / 21
  • 11. CSS Framework? Blueprint What’s out there? YUI Grids Conclusion YAML Required structure .container .column .column .column .column .span-6 .span-6 .span-6 .span-6 .last .span-6 basically defines a column that occupies 6 grid-columns. 11 / 21
  • 12. CSS Framework? Blueprint What’s out there? YUI Grids Conclusion YAML Tools Figure: Layout buildera Figure: Grid generatora a http: a http://kematzy.com/ //www.blueprintlayouttool.com/ blueprint-generator/ 12 / 21
  • 13. CSS Framework? Blueprint What’s out there? YUI Grids Conclusion YAML http://developer.yahoo.com/yui License: BSD Part of the Yahoo User Interface library Let’s you separate a page into multiple columns (with a max. of 4) and subcolumns No pre-defined columns like in Blueprint. Requires a basic page structure with id’ elements. Font-size using % (mapping table provided) 13 / 21
  • 14. CSS Framework? Blueprint What’s out there? YUI Grids Conclusion YAML Template base structure #doc{2,3,4} | #custom-doc #hd #doc defines the initial width of the grid (#doc3 = 100%) #bd #bd is required for automatic cleaning floats #yui-main .yui-b 2-column designs with templates .yui-t{1,2,3,4,5,6}, #yui-main and .yui-b #ft Nesting using pre-made floats ((1/3,1/3,1/3), (1/4,3/4), ...) Figure: Structure for templates 14 / 21
  • 15. CSS Framework? Blueprint What’s out there? YUI Grids Conclusion YAML Grid example <d i v i d=” bd ”> <d i v c l a s s=” y u i −g ”> <d i v c l a s s=” y u i −g f i r s t ”> <d i v c l a s s=” y u i −u f i r s t ”>1 s t</ d i v> <d i v c l a s s=” y u i −u”>2 nd</ d i v> </ d i v> <d i v c l a s s=” y u i −g ”> <d i v c l a s s=” y u i −u f i r s t ”>3 r d</ d i v> <d i v c l a s s=” y u i −u”>4 t h</ d i v> </ d i v> </ d i v> </ d i v> 15 / 21
  • 16. CSS Framework? Blueprint What’s out there? YUI Grids Conclusion YAML http://www.yaml.de License: CC-A and commercial license Very well documented Floats everywhere Also supports IE5. No separation between reset- and base-stylesheet No merged stylesheet provided 16 / 21
  • 17. CSS Framework? Blueprint What’s out there? YUI Grids Conclusion YAML Recommended base structure #page_margin #page #header #topnav #nav Recommended because #main mostly the IE-hacks are #col1 based on this structurea #col3 has an auto-width #col2 a http://www.yaml.de/en/documentation #col3 variations.html #footer 17 / 21
  • 18. CSS Framework? Blueprint What’s out there? YUI Grids Conclusion YAML One last time: The example <d i v i d=” body ”> <d i v i d=” c o l 1 ”> <d i v i d=” c o l 1 c o n t e n t ”>1 s t</ d i v></ d i v> <d i v i d=” c o l 2 ”> <d i v i d=” c o l 2 c o n t e n t ”>2 nd</ d i v></ d i v> <d i v i d=” c o l 3 ”> <d i v c l a s s=” s u b c o l u m n s ”> <d i v c l a s s=” c 5 0 l ”> <d i v c l a s s=” s u b c l ”>3 r d</ d i v></ d i v> <d i v c l a s s=” c 5 0 r ”> <d i v c l a s s=” s u b c r ”>4 t h</ d i v></ d i v> </ d i v> </ d i v> </ d i v> 18 / 21
  • 19. CSS Framework? Blueprint What’s out there? YUI Grids Conclusion YAML Uhm... #c o l 1 { w i d t h : 25%; float : left ; } The problem here is, that this #c o l 2 { w i d t h : 25%; is not all that is required. You float : left ; also need at least this: } #c o l 3 { margin : 0 ; w i d t h : 50%; } 19 / 21
  • 20. CSS Framework? What’s out there? Conclusion Conclusion You’ll have to see for yourself, which one is the best for you Blueprint looks like a good approach for fixed-width designs because it makes calculating image dimensions easy. YUI looks more lightweight compared to YAML YUI doesn’t let you grid header not footer. Is it still worth supporting IE5? 20 / 21
  • 21. CSS Framework? What’s out there? Conclusion Thanks for your attention Questions? 21 / 21