SlideShare ist ein Scribd-Unternehmen logo
1 von 56
HARDCORE CSS         Eric Redmond
                     @coderoshi
  PDX Web & Design
A SHORT HISTORY OF   Hardcore
                     CSS
              CSS
CSS
 Cascading Style Sheets           A SHORT
 Separates style from             HISTORY
                                   OF CSS
  substance
   (separate from HTML)
Stylesheets non-standard
 In 1990 TBL separated docs
  from layout
 Each browser decided doc style
Cascading HTML style
 sheets – a proposal            A SHORT
 Oct 10, 1994                  HISTORY
                                OF CSS
 Håkon W Lie (CERN) proposes
Cascading HTML style
 sheets – a proposal            A SHORT
 Oct 10, 1994                  HISTORY
                                OF CSS
 Håkon W Lie (CERN) proposes
Cascading HTML style sheets
 – a proposal
 Oct 10, 1994                      A SHORT
 Håkon Lie (CERN)                  HISTORY
                                    OF CSS
 Bert Bos was first adoptor
Cascading?
 An ordered list of stylesheets,
  that start with the first, and
  values are added/overridden by
  later SS
1995-1996
 Netscape, IE and others added
  support
 CSS Level I emerged from W3C
  draft in Dec 1996
CSS2
 1998 Level 2 was proposed       A SHORT
 Adoption was relatively fast    HISTORY
                                  OF CSS
CSS3
 First draft published in 1999
 Divided into 50 modules
 Still being fucking written
 Sllloooowwww adoption…
CSS4
 Started in 2009
 Not support at all
Hardcore
SELECTORS   CSS
Universal
Elements
Classes           SELECTORS
IDs
Attributes
Pseudo classes
Pseudo elements
<em>I’m Arial too!</em>

*{
                          SELECTORS
  font-family: Arial;     U n i v e r s al

}
<strong>
 hulk smash
</strong>
                              SELECTORS
                              Elements


strong {
  color: green;
  text-transform:uppercase;
}
<span class=superhero>
 Iron Man
</span>
                                                SELECTORS
                                                Classes

.superhero {
  font-family:   'International Super Hero' ;
}
<div id=main>
 My main content.
</div>
                            SELECTORS
                            IDs


#main {
  border:1px solid green;
  padding:1em;
}
<article role=main>
 My main content.
</article>
                            SELECTORS
                            IDs


[role=main] {
  border:1px solid green;
  padding:1em;
}
<ul>
 <li>Item 1</li>
 <li>Item 2</li>
                   SELECTORS
</ul>              Pseudo Classes




li:first-child {
  color:red;
}
<h1>
 Excelsior
</h1>
                  SELECTORS
                  Pseudo
                  Elements

h1:after {
  content: '!';
}
<h1>Page Title<h1>
<section>
 <h1>Section Title</h1>
                          SELECTORS
</section>                Nesting




section h1 {
  color:blue;
}
<h1>Page Title<h1>
<section>
 <h1>Section Title</h1>
                          SELECTORS
</section>                Nesting




section h1 {
  color:blue;
}
Hardcore
SPECIFICITY   CSS
<section id=person>
<div id=name>Joe</div>
<div>A nice guy</div>    SELECTOR
                         SPECIFICIT Y
</section>               What wins?



#person div {
  color:red;
}
#name {
  color:blue;
}
SELECTOR
SPECIFICIT Y
SELECTOR
…What?   SPECIFICIT Y
SELECTOR SPECIFICIT Y

www.w3.org/TR/css3-selectors/#specificity
Calculating a selector's specificity
  count the number of ID selectors in the selector (= a)
  count the number of class selectors, attributes selectors, and
   pseudo-classes in the selector (= b)
  count the number of type selectors and pseudo-elements in the
   selector (= c)
  ignore the universal selector
CALCULATION

Selector         a   b    c   Specificity

*                0   0    0      0

li               0   0    1      1

ul li            0   0    2      2

ul li:after      0   0    3      3

h1 *[rel=up]     0   1    1     11

ul li span.red   0   1    3     13

li.red.level     0   2    1     21

#name            1   0    0    100

#person div      1   0    1    101
EASIER WAY

I.C.A.T.
  IDs > Classes/Attributes > Types
  Pseudos are of their kind
    Pseudo-classes are classes
    Pseudo-elements are elements (types)
EASIER WAY

1. Compare the count of IDs
  div#content *[role=main] section#person = 2
  section#person div#name .superhero:last = 2
2. Compare the count of Classes+Attributes
  div#content *[role=main] section#person = 1
  section#person div#name .superhero:last = 1
3. Compare the count of Types
  div#content *[role=main] section#person = 2
  section#person div#name .superhero:last = 3
Hardcore
ADVANCED(ISH) DETAILS   CSS
The Box Model

                 THE BOX
                 MODEL
More Box Model

                  THE BOX
                  MODEL
[attr]      – attr exists
[attr=val] – value equals
                                   ATTRIBUTE
[attr~=val] – exists in           MATCHING
     whitespace set
[attr|=val] – value followed by
     a dash
[attr^=val] – value begins with
[attr$=val] – value ends with
[attr*=val] – value contains
:nth-child(N)
:nth-last-child(N)
                      PSEUDO
:nth-of-type(N)      CLASSES
:first-child
:last-child
:empty
:target
:enabled
:disabled
:not(S)
Hardcore
CSS3 FUN THINGS   CSS
Fonts
 Typekit
 Google Fonts
 FontSquirrel
Baby Typography
 Tracking (not Kerning)
 Leading
Shadows
Boxes
 Border types
 Border Radius
 Outline
 Box Shadow


box-shadow:
 6px 6px 6px 6px #666;
 [right] [down] [blur] [width] #[color];
Backgrounds
 Gradients
    lea.verou.me/demos/cssgradient
     splease
 Patterns
    lea.verou.me/css3patterns


background-image:
 -webkit-linear-gradient(
    bottom,
    rgb(4,4,133) 15%,
    rgb(40,66,171) 58%
 );
Transforms
 Most browsers require a prefix
 -o-transform: …;
 -ms-transform: …;
 -moz-transform: …;
 -webkit-transform: …;
Rotate
 transform: rotate(20deg);
Scale
 transform: scale(2, 2);
Transitions
 Best in reaction to something!
 Timing
 Easing
Hardcore
MEDIA   CSS
MEDIA T YPES

Media Type   Description
all          All media type devices
aural        Speech and sound synthesizers
braille      Braille tactile feedback devices
embosses     Paged braille printers
handheld     Small or handheld devices
print        Printers
projection   Projected presentations, like slides
screen       Computer screens (and mobile screens)
tty          Media using a fixed-pitch character grid, like terminals
tv           Television-type devices
External Media Attribute
 <link
  rel="stylesheet”
  media="print"             MEDIA

  href="printer.css" />
Inline Media Rule
 @media print {
   body {
     color:black;
   }
 }
Hardcore
(BEST?) PRACTICES   CSS
Problem:
 Browsers still have different
  default behaviors               BEST
                                  PRACTICES




Solution:
 Reset CSS
*{
  vertical-align: baseline;
  font-weight: inherit;       BEST
                              PRACTICES
  font-family: inherit;
  font-style: inherit;
  font-size: 100%;
  border: 0 none;
  outline: 0;
  padding: 0;
  margin: 0;
}
yui.yahooapis.com/3.5.1
 /build/cssreset
 /cssreset.css
Problem:
 Some Browsers
  (*cough*IE*cough*) do not   BEST
  recognize HTML5 elements    PRACTICES
                              (Best?)

Solution:                    P r a c t i ce s


 Modernizr
Problem:
 Some browsers pre
  implemented CSS3                BEST
                                  PRACTICES
Solution:                        (Best?)
                                  P r a c t i ce s
 Know the prefixes
    -o- = Opera
    -moz- = Mozilla (Firefox)
    -webkit- = Webkit (Chrome,
     Safari, iOS)
Problem:
 EMs are inconsistent
Solution:                BEST
                          PRACTICES
 Set font size to 10px   (Best?)
                          P r a c t i ce s




html, body {
  font-size:10px;
}
Hardcore
LAYOUTS   CSS
Classic floats
 One True Layout
    positioniseverything.net/articles/
     onetruelayout                        LAYOUTS
                                          Floats
 The Holy Grail
    alistapart.com/articles/holygrail
Multicolumns


                LAYOUTS
                CSS3
                M u l t ic o l umn s
Display Box


               LAYOUTS
               C S S 3 D i s p l ay
               B ox
Elastic


           LAYOUTS
           Elastic
Fluid


         LAYOUTS
         Fluid
Responsive
 Just change layout using
  media queries
                              LAYOUTS
                              Re s p o n s i ve

@media only screen and
(max-device-width: 480px) {
  body {
    font-size:10px;
  }
}
Summer Social & Lightning Talks




                                           PDX W&D UPCOMING
  Thursday, Aug 9
  Webtrends (that would be here)


Rails Girls PDX
  September 7-8
  Signup at RailsGirls.com (ladies only)

Weitere ähnliche Inhalte

Was ist angesagt?

Introduction to CSS3
Introduction to CSS3Introduction to CSS3
Introduction to CSS3RAHUL SHARMA
 
Sass Essentials at Mobile Camp LA
Sass Essentials at Mobile Camp LASass Essentials at Mobile Camp LA
Sass Essentials at Mobile Camp LAJake Johnson
 
CSS Walktrough Internship Course
CSS Walktrough Internship CourseCSS Walktrough Internship Course
CSS Walktrough Internship CourseZoltan Iszlai
 
CSS3: Ripe and Ready to Respond
CSS3: Ripe and Ready to RespondCSS3: Ripe and Ready to Respond
CSS3: Ripe and Ready to RespondDenise Jacobs
 
Danilenko Alexander. Drupal 7 theming on Omega. DrupalCamp Kyiv 2011
Danilenko Alexander. Drupal 7 theming on Omega. DrupalCamp Kyiv 2011Danilenko Alexander. Drupal 7 theming on Omega. DrupalCamp Kyiv 2011
Danilenko Alexander. Drupal 7 theming on Omega. DrupalCamp Kyiv 2011Vlad Savitsky
 
[Worskhop Summits] CSS3 Workshop
[Worskhop Summits] CSS3 Workshop[Worskhop Summits] CSS3 Workshop
[Worskhop Summits] CSS3 WorkshopChristopher Schmitt
 
CSS3: Simply Responsive
CSS3: Simply ResponsiveCSS3: Simply Responsive
CSS3: Simply ResponsiveDenise Jacobs
 
Responsive web design with html5 and css3
Responsive web design with html5 and css3Responsive web design with html5 and css3
Responsive web design with html5 and css3Divya Tiwari
 
CSS for basic learner
CSS for basic learnerCSS for basic learner
CSS for basic learnerYoeung Vibol
 
New Elements & Features in CSS3
New Elements & Features in CSS3New Elements & Features in CSS3
New Elements & Features in CSS3Jamshid Hashimi
 
Creative Web 02 - HTML & CSS Basics
Creative Web 02 - HTML & CSS BasicsCreative Web 02 - HTML & CSS Basics
Creative Web 02 - HTML & CSS BasicsLukas Oppermann
 

Was ist angesagt? (20)

Css3
Css3Css3
Css3
 
Introduction to CSS3
Introduction to CSS3Introduction to CSS3
Introduction to CSS3
 
Sass Essentials at Mobile Camp LA
Sass Essentials at Mobile Camp LASass Essentials at Mobile Camp LA
Sass Essentials at Mobile Camp LA
 
CSS Walktrough Internship Course
CSS Walktrough Internship CourseCSS Walktrough Internship Course
CSS Walktrough Internship Course
 
CSS3: Ripe and Ready to Respond
CSS3: Ripe and Ready to RespondCSS3: Ripe and Ready to Respond
CSS3: Ripe and Ready to Respond
 
An Introduction to CSS
An Introduction to CSSAn Introduction to CSS
An Introduction to CSS
 
Danilenko Alexander. Drupal 7 theming on Omega. DrupalCamp Kyiv 2011
Danilenko Alexander. Drupal 7 theming on Omega. DrupalCamp Kyiv 2011Danilenko Alexander. Drupal 7 theming on Omega. DrupalCamp Kyiv 2011
Danilenko Alexander. Drupal 7 theming on Omega. DrupalCamp Kyiv 2011
 
[Worskhop Summits] CSS3 Workshop
[Worskhop Summits] CSS3 Workshop[Worskhop Summits] CSS3 Workshop
[Worskhop Summits] CSS3 Workshop
 
Cssxcountry slides
Cssxcountry slidesCssxcountry slides
Cssxcountry slides
 
Css 3
Css 3Css 3
Css 3
 
Css 3
Css 3Css 3
Css 3
 
CSS and CSS3
CSS and CSS3CSS and CSS3
CSS and CSS3
 
CSS3: Simply Responsive
CSS3: Simply ResponsiveCSS3: Simply Responsive
CSS3: Simply Responsive
 
Css3
Css3Css3
Css3
 
CSS 101
CSS 101CSS 101
CSS 101
 
Responsive web design with html5 and css3
Responsive web design with html5 and css3Responsive web design with html5 and css3
Responsive web design with html5 and css3
 
CSS for basic learner
CSS for basic learnerCSS for basic learner
CSS for basic learner
 
New Elements & Features in CSS3
New Elements & Features in CSS3New Elements & Features in CSS3
New Elements & Features in CSS3
 
Css
CssCss
Css
 
Creative Web 02 - HTML & CSS Basics
Creative Web 02 - HTML & CSS BasicsCreative Web 02 - HTML & CSS Basics
Creative Web 02 - HTML & CSS Basics
 

Ähnlich wie Hardcore CSS

CSS Methodology
CSS MethodologyCSS Methodology
CSS MethodologyZohar Arad
 
Howcssworks 100207024009-phpapp01
Howcssworks 100207024009-phpapp01Howcssworks 100207024009-phpapp01
Howcssworks 100207024009-phpapp01Likitha47
 
Big Design Conference: CSS3
Big Design Conference: CSS3 Big Design Conference: CSS3
Big Design Conference: CSS3 Wynn Netherland
 
Rock Solid CSS Architecture
Rock Solid CSS ArchitectureRock Solid CSS Architecture
Rock Solid CSS ArchitectureJohn Need
 
Intro to CSS Selectors in Drupal
Intro to CSS Selectors in DrupalIntro to CSS Selectors in Drupal
Intro to CSS Selectors in Drupalcgmonroe
 
CSS101 - Concept Fundamentals for non UI Developers
CSS101 - Concept Fundamentals for non UI DevelopersCSS101 - Concept Fundamentals for non UI Developers
CSS101 - Concept Fundamentals for non UI DevelopersDarren Gideon
 
Object-Oriented CSS 從 OOCSS, SMACSS, BEM 到 AMCSS
Object-Oriented CSS 從 OOCSS, SMACSS, BEM 到 AMCSSObject-Oriented CSS 從 OOCSS, SMACSS, BEM 到 AMCSS
Object-Oriented CSS 從 OOCSS, SMACSS, BEM 到 AMCSSLi-Wei Lu
 
Webpage style with CSS
Webpage style with CSSWebpage style with CSS
Webpage style with CSSHemant Patidar
 
The Future State of Layout
The Future State of LayoutThe Future State of Layout
The Future State of LayoutStephen Hay
 
Girl Develop It Cincinnati: Intro to HTML/CSS Class 4
Girl Develop It Cincinnati: Intro to HTML/CSS Class 4Girl Develop It Cincinnati: Intro to HTML/CSS Class 4
Girl Develop It Cincinnati: Intro to HTML/CSS Class 4Erin M. Kidwell
 
TIBCO General Interface - CSS Guide
TIBCO General Interface - CSS GuideTIBCO General Interface - CSS Guide
TIBCO General Interface - CSS GuideRohan Chandane
 
Unit 2-CSS & Bootstrap.ppt
Unit 2-CSS & Bootstrap.pptUnit 2-CSS & Bootstrap.ppt
Unit 2-CSS & Bootstrap.pptTusharTikia
 

Ähnlich wie Hardcore CSS (20)

CSS Overview
CSS OverviewCSS Overview
CSS Overview
 
CSS Methodology
CSS MethodologyCSS Methodology
CSS Methodology
 
Howcssworks 100207024009-phpapp01
Howcssworks 100207024009-phpapp01Howcssworks 100207024009-phpapp01
Howcssworks 100207024009-phpapp01
 
CSS.pptx
CSS.pptxCSS.pptx
CSS.pptx
 
Big Design Conference: CSS3
Big Design Conference: CSS3 Big Design Conference: CSS3
Big Design Conference: CSS3
 
Pfnp slides
Pfnp slidesPfnp slides
Pfnp slides
 
Css3
Css3Css3
Css3
 
Accelerated Stylesheets
Accelerated StylesheetsAccelerated Stylesheets
Accelerated Stylesheets
 
css v1 guru
css v1 gurucss v1 guru
css v1 guru
 
Rock Solid CSS Architecture
Rock Solid CSS ArchitectureRock Solid CSS Architecture
Rock Solid CSS Architecture
 
Intro to CSS Selectors in Drupal
Intro to CSS Selectors in DrupalIntro to CSS Selectors in Drupal
Intro to CSS Selectors in Drupal
 
CSS Part I
CSS Part ICSS Part I
CSS Part I
 
CSS101 - Concept Fundamentals for non UI Developers
CSS101 - Concept Fundamentals for non UI DevelopersCSS101 - Concept Fundamentals for non UI Developers
CSS101 - Concept Fundamentals for non UI Developers
 
Object-Oriented CSS 從 OOCSS, SMACSS, BEM 到 AMCSS
Object-Oriented CSS 從 OOCSS, SMACSS, BEM 到 AMCSSObject-Oriented CSS 從 OOCSS, SMACSS, BEM 到 AMCSS
Object-Oriented CSS 從 OOCSS, SMACSS, BEM 到 AMCSS
 
Webpage style with CSS
Webpage style with CSSWebpage style with CSS
Webpage style with CSS
 
The Future State of Layout
The Future State of LayoutThe Future State of Layout
The Future State of Layout
 
Girl Develop It Cincinnati: Intro to HTML/CSS Class 4
Girl Develop It Cincinnati: Intro to HTML/CSS Class 4Girl Develop It Cincinnati: Intro to HTML/CSS Class 4
Girl Develop It Cincinnati: Intro to HTML/CSS Class 4
 
TIBCO General Interface - CSS Guide
TIBCO General Interface - CSS GuideTIBCO General Interface - CSS Guide
TIBCO General Interface - CSS Guide
 
Unit 2-CSS & Bootstrap.ppt
Unit 2-CSS & Bootstrap.pptUnit 2-CSS & Bootstrap.ppt
Unit 2-CSS & Bootstrap.ppt
 
slides-students-C04.pdf
slides-students-C04.pdfslides-students-C04.pdf
slides-students-C04.pdf
 

Mehr von PDX Web & Design

Mehr von PDX Web & Design (6)

HTTP is Hard
HTTP is HardHTTP is Hard
HTTP is Hard
 
Riak Search 2: Yokozuna
Riak Search 2: YokozunaRiak Search 2: Yokozuna
Riak Search 2: Yokozuna
 
Distributed Data Structures
Distributed Data StructuresDistributed Data Structures
Distributed Data Structures
 
DDS-20m
DDS-20mDDS-20m
DDS-20m
 
Yokozuna
YokozunaYokozuna
Yokozuna
 
Hardcore HTML
Hardcore HTMLHardcore HTML
Hardcore HTML
 

Kürzlich hochgeladen

The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilV3cube
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsRoshan Dwivedi
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
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
 
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
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
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
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 

Kürzlich hochgeladen (20)

The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
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
 
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
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
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
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 

Hardcore CSS

Hinweis der Redaktion

  1. Upload slides before talk, and post the link here
  2. What is CSS? Basically, it’s a way of making your HTML styled how you want it to look.Stylesheets were even built into Tim Berner’s Lee (the creator of HTML and, basically, the web) – although it was up to browser makers to manage it.People wanted more control over this new medium. Existing publishing tools like LaTeX could trivially manage layout in ways that weren’t possible in the web. People wanted more.
  3. Håkon Lie was a physicist atCERN who wanted more powerful presentation.
  4. Is there a CSS4? Yep! But no one supports it, so who cares? Let’s go back to CSS3!
  5. elements match all HTML element types. These are the easiest and weakest way to match.
  6. Classes match any element that have the matching classes names, and are prefixed with a dot. They don’t have to be the same elements type and there can be as many copies of the same class name as you want. You can have a superhero for
  7. IDs are the most restrictive, and there should only ever be one matching ID in a document. Don’t reuse IDs. Ever. For any reason…. Ever.IF you aren’t sure when making an HTML document if you’ll ever have more than one, then just use a class.
  8. IDs are the most restrictive, and there should only ever be one matching ID in a document. Don’t reuse IDs. Ever. For any reason…. Ever.IF you aren’t sure when making an HTML document if you’ll ever have more than one, then just use a class.
  9. Finally, selectors nest.
  10. Finally, selectors nest. The section’s “h1” will be blue, but not h1’s that aren’t inside a section tag.
  11. Selector Specificity is the algorithm used to decide which settings win when there’s a conflict
  12. Even though we thought we were coloring the name Joe to be blue, it was overridden by the “#person div” selector. But why?
  13. You must computer selector specificity.
  14. This is a tabular example of what they’re talking about. It’s fine if you’re implementing a browser, but who wants to calculate just to figure out the winner?
  15. If an element isn’t showing up the way you think it should, it’s easy to compare why one selector is winning over another one.
  16. If an element isn’t showing up the way you think it should, it’s easy to compare why one selector is winning over another one.If one is greater than another, you’re done! That selector will win.If they’re equal, move onto the next selector grouping.
  17. Going through this list one at a time would be boring, and you can look all these up. So instead, here are a couple real use-cases that use these selectors:”class” is just an attribute, so we can use these selectors to partially match them.
  18. By this point you’re hopefully good and bored. Part of the reason people are so bad at CSS is because to do the cool interesting stuff, you have to really understand the dull boring stuff. And sadly, not enough designers bother getting to that point, instead opting to just start copy and pasting other people’s work. That’s fine, but it’s better to know yourself.
  19. Tracking is letter-spacing
  20. C5: How do we get an outline around our little stitching pattern here?
  21. C6:
  22. C7:
  23. C8: shadows get blurrier the further away from the source. If you’re rotating, they also need to move to keep the light source the same.
  24. Media represents the actual device you’re viewing your page on.
  25. These may not be best practices, but they’re certainly things I like to do.
  26. all values will be the same, including font sizes.Resets are built into most modern CSS libraries, YUI, blueprint, html5 boilerplate… but if you aren’t using one, just download the YUI Yahoo User Interface
  27. An “em” (pronounced “em”, not E-M”) is a unit of measure that represents the text size. It’s a measure in typography back when metal blocks were cut for types. It’s roughly equivalent to the capital letter “M”.Anyway, in web browsers this typically defaults to 16px.The “html” is for older IE browsers, while body is for every other browser.
  28. Interesting thing about layouts. It’s probably the most basic thing that all web designers need to do – but it’s not drop dead simple. You’re probably used to using floats, then clearfixing sections, and it’s never certain how it’ll act in browsers
  29. The reality is there are many reasons to create columns. The simplest one is that you have some text you want in two columnsC9
  30. You’ve probably done a multi-column layout. The standard method is to create a couple divs, give them each a width, then float them both so they line up side-by-side.Show HTML as sections setup using floats. Switch to boxesC9
  31. Elastic layouts are similar to fixed, but based on ems rather than pixels. As font size increases, the container’s width attempts to match. However, resizing a container measured in ems won’t change the container size. Modern browsers are increasingly removing the necessity of elastic designs, since most now resize pixels as well.
  32. Fluid layouts are based on percentages. So, you may have two columns where the left is 30% and the main column is 70%.
  33. Responsive will change based on the device width. Use media queries to adjust layout.
  34. The September monthly meetup is cancelled because, instead, we’re hosting RailsGirls. An international organization dedicated to increasing the presence of women who code.