BloggingWithStyle_2008

Style
Blogging with



         An Introduction to CSS

Presented by Anthony Piraino at ConvergeSouth 2008
What is CSS and
why should I learn it?
BloggingWithStyle_2008
Your Blog: Under the Hood
HTML vs. CSS
HTML
   HyperText Markup Language


Describes the semantics and structure
       of content on a web page.
CSS
         Cascading Style Sheets


   Describes the presentation of content
on a web page by defining design elements
       such as layout, fonts, and colors.
BloggingWithStyle_2008
BloggingWithStyle_2008
BloggingWithStyle_2008
BloggingWithStyle_2008
BloggingWithStyle_2008
BloggingWithStyle_2008
BloggingWithStyle_2008
BloggingWithStyle_2008
BloggingWithStyle_2008
BloggingWithStyle_2008
BloggingWithStyle_2008
How do they work together?


     CSS lets you define visual styling by
targeting rules to individual HTML elements.
<html>
         <body>
           <h1>This is a header</h1>
           <p>
              Here is a block of
              paragraph text, blah
              blah blah etc.
HTML       </p>
           <h2>Another header</h2>
           <p>
              And yet another paragraph
              with a block of text.
           </p>
         </body>
       </html>
body {
        font-family: "trebuchet ms", sans-serif;
        background-color: #ddeedd;
        padding: 20px 100px 0px 100px;
        }
      h1, h2 {
        font-size: 1.8em;
        color: #88aa44;
        margin: 0px;

CSS
        }
      h2 {
        font-size: 1.4em;
        background-color: #ffffff;
        padding: 0px 30px 0px 30px;
        }
      p {
        background-color: #ffffff;
        padding: 30px;
        margin: 0px;
        }
BloggingWithStyle_2008
BloggingWithStyle_2008
body {
                                   font-family: "trebuchet ms", sans-serif;
<body>                             background-color: #ddeedd;
                                   padding: 20px 100px 0px 100px;
  <h1>This is a header</h1>        }

  <p>                            h1, h2 {
     Here is a block of            font-size: 1.8em;
     paragraph text, blah          color: #88aa44;
     blah blah etc.                margin: 0px;
  </p>                             }

                                 h2 {
  <h2>Another header</h2>          font-size: 1.4em;
                                   background-color: #ffffff;
  <p>                              padding: 0px 30px 0px 30px;
     And yet another paragraph     }
     with a block of text.
  </p>                           p {
                                   background-color: #ffffff;
</body>                            padding: 30px;
                                   margin: 0px;
                                   }




          HTML                                    CSS
CSS Syntax

A stylesheet lists rules for presentation.


 Each rule consists of a selector and a
          declaration block.
selector { property: value; }
The Type Selector


p {
 color: #1662d8;
 background-color: #ffffff;
 padding: 10px;
 border: 5px solid #1bc8fe;
 }
Here is an example paragraph with a
styled font, color, padding and border.




           p {
            color: #1662d8;
            background-color: #ffffff;
            padding: 10px;
            border: 5px solid #1bc8fe;
            }
The Class Selector
<p>
   This is a normal paragraph, nothing
   exciting going on here.
</p>
<p class=”alert”>
   But this is a really important
   paragraph - pay attention!
</p>
p {
 color: gray;
 font-size: 12px;
 }


p.alert {
 color: red;
 font-size: 18px;
 font-weight: bold;
 }
This is a normal paragraph, nothing
exciting going on here.


But this is a really important
paragraph - pay attention!
The ID Selector
HTML   <ul id=”contents”>
          <li>Chapter 1</li>
          <li>Chapter 2</li>
          <li>Chapter 3</li>
       </ul>


 CSS   #contents {
          font-weight: bold;
          font-size: 18px;
          }
Descendant Selectors
<p>
   This is a stand-alone paragraph.
</p>
<blockquote>
  <p>
     A paragraph inside our blockquote.
  </p>
  <p>
     And another blockquoted paragraph.
  </p>
</blockquote>
blockquote p {
 color: blue;
 font-weight: bold;
 border-left: 3px solid blue;
 padding-left: 10px;
 }
This is a stand-alone paragraph.

 A paragraph inside our
 blockquote.
 And another blockquoted
 paragraph.
{ The Declaration Block }
Properties and Values



       Value of my House
 Jan   Feb   March   April   May   June
Properties and Values


  selector {
    property: value;
    property: value;
    }
color
By Name


   aqua, black, blue, fuchsia, gray, etc.


        Full list of supported color names:
http://www.w3schools.com/css/css_colornames.asp
By Hex Value


Roses are #ff0000
Violets are #0000ff
Red   Green   Blue

#00 00 00
http://www.colorpicker.com/
background-color
margin
padding
border
The Box Model


   element
    padding
     border
    margin
Margin and Padding Values


margin: 0px 20px 10px 20px;

        top   right bottom   left
Pimp my CSS
BloggingWithStyle_2008
BloggingWithStyle_2008
BloggingWithStyle_2008
#outer-wrapper {
  width: 660px;
  margin:0 auto;
  padding:10px;
  text-align:$startSide;
  font: $bodyfont;
  }
#outer-wrapper
#outer-wrapper {
  width: 660px;
  margin:0 auto;
  padding: 10px;
  text-align:$startSide;
  font: $bodyfont;
  }
#outer-wrapper {
  width: 660px;
  margin:0 auto;
  padding: 10px 40px 10px 40px;
  text-align:$startSide;
  font: $bodyfont;
  }
#outer-wrapper {
  width: 660px;
  margin:0 auto;
  padding: 10px 40px 10px 40px;
  text-align:$startSide;
  font: $bodyfont;
  background-color: #effcff;
  border-left: 10px solid #003;
  border-right: 10px solid #003;
  }
BloggingWithStyle_2008
BloggingWithStyle_2008
#header-wrapper {
  width:660px;
  margin:0 auto 10px;
  border:1px solid $bordercolor;
  }
#header {
  margin: 5px;
  border: 1px solid $bordercolor;
  text-align: center;
  color:$pagetitlecolor;
  }
#header h1 {
  margin:5px 5px 0;
  padding:15px 20px .25em;
  line-height:1.2em;
  text-transform:uppercase;
  letter-spacing:.2em;
  font: $pagetitlefont;
  }
#header-wrapper



                  #header



                            #header h1
#header-wrapper



                  #header



                            #header h1
#header-wrapper



                  #header



                            #header h1
#header-wrapper



                  #header



                            #header h1
#header-wrapper {
  width:660px;
  margin:0 auto 10px;
  border:1px solid $bordercolor;
  }
#header {
  margin: 5px;
  border: 1px solid $bordercolor;
  text-align: center;
  color:$pagetitlecolor;
  }
#header h1 {
  margin:5px 5px 0;
  padding:15px 20px .25em;
  line-height:1.2em;
  text-transform:uppercase;
  letter-spacing:.2em;
  font: $pagetitlefont;
  }
#header-wrapper {
  width:660px;
  margin:0 auto 10px;
  border:1px solid $bordercolor;
  }
#header {
  margin: 5px;
  border: 1px solid $bordercolor;
  text-align: center;
  color:$pagetitlecolor;
  }
#header h1 {
  margin:5px 5px 0;
  padding:15px 20px .25em;
  line-height:1.2em;
  text-transform:uppercase;
  letter-spacing:.2em;
  font: $pagetitlefont;
  }
#header-wrapper {
  width:660px;
  margin: 0px 0px 20px 0px;
  border:1px solid $bordercolor;
  }
#header {
  margin: 5px;
  border: 1px solid $bordercolor;
  text-align: center;
  color:$pagetitlecolor;
  }
#header h1 {
  margin:5px 5px 0;
  padding:15px 20px .25em;
  line-height:1.2em;
  text-transform:uppercase;
  letter-spacing:.2em;
  font: $pagetitlefont;
  }
#header-wrapper {
  width:660px;
  margin: 0px 0px 20px 0px;
  border-bottom: 1px solid #c1cccf;
  }
#header {
  margin: 5px;
  border: 1px solid $bordercolor;
  text-align: center;
  color:$pagetitlecolor;
  }
#header h1 {
  margin:5px 5px 0;
  padding:15px 20px .25em;
  line-height:1.2em;
  text-transform:uppercase;
  letter-spacing:.2em;
  font: $pagetitlefont;
  }
#header-wrapper {
  width:660px;
  margin: 0px 0px 20px 0px;
  border-bottom: 1px solid #c1cccf;
  }
#header {



  color:$pagetitlecolor;
  }
#header h1 {
  margin:5px 5px 0;
  padding:15px 20px .25em;
  line-height:1.2em;
  text-transform:uppercase;
  letter-spacing:.2em;
  font: $pagetitlefont;
  }
#header-wrapper {
  width:660px;
  margin: 0px 0px 20px 0px;
  border-bottom: 1px solid #c1cccf;
  }
#header {
  color: #000033;
  }



#header h1 {
  margin:5px 5px 0;
  padding:15px 20px .25em;
  line-height:1.2em;
  text-transform:uppercase;
  letter-spacing:.2em;
  font: $pagetitlefont;
  }
#header-wrapper {
  width:660px;
  margin: 0px 0px 20px 0px;
  border-bottom: 1px solid #c1cccf;
  }
#header {
  color: #000033;
  }



#header h1 {
  margin: 0px;
  padding:15px 20px .25em;
  line-height:1.2em;
  text-transform:uppercase;
  letter-spacing:.2em;
  font: $pagetitlefont;
  }
#header-wrapper {
  width:660px;
  margin: 0px 0px 20px 0px;
  border-bottom: 1px solid #c1cccf;
  }
#header {
  color: #000033;
  }



#header h1 {
  margin: 0px;
  padding: 30px 0px 0px 0px;
  line-height:1.2em;
  text-transform:uppercase;
  letter-spacing:.2em;
  font: $pagetitlefont;
  }
BloggingWithStyle_2008
BloggingWithStyle_2008
.sidebar .widget, .main .widget {
  border-bottom:1px dotted $bordercolor;
  margin:0 0 1.5em;
  padding:0 0 1.5em;
 }
.sidebar .widget, .main .widget {
  margin:0 0 1.5em;
  padding:0 0 1.5em;
 }
.sidebar .widget, .main .widget {
  margin:0px;
  padding:0 0 1.5em;
 }
.sidebar .widget, .main .widget {
  margin:0px;
  padding:0 0 1.5em;
 }


#sidebar-wrapper h2 {
  background-color: #113355;
  padding: 3px 0px 3px 5px;
  color: #ffffff;
 }
BloggingWithStyle_2008
BloggingWithStyle_2008
BloggingWithStyle_2008
Resources and Next Steps

              Selectutorial
 http://css.maxdesign.com.au/selectutorial/

      W3Schools CSS Tutorial
     http://www.w3schools.com/css/

           CSS Zen Garden
      http://www.csszengarden.com/
</slideshow >
1 sur 82

Recommandé

Theme04 par
Theme04Theme04
Theme04Atleta De Taekwondo
450 vues5 diapositives
Software programming tools for creating/managing CSS files par
Software programming tools for creating/managing CSS filesSoftware programming tools for creating/managing CSS files
Software programming tools for creating/managing CSS filesDinu Suman
1.4K vues26 diapositives
Theme01 par
Theme01Theme01
Theme01Atleta De Taekwondo
583 vues6 diapositives
Theme02 par
Theme02Theme02
Theme02Atleta De Taekwondo
496 vues6 diapositives
Theme03 par
Theme03Theme03
Theme03Atleta De Taekwondo
474 vues5 diapositives
ID01 / W01 par
ID01 / W01ID01 / W01
ID01 / W01mkontopo
1.7K vues30 diapositives

Contenu connexe

Tendances

Simplifying CSS With Sass par
Simplifying CSS With SassSimplifying CSS With Sass
Simplifying CSS With SassThomas Reynolds
2.6K vues32 diapositives
Sassive Aggressive: Using Sass to Make Your Life Easier (NSWG Version) par
Sassive Aggressive: Using Sass to Make Your Life Easier (NSWG Version)Sassive Aggressive: Using Sass to Make Your Life Easier (NSWG Version)
Sassive Aggressive: Using Sass to Make Your Life Easier (NSWG Version)Adam Darowski
5.4K vues80 diapositives
Organizing & Simplifying CSS [with Sass] par
Organizing & Simplifying CSS [with Sass]Organizing & Simplifying CSS [with Sass]
Organizing & Simplifying CSS [with Sass]Matt Puchlerz
1.1K vues53 diapositives
Stylesheets of the future with Sass and Compass par
Stylesheets of the future with Sass and CompassStylesheets of the future with Sass and Compass
Stylesheets of the future with Sass and CompassDave Ross
988 vues17 diapositives
Css & css3 par
Css & css3Css & css3
Css & css3isha
122 vues15 diapositives
Client Side Performance In Web Applications Resources par
Client Side Performance In Web Applications   ResourcesClient Side Performance In Web Applications   Resources
Client Side Performance In Web Applications Resourcesvladungureanu
320 vues4 diapositives

Tendances(19)

Sassive Aggressive: Using Sass to Make Your Life Easier (NSWG Version) par Adam Darowski
Sassive Aggressive: Using Sass to Make Your Life Easier (NSWG Version)Sassive Aggressive: Using Sass to Make Your Life Easier (NSWG Version)
Sassive Aggressive: Using Sass to Make Your Life Easier (NSWG Version)
Adam Darowski5.4K vues
Organizing & Simplifying CSS [with Sass] par Matt Puchlerz
Organizing & Simplifying CSS [with Sass]Organizing & Simplifying CSS [with Sass]
Organizing & Simplifying CSS [with Sass]
Matt Puchlerz1.1K vues
Stylesheets of the future with Sass and Compass par Dave Ross
Stylesheets of the future with Sass and CompassStylesheets of the future with Sass and Compass
Stylesheets of the future with Sass and Compass
Dave Ross988 vues
Css & css3 par isha
Css & css3Css & css3
Css & css3
isha 122 vues
Client Side Performance In Web Applications Resources par vladungureanu
Client Side Performance In Web Applications   ResourcesClient Side Performance In Web Applications   Resources
Client Side Performance In Web Applications Resources
vladungureanu320 vues
Work and play with SASS & Compass par Andreas Dantz
Work and play with SASS & CompassWork and play with SASS & Compass
Work and play with SASS & Compass
Andreas Dantz1.4K vues
Sending E-mail that reaches the destination using PHP par Manuel Lemos
Sending E-mail that reaches the destination using PHPSending E-mail that reaches the destination using PHP
Sending E-mail that reaches the destination using PHP
Manuel Lemos601 vues
Xlrays online web tutorials par Yogesh Gupta
Xlrays online web tutorialsXlrays online web tutorials
Xlrays online web tutorials
Yogesh Gupta492 vues
The Ring programming language version 1.10 book - Part 55 of 212 par Mahmoud Samir Fayed
The Ring programming language version 1.10 book - Part 55 of 212The Ring programming language version 1.10 book - Part 55 of 212
The Ring programming language version 1.10 book - Part 55 of 212
Class 2: CSS Selectors, Classes & Ids par Erika Tarte
Class 2: CSS Selectors, Classes & IdsClass 2: CSS Selectors, Classes & Ids
Class 2: CSS Selectors, Classes & Ids
Erika Tarte596 vues
SASS In The Real World par fesuffolk
SASS In The Real WorldSASS In The Real World
SASS In The Real World
fesuffolk637 vues
The Ring programming language version 1.5.3 book - Part 45 of 184 par Mahmoud Samir Fayed
The Ring programming language version 1.5.3 book - Part 45 of 184The Ring programming language version 1.5.3 book - Part 45 of 184
The Ring programming language version 1.5.3 book - Part 45 of 184
Content style in html with example - PhpGurukul Tutorials par PHPGurukul Blog
Content style in html with example - PhpGurukul TutorialsContent style in html with example - PhpGurukul Tutorials
Content style in html with example - PhpGurukul Tutorials
PHPGurukul Blog46 vues
CSS preprocessor: why and how par mirahman
CSS preprocessor: why and howCSS preprocessor: why and how
CSS preprocessor: why and how
mirahman1.9K vues

En vedette

CombustionREFlexMorphing par
CombustionREFlexMorphingCombustionREFlexMorphing
CombustionREFlexMorphingtutorialsruby
178 vues9 diapositives
instaling par
instalinginstaling
instalingtutorialsruby
446 vues10 diapositives
skintutorial par
skintutorialskintutorial
skintutorialtutorialsruby
828 vues20 diapositives
web%20design-08-fall par
web%20design-08-fallweb%20design-08-fall
web%20design-08-falltutorialsruby
800 vues7 diapositives
Jonny_Martin-Asterisk par
Jonny_Martin-AsteriskJonny_Martin-Asterisk
Jonny_Martin-Asterisktutorialsruby
793 vues61 diapositives
How States Can Support Transformation in Tough Times par
How States Can Support Transformation in Tough TimesHow States Can Support Transformation in Tough Times
How States Can Support Transformation in Tough TimesEducation Resource Strategies
1K vues35 diapositives

Similaire à BloggingWithStyle_2008

Estilos Css par
Estilos CssEstilos Css
Estilos Cssandreagonza26
236 vues15 diapositives
css-note.pptx par
css-note.pptxcss-note.pptx
css-note.pptxSamay16
4 vues31 diapositives
Bloggdesign #2 - hawaa.blogg.no par
Bloggdesign #2 - hawaa.blogg.noBloggdesign #2 - hawaa.blogg.no
Bloggdesign #2 - hawaa.blogg.noHannee92
486 vues17 diapositives
Css tips & tricks par
Css tips & tricksCss tips & tricks
Css tips & tricksanubavam-techkt
1.7K vues24 diapositives
cascading style sheet ppt par
cascading style sheet pptcascading style sheet ppt
cascading style sheet pptabhilashagupta
38.3K vues29 diapositives
Css 1 par
Css 1Css 1
Css 1H K
949 vues7 diapositives

Similaire à BloggingWithStyle_2008(20)

css-note.pptx par Samay16
css-note.pptxcss-note.pptx
css-note.pptx
Samay164 vues
Bloggdesign #2 - hawaa.blogg.no par Hannee92
Bloggdesign #2 - hawaa.blogg.noBloggdesign #2 - hawaa.blogg.no
Bloggdesign #2 - hawaa.blogg.no
Hannee92486 vues
Css 1 par H K
Css 1Css 1
Css 1
H K949 vues
Simple Blue Blog Template XML 的副本 par a5494535
Simple Blue Blog Template XML 的副本Simple Blue Blog Template XML 的副本
Simple Blue Blog Template XML 的副本
a5494535588 vues
Week ThreeExpress Holidayscssstyle.csshtml{ height 100.docx par philipnelson29183
Week ThreeExpress Holidayscssstyle.csshtml{ height 100.docxWeek ThreeExpress Holidayscssstyle.csshtml{ height 100.docx
Week ThreeExpress Holidayscssstyle.csshtml{ height 100.docx
Theme futura suicida não use como base e nem copie par Rafaela Souza
Theme futura suicida não use como base e nem copieTheme futura suicida não use como base e nem copie
Theme futura suicida não use como base e nem copie
Rafaela Souza314 vues
Theme futura suicida não use como base e nem copie par Rafaela Souza
Theme futura suicida não use como base e nem copieTheme futura suicida não use como base e nem copie
Theme futura suicida não use como base e nem copie
Rafaela Souza185 vues
Css presentation introdution with sample basic projects par Digital Shende
Css presentation introdution with sample basic projectsCss presentation introdution with sample basic projects
Css presentation introdution with sample basic projects
Digital Shende55 vues
Introduction to css by programmerblog.net par Programmer Blog
Introduction to css by programmerblog.netIntroduction to css by programmerblog.net
Introduction to css by programmerblog.net
Programmer Blog94 vues

Plus de tutorialsruby

&lt;img src="../i/r_14.png" /> par
&lt;img src="../i/r_14.png" />&lt;img src="../i/r_14.png" />
&lt;img src="../i/r_14.png" />tutorialsruby
237 vues46 diapositives
TopStyle Help &amp; &lt;b>Tutorial&lt;/b> par
TopStyle Help &amp; &lt;b>Tutorial&lt;/b>TopStyle Help &amp; &lt;b>Tutorial&lt;/b>
TopStyle Help &amp; &lt;b>Tutorial&lt;/b>tutorialsruby
3.5K vues46 diapositives
The Art Institute of Atlanta IMD 210 Fundamentals of Scripting &lt;b>...&lt;/b> par
The Art Institute of Atlanta IMD 210 Fundamentals of Scripting &lt;b>...&lt;/b>The Art Institute of Atlanta IMD 210 Fundamentals of Scripting &lt;b>...&lt;/b>
The Art Institute of Atlanta IMD 210 Fundamentals of Scripting &lt;b>...&lt;/b>tutorialsruby
3.9K vues12 diapositives
&lt;img src="../i/r_14.png" /> par
&lt;img src="../i/r_14.png" />&lt;img src="../i/r_14.png" />
&lt;img src="../i/r_14.png" />tutorialsruby
10 vues12 diapositives
&lt;img src="../i/r_14.png" /> par
&lt;img src="../i/r_14.png" />&lt;img src="../i/r_14.png" />
&lt;img src="../i/r_14.png" />tutorialsruby
5 vues3 diapositives
Standardization and Knowledge Transfer – INS0 par
Standardization and Knowledge Transfer – INS0Standardization and Knowledge Transfer – INS0
Standardization and Knowledge Transfer – INS0tutorialsruby
2.8K vues3 diapositives

Plus de tutorialsruby(20)

&lt;img src="../i/r_14.png" /> par tutorialsruby
&lt;img src="../i/r_14.png" />&lt;img src="../i/r_14.png" />
&lt;img src="../i/r_14.png" />
tutorialsruby237 vues
TopStyle Help &amp; &lt;b>Tutorial&lt;/b> par tutorialsruby
TopStyle Help &amp; &lt;b>Tutorial&lt;/b>TopStyle Help &amp; &lt;b>Tutorial&lt;/b>
TopStyle Help &amp; &lt;b>Tutorial&lt;/b>
tutorialsruby3.5K vues
The Art Institute of Atlanta IMD 210 Fundamentals of Scripting &lt;b>...&lt;/b> par tutorialsruby
The Art Institute of Atlanta IMD 210 Fundamentals of Scripting &lt;b>...&lt;/b>The Art Institute of Atlanta IMD 210 Fundamentals of Scripting &lt;b>...&lt;/b>
The Art Institute of Atlanta IMD 210 Fundamentals of Scripting &lt;b>...&lt;/b>
tutorialsruby3.9K vues
Standardization and Knowledge Transfer – INS0 par tutorialsruby
Standardization and Knowledge Transfer – INS0Standardization and Knowledge Transfer – INS0
Standardization and Knowledge Transfer – INS0
tutorialsruby2.8K vues
0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269 par tutorialsruby
0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa0602690047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269
0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269
tutorialsruby5.3K vues
0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269 par tutorialsruby
0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa0602690047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269
0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269
tutorialsruby1.3K vues
Winter%200405%20-%20Advanced%20Javascript par tutorialsruby
Winter%200405%20-%20Advanced%20JavascriptWinter%200405%20-%20Advanced%20Javascript
Winter%200405%20-%20Advanced%20Javascript
tutorialsruby719 vues
Winter%200405%20-%20Advanced%20Javascript par tutorialsruby
Winter%200405%20-%20Advanced%20JavascriptWinter%200405%20-%20Advanced%20Javascript
Winter%200405%20-%20Advanced%20Javascript
tutorialsruby695 vues

Dernier

MVP and prioritization.pdf par
MVP and prioritization.pdfMVP and prioritization.pdf
MVP and prioritization.pdfrahuldharwal141
31 vues8 diapositives
ESPC 2023 - Protect and Govern your Sensitive Data with Microsoft Purview in ... par
ESPC 2023 - Protect and Govern your Sensitive Data with Microsoft Purview in ...ESPC 2023 - Protect and Govern your Sensitive Data with Microsoft Purview in ...
ESPC 2023 - Protect and Govern your Sensitive Data with Microsoft Purview in ...Jasper Oosterveld
19 vues49 diapositives
Mini-Track: AI and ML in Network Operations Applications par
Mini-Track: AI and ML in Network Operations ApplicationsMini-Track: AI and ML in Network Operations Applications
Mini-Track: AI and ML in Network Operations ApplicationsNetwork Automation Forum
10 vues24 diapositives
STKI Israeli Market Study 2023 corrected forecast 2023_24 v3.pdf par
STKI Israeli Market Study 2023   corrected forecast 2023_24 v3.pdfSTKI Israeli Market Study 2023   corrected forecast 2023_24 v3.pdf
STKI Israeli Market Study 2023 corrected forecast 2023_24 v3.pdfDr. Jimmy Schwarzkopf
20 vues29 diapositives
【USB韌體設計課程】精選講義節錄-USB的列舉過程_艾鍗學院 par
【USB韌體設計課程】精選講義節錄-USB的列舉過程_艾鍗學院【USB韌體設計課程】精選講義節錄-USB的列舉過程_艾鍗學院
【USB韌體設計課程】精選講義節錄-USB的列舉過程_艾鍗學院IttrainingIttraining
58 vues8 diapositives
Info Session November 2023.pdf par
Info Session November 2023.pdfInfo Session November 2023.pdf
Info Session November 2023.pdfAleksandraKoprivica4
13 vues15 diapositives

Dernier(20)

ESPC 2023 - Protect and Govern your Sensitive Data with Microsoft Purview in ... par Jasper Oosterveld
ESPC 2023 - Protect and Govern your Sensitive Data with Microsoft Purview in ...ESPC 2023 - Protect and Govern your Sensitive Data with Microsoft Purview in ...
ESPC 2023 - Protect and Govern your Sensitive Data with Microsoft Purview in ...
STKI Israeli Market Study 2023 corrected forecast 2023_24 v3.pdf par Dr. Jimmy Schwarzkopf
STKI Israeli Market Study 2023   corrected forecast 2023_24 v3.pdfSTKI Israeli Market Study 2023   corrected forecast 2023_24 v3.pdf
STKI Israeli Market Study 2023 corrected forecast 2023_24 v3.pdf
【USB韌體設計課程】精選講義節錄-USB的列舉過程_艾鍗學院 par IttrainingIttraining
【USB韌體設計課程】精選講義節錄-USB的列舉過程_艾鍗學院【USB韌體設計課程】精選講義節錄-USB的列舉過程_艾鍗學院
【USB韌體設計課程】精選講義節錄-USB的列舉過程_艾鍗學院
Data Integrity for Banking and Financial Services par Precisely
Data Integrity for Banking and Financial ServicesData Integrity for Banking and Financial Services
Data Integrity for Banking and Financial Services
Precisely25 vues
Future of AR - Facebook Presentation par ssuserb54b561
Future of AR - Facebook PresentationFuture of AR - Facebook Presentation
Future of AR - Facebook Presentation
ssuserb54b56115 vues
Powerful Google developer tools for immediate impact! (2023-24) par wesley chun
Powerful Google developer tools for immediate impact! (2023-24)Powerful Google developer tools for immediate impact! (2023-24)
Powerful Google developer tools for immediate impact! (2023-24)
wesley chun10 vues
Piloting & Scaling Successfully With Microsoft Viva par Richard Harbridge
Piloting & Scaling Successfully With Microsoft VivaPiloting & Scaling Successfully With Microsoft Viva
Piloting & Scaling Successfully With Microsoft Viva
TrustArc Webinar - Managing Online Tracking Technology Vendors_ A Checklist f... par TrustArc
TrustArc Webinar - Managing Online Tracking Technology Vendors_ A Checklist f...TrustArc Webinar - Managing Online Tracking Technology Vendors_ A Checklist f...
TrustArc Webinar - Managing Online Tracking Technology Vendors_ A Checklist f...
TrustArc11 vues

BloggingWithStyle_2008

  • 1. Style Blogging with An Introduction to CSS Presented by Anthony Piraino at ConvergeSouth 2008
  • 2. What is CSS and why should I learn it?
  • 4. Your Blog: Under the Hood
  • 6. HTML HyperText Markup Language Describes the semantics and structure of content on a web page.
  • 7. CSS Cascading Style Sheets Describes the presentation of content on a web page by defining design elements such as layout, fonts, and colors.
  • 19. How do they work together? CSS lets you define visual styling by targeting rules to individual HTML elements.
  • 20. <html> <body> <h1>This is a header</h1> <p> Here is a block of paragraph text, blah blah blah etc. HTML </p> <h2>Another header</h2> <p> And yet another paragraph with a block of text. </p> </body> </html>
  • 21. body { font-family: "trebuchet ms", sans-serif; background-color: #ddeedd; padding: 20px 100px 0px 100px; } h1, h2 { font-size: 1.8em; color: #88aa44; margin: 0px; CSS } h2 { font-size: 1.4em; background-color: #ffffff; padding: 0px 30px 0px 30px; } p { background-color: #ffffff; padding: 30px; margin: 0px; }
  • 24. body { font-family: "trebuchet ms", sans-serif; <body> background-color: #ddeedd; padding: 20px 100px 0px 100px; <h1>This is a header</h1> } <p> h1, h2 { Here is a block of font-size: 1.8em; paragraph text, blah color: #88aa44; blah blah etc. margin: 0px; </p> } h2 { <h2>Another header</h2> font-size: 1.4em; background-color: #ffffff; <p> padding: 0px 30px 0px 30px; And yet another paragraph } with a block of text. </p> p { background-color: #ffffff; </body> padding: 30px; margin: 0px; } HTML CSS
  • 25. CSS Syntax A stylesheet lists rules for presentation. Each rule consists of a selector and a declaration block.
  • 27. The Type Selector p { color: #1662d8; background-color: #ffffff; padding: 10px; border: 5px solid #1bc8fe; }
  • 28. Here is an example paragraph with a styled font, color, padding and border. p { color: #1662d8; background-color: #ffffff; padding: 10px; border: 5px solid #1bc8fe; }
  • 29. The Class Selector <p> This is a normal paragraph, nothing exciting going on here. </p> <p class=”alert”> But this is a really important paragraph - pay attention! </p>
  • 30. p { color: gray; font-size: 12px; } p.alert { color: red; font-size: 18px; font-weight: bold; }
  • 31. This is a normal paragraph, nothing exciting going on here. But this is a really important paragraph - pay attention!
  • 32. The ID Selector HTML <ul id=”contents”> <li>Chapter 1</li> <li>Chapter 2</li> <li>Chapter 3</li> </ul> CSS #contents { font-weight: bold; font-size: 18px; }
  • 33. Descendant Selectors <p> This is a stand-alone paragraph. </p> <blockquote> <p> A paragraph inside our blockquote. </p> <p> And another blockquoted paragraph. </p> </blockquote>
  • 34. blockquote p { color: blue; font-weight: bold; border-left: 3px solid blue; padding-left: 10px; }
  • 35. This is a stand-alone paragraph. A paragraph inside our blockquote. And another blockquoted paragraph.
  • 36. { The Declaration Block }
  • 37. Properties and Values Value of my House Jan Feb March April May June
  • 38. Properties and Values selector { property: value; property: value; }
  • 39. color
  • 40. By Name aqua, black, blue, fuchsia, gray, etc. Full list of supported color names: http://www.w3schools.com/css/css_colornames.asp
  • 41. By Hex Value Roses are #ff0000 Violets are #0000ff
  • 42. Red Green Blue #00 00 00
  • 46. The Box Model element padding border margin
  • 47. Margin and Padding Values margin: 0px 20px 10px 20px; top right bottom left
  • 52. #outer-wrapper { width: 660px; margin:0 auto; padding:10px; text-align:$startSide; font: $bodyfont; }
  • 54. #outer-wrapper { width: 660px; margin:0 auto; padding: 10px; text-align:$startSide; font: $bodyfont; }
  • 55. #outer-wrapper { width: 660px; margin:0 auto; padding: 10px 40px 10px 40px; text-align:$startSide; font: $bodyfont; }
  • 56. #outer-wrapper { width: 660px; margin:0 auto; padding: 10px 40px 10px 40px; text-align:$startSide; font: $bodyfont; background-color: #effcff; border-left: 10px solid #003; border-right: 10px solid #003; }
  • 59. #header-wrapper { width:660px; margin:0 auto 10px; border:1px solid $bordercolor; } #header { margin: 5px; border: 1px solid $bordercolor; text-align: center; color:$pagetitlecolor; } #header h1 { margin:5px 5px 0; padding:15px 20px .25em; line-height:1.2em; text-transform:uppercase; letter-spacing:.2em; font: $pagetitlefont; }
  • 60. #header-wrapper #header #header h1
  • 61. #header-wrapper #header #header h1
  • 62. #header-wrapper #header #header h1
  • 63. #header-wrapper #header #header h1
  • 64. #header-wrapper { width:660px; margin:0 auto 10px; border:1px solid $bordercolor; } #header { margin: 5px; border: 1px solid $bordercolor; text-align: center; color:$pagetitlecolor; } #header h1 { margin:5px 5px 0; padding:15px 20px .25em; line-height:1.2em; text-transform:uppercase; letter-spacing:.2em; font: $pagetitlefont; }
  • 65. #header-wrapper { width:660px; margin:0 auto 10px; border:1px solid $bordercolor; } #header { margin: 5px; border: 1px solid $bordercolor; text-align: center; color:$pagetitlecolor; } #header h1 { margin:5px 5px 0; padding:15px 20px .25em; line-height:1.2em; text-transform:uppercase; letter-spacing:.2em; font: $pagetitlefont; }
  • 66. #header-wrapper { width:660px; margin: 0px 0px 20px 0px; border:1px solid $bordercolor; } #header { margin: 5px; border: 1px solid $bordercolor; text-align: center; color:$pagetitlecolor; } #header h1 { margin:5px 5px 0; padding:15px 20px .25em; line-height:1.2em; text-transform:uppercase; letter-spacing:.2em; font: $pagetitlefont; }
  • 67. #header-wrapper { width:660px; margin: 0px 0px 20px 0px; border-bottom: 1px solid #c1cccf; } #header { margin: 5px; border: 1px solid $bordercolor; text-align: center; color:$pagetitlecolor; } #header h1 { margin:5px 5px 0; padding:15px 20px .25em; line-height:1.2em; text-transform:uppercase; letter-spacing:.2em; font: $pagetitlefont; }
  • 68. #header-wrapper { width:660px; margin: 0px 0px 20px 0px; border-bottom: 1px solid #c1cccf; } #header { color:$pagetitlecolor; } #header h1 { margin:5px 5px 0; padding:15px 20px .25em; line-height:1.2em; text-transform:uppercase; letter-spacing:.2em; font: $pagetitlefont; }
  • 69. #header-wrapper { width:660px; margin: 0px 0px 20px 0px; border-bottom: 1px solid #c1cccf; } #header { color: #000033; } #header h1 { margin:5px 5px 0; padding:15px 20px .25em; line-height:1.2em; text-transform:uppercase; letter-spacing:.2em; font: $pagetitlefont; }
  • 70. #header-wrapper { width:660px; margin: 0px 0px 20px 0px; border-bottom: 1px solid #c1cccf; } #header { color: #000033; } #header h1 { margin: 0px; padding:15px 20px .25em; line-height:1.2em; text-transform:uppercase; letter-spacing:.2em; font: $pagetitlefont; }
  • 71. #header-wrapper { width:660px; margin: 0px 0px 20px 0px; border-bottom: 1px solid #c1cccf; } #header { color: #000033; } #header h1 { margin: 0px; padding: 30px 0px 0px 0px; line-height:1.2em; text-transform:uppercase; letter-spacing:.2em; font: $pagetitlefont; }
  • 74. .sidebar .widget, .main .widget { border-bottom:1px dotted $bordercolor; margin:0 0 1.5em; padding:0 0 1.5em; }
  • 75. .sidebar .widget, .main .widget { margin:0 0 1.5em; padding:0 0 1.5em; }
  • 76. .sidebar .widget, .main .widget { margin:0px; padding:0 0 1.5em; }
  • 77. .sidebar .widget, .main .widget { margin:0px; padding:0 0 1.5em; } #sidebar-wrapper h2 { background-color: #113355; padding: 3px 0px 3px 5px; color: #ffffff; }
  • 81. Resources and Next Steps Selectutorial http://css.maxdesign.com.au/selectutorial/ W3Schools CSS Tutorial http://www.w3schools.com/css/ CSS Zen Garden http://www.csszengarden.com/