SlideShare a Scribd company logo
HTML                 5
& CSS
DINIS CORREIA 2011
              cbn
CSS     1
      PROPRIEDADES
        DE LAYOUT




        2
      BACKGROUNDS




        3LISTAS
2
      3
      LISTAS




CSS
      4
      TABELAS




      ⇪
4
                        TABELAS




CSS


                        ⇪
na sessão anterior...
LINKS
link, visited, hover, focus, active
PROPRIEDADES
  DE LAYOUT
PROPRIEDADES
  DE LAYOUT
    margin
   padding
    border
     width
    height
MARGIN
CSS




      p	
  {	
  
           margin-­‐top:	
  10px;
           margin-­‐right:	
  10px;
           margin-­‐bottom:	
  10px;
           margin-­‐left:	
  10px;	
  
      }
CSS




      p	
  {	
  
           margin:	
  10px;	
  
      }
top



left    <p>     right



       bottom
1
          top



4 left    <p>     right   2


         bottom
            3
CSS



      p	
  {	
  margin-­‐bottom:	
  10px;	
  }
CSS



      p	
  {	
  margin-­‐bottom:	
  20px;	
  }
CSS



      p	
  {	
  margin-­‐bottom:	
  20px;	
  }




                                    20px
Todos os elementos inline - com

!   excepção do img - ignoram a
    propiedade margin.
CSS



      p	
  {	
  margin-­‐top:	
  -­‐14px;	
  }
CSS



      p	
  {	
  margin-­‐top:	
  -­‐14px;	
  }
CSS



      p	
  {	
  margin:	
  10px	
  0	
  20px	
  0;	
  }
CSS



      p	
  {	
  margin:	
  10px	
  0	
  20px	
  0;	
  }




                                          20px
CSS



      p	
  {	
  margin:	
  10px	
  0	
  20px	
  0;	
  }
BORDER
CSS




      p	
  {	
  
           border-­‐width:	
  1px;
           border-­‐style:	
  solid;
           border-­‐color:	
  #ff0000;
      }
CSS


      p	
  {	
  
           border-­‐top-­‐width:	
  1px;
           border-­‐top-­‐style:	
  solid;
           border-­‐top-­‐color:	
  #ff0000;
           border-­‐right-­‐width:	
  1px;
           border-­‐right-­‐style:	
  dotted;
           border-­‐right-­‐color:	
  #000;
           ...
      }
CSS




      p	
  {	
  
           border:	
  1px	
  solid	
  #000;
      }
CSS
      p	
  {	
  
           border-­‐width:	
  1px;
           border-­‐style:	
  solid;
           border-­‐color:	
  #ff0000;
      }
CSS
      p	
  {	
  
           border-­‐width:	
  5px;
           border-­‐style:	
  solid;
           border-­‐color:	
  #ff0000;
      }
CSS
      p	
  {	
  
           border-­‐width:	
  1px;
           border-­‐style:	
  solid;
           border-­‐color:	
  #ff0000;
      }
CSS
      p	
  {	
  
           border-­‐width:	
  1px;
           border-­‐style:	
  solid;
           border-­‐color:	
  #ff0000;
      }
CSS
      p	
  {	
  
           border-­‐width:	
  1px;
           border-­‐style:	
  dashed;
           border-­‐color:	
  #ff0000;
      }
border-­‐style:	
  dashed;
border-­‐style:	
  dotted;
border-­‐style:	
  double;
border-­‐style:	
  inset;
border-­‐style:	
  groove;
border-­‐style:	
  outset;
border-­‐style:	
  ridge;
border-­‐style:	
  solid;
PADDING
CSS




      p	
  {	
  
           padding-­‐top:	
  10px;
           padding-­‐right:	
  10px;	
  
           padding-­‐bottom:	
  10px;
           padding-­‐left:	
  10px;
      }
CSS




      p	
  {	
  
           padding:	
  10px;
      }
CSS



      p	
  {	
  padding:	
  10px;	
  }




                     z
CSS



      p	
  {	
  padding:	
  10px;	
  }




                     z


                         10px
DIMENSÕES
width	
  	
  height
!   Os elementos inline ignoram
    width	
  e	
  height...
!   Os elementos inline ignoram
    width	
  e	
  height... exepto as
    imagens.
CSS



      p	
  {	
  width:	
  160px;	
  }
CSS



      p	
  {	
  width:	
  160px;	
  }
!   Definir alturas só quando
    estritamente necessário.
CSS
      p	
  {	
  
           width:	
  160px;
           height:	
  auto;	
  
      }
CSS
      p	
  {	
  
           width:	
  160px;
           height:	
  20px;	
  
      }
CSS




      div	
  {	
  
        min-­‐width:	
  200px;
        min-­‐height:	
  500px;
      }
CSS




      div	
  {	
  
        min-­‐width:	
  200px;
        min-­‐height:	
  500px;
        max-­‐width:	
  980px;
        max-­‐height:	
  800px;
      }
DIMENSÕES
  overflow
CSS




      p	
  {	
  overflow:	
  visible;	
  }
      p	
  {	
  overflow:	
  hidden;	
  }
      p	
  {	
  overflow:	
  auto;	
  }
      p	
  {	
  overflow:	
  scroll;	
  }
CSS



      p	
  {	
  overflow:	
  visible;	
  }
CSS



      p	
  {	
  overflow:	
  hidden;	
  }
CSS



      p	
  {	
  overflow:	
  auto;	
  }
CSS



      p	
  {	
  overflow:	
  auto;	
  }
UNIDADES
ABSOLUTAS
       px   width:	
  800px;




RELATIVAS
       em   width:	
  20em;

        %   width:	
  40%;
CSS



      p	
  {	
  width:	
  120px;	
  }
CSS
      p	
  {	
  
           font-­‐size:	
  20px;
           width:	
  3em;
      }
CSS
      p	
  {	
  
           font-­‐size:	
  20px;
           width:	
  3em;
      }




                20px	
  x	
  3	
  =	
  60px
BOX MODEL
Conteúdo de
um elemento
MARGIN

  BORDER
     PADDING




               Conteúdo de
               um elemento
MARGIN

  BORDER
     PADDING
                  WIDTH


                     Conteúdo de
         HEIGHT



                     um elemento




                          BOX
CSS
      p	
  {	
  
            width:	
  120px;
            border:	
  2px	
  dotted	
  #000;
            padding:	
  3px;
            margin:	
  10px;
      }




                          ?
CSS
      p	
  {	
  
            width:	
  120px;
            border:	
  2px	
  dotted	
  #000;
            padding:	
  3px;
            margin:	
  10px;
      }




                       150px
DISPLAY
http://bit.ly/html_elements
CSS




      p	
  {	
  display:	
  block;	
  }
      p	
  {	
  display:	
  inline;	
  }
      p	
  {	
  display:	
  none;	
  }
CSS

      p	
  {	
  
           display:	
  inline;
      }
BACKGROUND
CSS




      body	
  {	
  
         background-­‐color:	
  #ccc;
         background-­‐image:	
  url(image.gif);
         background-­‐attachment:	
  scroll;
         background-­‐repeat:	
  no-­‐repeat;
         background-­‐position:	
  0	
  0;
      }
CSS
      body	
  {	
  
         background-­‐color:	
  #ccc;
      }
CSS
      body	
  {	
  
         background-­‐color:	
  #ccc;
         background-­‐image:	
  url(paper_green.jpg);
      }
CSS
      body	
  {	
  
         background-­‐color:	
  #ccc;
         background-­‐image:	
  url(paper_green.jpg);
         background-­‐repeat:	
  no-­‐repeat;
      }
CSS
      body	
  {	
  
         background-­‐color:	
  #ccc;
         background-­‐image:	
  url(paper_green.jpg);
         background-­‐repeat:	
  repeat-­‐y;
      }
CSS
      body	
  {	
  
         background-­‐color:	
  #ccc;
         background-­‐image:	
  url(paper_green.jpg);
         background-­‐repeat:	
  repeat-­‐x;
      }
CSS
      body	
  {	
  
         background-­‐color:	
  #ccc;
         background-­‐image:	
  url(paper_green.jpg);
         background-­‐repeat:	
  repeat-­‐x;
         background-­‐attachament:	
  scroll;
      }
CSS
      body	
  {	
  
         background-­‐color:	
  #ccc;
         background-­‐image:	
  url(paper_green.jpg);
         background-­‐repeat:	
  repeat-­‐x;
         background-­‐attachament:	
  scroll;
      }
CSS
      body	
  {	
  
         background-­‐color:	
  #ccc;
         background-­‐image:	
  url(paper_green.jpg);
         background-­‐repeat:	
  repeat-­‐x;
         background-­‐attachament:	
  fixed;
      }
CSS
      body	
  {	
  
         background-­‐color:	
  #ccc;
         background-­‐image:	
  url(paper_green.jpg);
         background-­‐repeat:	
  no-­‐repeat;
         background-­‐attachament:	
  fixed;
         background-­‐position:	
  0	
  0;
      }
CSS
      body	
  {	
  
         background-­‐color:	
  #ccc;
         background-­‐image:	
  url(paper_green.jpg);
         background-­‐repeat:	
  no-­‐repeat;
         background-­‐attachament:	
  fixed;
         background-­‐position:	
  0	
  40px;
      }
CSS
      body	
  {	
  
         background-­‐color:	
  #ccc;
         background-­‐image:	
  url(paper_green.jpg);
         background-­‐repeat:	
  no-­‐repeat;
         background-­‐attachament:	
  fixed;
         background-­‐position:	
  40px	
  0;
      }
CSS
      body	
  {	
  
         background-­‐color:	
  #ccc;
         background-­‐image:	
  url(paper_green.jpg);
         background-­‐repeat:	
  no-­‐repeat;
         background-­‐attachament:	
  fixed;
         background-­‐position:	
  left	
  top;
      }
CSS
      body	
  {	
  
         background-­‐color:	
  #ccc;
         background-­‐image:	
  url(paper_green.jpg);
         background-­‐repeat:	
  no-­‐repeat;
         background-­‐attachament:	
  fixed;
         background-­‐position:	
  right	
  top;
      }
CSS
      body	
  {	
  
         background-­‐color:	
  #ccc;
         background-­‐image:	
  url(paper_green.jpg);
         background-­‐repeat:	
  no-­‐repeat;
         background-­‐attachament:	
  fixed;
         background-­‐position:	
  center	
  top;
      }
CSS
      body	
  {	
  
         background-­‐color:	
  #ccc;
         background-­‐image:	
  url(paper_green.jpg);
         background-­‐repeat:	
  no-­‐repeat;
         background-­‐attachament:	
  fixed;
         background-­‐position:	
  20%	
  0;
      }
CSS
      body	
  {	
  
         background-­‐color:	
  #ccc;
         background-­‐image:	
  url(paper_green.jpg);
         background-­‐repeat:	
  no-­‐repeat;
         background-­‐attachament:	
  fixed;
         background-­‐position:	
  50%	
  0;
      }
CSS




  body	
  {	
  background:	
  #ccc	
  url(fundo.gif)	
  no-­‐repeat	
  scroll	
  left	
  top	
  }



                            -color                                  -attachment



                                         -image

                                                           -repeat                -position
LISTAS
list-­‐style-­‐type
list-­‐style-­‐type:	
  disc;
         list-­‐style-­‐type:	
  square;
         list-­‐style-­‐type:	
  circle;
          list-­‐style-­‐type:	
  none;


        list-­‐style-­‐type:	
  decimal;
list-­‐style-­‐type:	
  decimal-­‐leading-­‐zero;
     list-­‐style-­‐type:	
  lower-­‐alpha;
     list-­‐style-­‐type:	
  upper-­‐alpha;
     list-­‐style-­‐type:	
  upper-­‐roman;
     list-­‐style-­‐type:	
  lower-­‐roman;
?   list-­‐style-­‐image
CSS

      ul	
  {	
  
             list-­‐style-­‐type:	
  none;
      }
      ul	
  li	
  {
             padding:	
  0	
  0	
  0	
  20px;
             background:	
  url(bullet.gif)	
  no-­‐repeat	
  0	
  2px;
      }
CSS

      ul	
  {	
  
             list-­‐style-­‐type:	
  disc;
      }
CSS

      ul	
  {	
  
             list-­‐style-­‐type:	
  disc;
             margin:	
  0;
             padding:	
  0;
      }
CSS

      ul	
  {	
  
             list-­‐style-­‐type:	
  disc;
             margin:	
  0;
             padding:	
  0;
      }
      ul	
  li	
  {
             margin-­‐left:	
  20px;
      }

More Related Content

Similar to HTML&CSS 5 - Intermediate CSS (2/2)

CSSプリプロセッサの取扱説明書
CSSプリプロセッサの取扱説明書CSSプリプロセッサの取扱説明書
CSSプリプロセッサの取扱説明書拓樹 谷
 
Mobile-first OOCSS, Sass & Compass at BBC Responsive News
Mobile-first OOCSS, Sass & Compass at BBC Responsive NewsMobile-first OOCSS, Sass & Compass at BBC Responsive News
Mobile-first OOCSS, Sass & Compass at BBC Responsive NewsKaelig Deloumeau-Prigent
 
Using Sass - Building on CSS
Using Sass - Building on CSSUsing Sass - Building on CSS
Using Sass - Building on CSSSayanee Basu
 
Wrangling the CSS Beast with Sass
Wrangling the CSS Beast  with SassWrangling the CSS Beast  with Sass
Wrangling the CSS Beast with SassRob Friesel
 
Bloggdesign #2 - hawaa.blogg.no
Bloggdesign #2 - hawaa.blogg.noBloggdesign #2 - hawaa.blogg.no
Bloggdesign #2 - hawaa.blogg.noHannee92
 
WordPress theme translation
WordPress theme translationWordPress theme translation
WordPress theme translationYoav Farhi
 
Learn to Love CSS3 [English]
Learn to Love CSS3 [English]Learn to Love CSS3 [English]
Learn to Love CSS3 [English]ThemePartner
 
Learn to love CSS3 | Joomla! Day Deutschland
Learn to love CSS3 | Joomla! Day DeutschlandLearn to love CSS3 | Joomla! Day Deutschland
Learn to love CSS3 | Joomla! Day DeutschlandThemePartner
 
Oocss & progressive css3 selectors
Oocss & progressive css3 selectorsOocss & progressive css3 selectors
Oocss & progressive css3 selectorsdaniel_sternlicht
 
Sass Why for the CSS Guy
Sass Why for the CSS GuySass Why for the CSS Guy
Sass Why for the CSS GuyBeau Smith
 
Save time by using SASS/SCSS
Save time by using SASS/SCSSSave time by using SASS/SCSS
Save time by using SASS/SCSSBerit Hlubek
 
16- Learn CSS Fundamentals / Background
16- Learn CSS Fundamentals / Background16- Learn CSS Fundamentals / Background
16- Learn CSS Fundamentals / BackgroundIn a Rocket
 

Similar to HTML&CSS 5 - Intermediate CSS (2/2) (20)

CSSプリプロセッサの取扱説明書
CSSプリプロセッサの取扱説明書CSSプリプロセッサの取扱説明書
CSSプリプロセッサの取扱説明書
 
Mobile-first OOCSS, Sass & Compass at BBC Responsive News
Mobile-first OOCSS, Sass & Compass at BBC Responsive NewsMobile-first OOCSS, Sass & Compass at BBC Responsive News
Mobile-first OOCSS, Sass & Compass at BBC Responsive News
 
Sass, Compass
Sass, CompassSass, Compass
Sass, Compass
 
Theme 23
Theme 23Theme 23
Theme 23
 
Using Sass - Building on CSS
Using Sass - Building on CSSUsing Sass - Building on CSS
Using Sass - Building on CSS
 
Wrangling the CSS Beast with Sass
Wrangling the CSS Beast  with SassWrangling the CSS Beast  with Sass
Wrangling the CSS Beast with Sass
 
FCIP SASS Talk
FCIP SASS TalkFCIP SASS Talk
FCIP SASS Talk
 
Bloggdesign #2 - hawaa.blogg.no
Bloggdesign #2 - hawaa.blogg.noBloggdesign #2 - hawaa.blogg.no
Bloggdesign #2 - hawaa.blogg.no
 
WordPress theme translation
WordPress theme translationWordPress theme translation
WordPress theme translation
 
Css tips & tricks
Css tips & tricksCss tips & tricks
Css tips & tricks
 
Learn to Love CSS3 [English]
Learn to Love CSS3 [English]Learn to Love CSS3 [English]
Learn to Love CSS3 [English]
 
Theme03
Theme03Theme03
Theme03
 
Learn to love CSS3 | Joomla! Day Deutschland
Learn to love CSS3 | Joomla! Day DeutschlandLearn to love CSS3 | Joomla! Day Deutschland
Learn to love CSS3 | Joomla! Day Deutschland
 
Oocss & progressive css3 selectors
Oocss & progressive css3 selectorsOocss & progressive css3 selectors
Oocss & progressive css3 selectors
 
Sass Why for the CSS Guy
Sass Why for the CSS GuySass Why for the CSS Guy
Sass Why for the CSS Guy
 
Theme02
Theme02Theme02
Theme02
 
Save time by using SASS/SCSS
Save time by using SASS/SCSSSave time by using SASS/SCSS
Save time by using SASS/SCSS
 
16- Learn CSS Fundamentals / Background
16- Learn CSS Fundamentals / Background16- Learn CSS Fundamentals / Background
16- Learn CSS Fundamentals / Background
 
CSS Extenders
CSS ExtendersCSS Extenders
CSS Extenders
 
Theme04
Theme04Theme04
Theme04
 

More from Dinis Correia

WordPress & Custm Post Types
WordPress & Custm Post TypesWordPress & Custm Post Types
WordPress & Custm Post TypesDinis Correia
 
HTML&CSS 6 - Advanced CSS
HTML&CSS 6 - Advanced CSSHTML&CSS 6 - Advanced CSS
HTML&CSS 6 - Advanced CSSDinis Correia
 
HTML&CSS 4 - Intermediate CSS (1/2)
HTML&CSS 4 - Intermediate CSS (1/2)HTML&CSS 4 - Intermediate CSS (1/2)
HTML&CSS 4 - Intermediate CSS (1/2)Dinis Correia
 
HTML&CSS 3 - Introduction to CSS
HTML&CSS 3 - Introduction to CSSHTML&CSS 3 - Introduction to CSS
HTML&CSS 3 - Introduction to CSSDinis Correia
 
HTML&CSS 1 - Introduction to HTML
HTML&CSS 1 - Introduction to HTMLHTML&CSS 1 - Introduction to HTML
HTML&CSS 1 - Introduction to HTMLDinis Correia
 
HTML&CSS 2 - Intermediate HTML
HTML&CSS 2 - Intermediate HTMLHTML&CSS 2 - Intermediate HTML
HTML&CSS 2 - Intermediate HTMLDinis Correia
 

More from Dinis Correia (6)

WordPress & Custm Post Types
WordPress & Custm Post TypesWordPress & Custm Post Types
WordPress & Custm Post Types
 
HTML&CSS 6 - Advanced CSS
HTML&CSS 6 - Advanced CSSHTML&CSS 6 - Advanced CSS
HTML&CSS 6 - Advanced CSS
 
HTML&CSS 4 - Intermediate CSS (1/2)
HTML&CSS 4 - Intermediate CSS (1/2)HTML&CSS 4 - Intermediate CSS (1/2)
HTML&CSS 4 - Intermediate CSS (1/2)
 
HTML&CSS 3 - Introduction to CSS
HTML&CSS 3 - Introduction to CSSHTML&CSS 3 - Introduction to CSS
HTML&CSS 3 - Introduction to CSS
 
HTML&CSS 1 - Introduction to HTML
HTML&CSS 1 - Introduction to HTMLHTML&CSS 1 - Introduction to HTML
HTML&CSS 1 - Introduction to HTML
 
HTML&CSS 2 - Intermediate HTML
HTML&CSS 2 - Intermediate HTMLHTML&CSS 2 - Intermediate HTML
HTML&CSS 2 - Intermediate HTML
 

Recently uploaded

Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)Julian Hyde
 
What's New in Teams Calling, Meetings and Devices April 2024
What's New in Teams Calling, Meetings and Devices April 2024What's New in Teams Calling, Meetings and Devices April 2024
What's New in Teams Calling, Meetings and Devices April 2024Stephanie Beckett
 
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Product School
 
PLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. StartupsPLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. StartupsStefano
 
UiPath Test Automation using UiPath Test Suite series, part 1
UiPath Test Automation using UiPath Test Suite series, part 1UiPath Test Automation using UiPath Test Suite series, part 1
UiPath Test Automation using UiPath Test Suite series, part 1DianaGray10
 
Introduction to Open Source RAG and RAG Evaluation
Introduction to Open Source RAG and RAG EvaluationIntroduction to Open Source RAG and RAG Evaluation
Introduction to Open Source RAG and RAG EvaluationZilliz
 
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptxUnpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptxDavid Michel
 
Free and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
Free and Effective: Making Flows Publicly Accessible, Yumi IbrahimzadeFree and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
Free and Effective: Making Flows Publicly Accessible, Yumi IbrahimzadeCzechDreamin
 
UiPath Test Automation using UiPath Test Suite series, part 2
UiPath Test Automation using UiPath Test Suite series, part 2UiPath Test Automation using UiPath Test Suite series, part 2
UiPath Test Automation using UiPath Test Suite series, part 2DianaGray10
 
Demystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John StaveleyDemystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John StaveleyJohn Staveley
 
IESVE for Early Stage Design and Planning
IESVE for Early Stage Design and PlanningIESVE for Early Stage Design and Planning
IESVE for Early Stage Design and PlanningIES VE
 
Salesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
Salesforce Adoption – Metrics, Methods, and Motivation, Antone KomSalesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
Salesforce Adoption – Metrics, Methods, and Motivation, Antone KomCzechDreamin
 
The architecture of Generative AI for enterprises.pdf
The architecture of Generative AI for enterprises.pdfThe architecture of Generative AI for enterprises.pdf
The architecture of Generative AI for enterprises.pdfalexjohnson7307
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Thierry Lestable
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaRTTS
 
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...CzechDreamin
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...Product School
 
Agentic RAG What it is its types applications and implementation.pdf
Agentic RAG What it is its types applications and implementation.pdfAgentic RAG What it is its types applications and implementation.pdf
Agentic RAG What it is its types applications and implementation.pdfChristopherTHyatt
 
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxIOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxAbida Shariff
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsPaul Groth
 

Recently uploaded (20)

Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
 
What's New in Teams Calling, Meetings and Devices April 2024
What's New in Teams Calling, Meetings and Devices April 2024What's New in Teams Calling, Meetings and Devices April 2024
What's New in Teams Calling, Meetings and Devices April 2024
 
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
 
PLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. StartupsPLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. Startups
 
UiPath Test Automation using UiPath Test Suite series, part 1
UiPath Test Automation using UiPath Test Suite series, part 1UiPath Test Automation using UiPath Test Suite series, part 1
UiPath Test Automation using UiPath Test Suite series, part 1
 
Introduction to Open Source RAG and RAG Evaluation
Introduction to Open Source RAG and RAG EvaluationIntroduction to Open Source RAG and RAG Evaluation
Introduction to Open Source RAG and RAG Evaluation
 
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptxUnpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
 
Free and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
Free and Effective: Making Flows Publicly Accessible, Yumi IbrahimzadeFree and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
Free and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
 
UiPath Test Automation using UiPath Test Suite series, part 2
UiPath Test Automation using UiPath Test Suite series, part 2UiPath Test Automation using UiPath Test Suite series, part 2
UiPath Test Automation using UiPath Test Suite series, part 2
 
Demystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John StaveleyDemystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John Staveley
 
IESVE for Early Stage Design and Planning
IESVE for Early Stage Design and PlanningIESVE for Early Stage Design and Planning
IESVE for Early Stage Design and Planning
 
Salesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
Salesforce Adoption – Metrics, Methods, and Motivation, Antone KomSalesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
Salesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
 
The architecture of Generative AI for enterprises.pdf
The architecture of Generative AI for enterprises.pdfThe architecture of Generative AI for enterprises.pdf
The architecture of Generative AI for enterprises.pdf
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
 
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
 
Agentic RAG What it is its types applications and implementation.pdf
Agentic RAG What it is its types applications and implementation.pdfAgentic RAG What it is its types applications and implementation.pdf
Agentic RAG What it is its types applications and implementation.pdf
 
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxIOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
 

HTML&CSS 5 - Intermediate CSS (2/2)

  • 1. HTML 5 & CSS DINIS CORREIA 2011 cbn
  • 2. CSS 1 PROPRIEDADES DE LAYOUT 2 BACKGROUNDS 3LISTAS
  • 3. 2 3 LISTAS CSS 4 TABELAS ⇪
  • 4. 4 TABELAS CSS ⇪ na sessão anterior...
  • 6. link, visited, hover, focus, active
  • 8. PROPRIEDADES DE LAYOUT margin padding border width height
  • 10. CSS p  {   margin-­‐top:  10px; margin-­‐right:  10px; margin-­‐bottom:  10px; margin-­‐left:  10px;   }
  • 11. CSS p  {   margin:  10px;   }
  • 12. top left <p> right bottom
  • 13. 1 top 4 left <p> right 2 bottom 3
  • 14. CSS p  {  margin-­‐bottom:  10px;  }
  • 15. CSS p  {  margin-­‐bottom:  20px;  }
  • 16. CSS p  {  margin-­‐bottom:  20px;  } 20px
  • 17. Todos os elementos inline - com ! excepção do img - ignoram a propiedade margin.
  • 18. CSS p  {  margin-­‐top:  -­‐14px;  }
  • 19. CSS p  {  margin-­‐top:  -­‐14px;  }
  • 20. CSS p  {  margin:  10px  0  20px  0;  }
  • 21. CSS p  {  margin:  10px  0  20px  0;  } 20px
  • 22. CSS p  {  margin:  10px  0  20px  0;  }
  • 24. CSS p  {   border-­‐width:  1px; border-­‐style:  solid; border-­‐color:  #ff0000; }
  • 25. CSS p  {   border-­‐top-­‐width:  1px; border-­‐top-­‐style:  solid; border-­‐top-­‐color:  #ff0000; border-­‐right-­‐width:  1px; border-­‐right-­‐style:  dotted; border-­‐right-­‐color:  #000; ... }
  • 26. CSS p  {   border:  1px  solid  #000; }
  • 27. CSS p  {   border-­‐width:  1px; border-­‐style:  solid; border-­‐color:  #ff0000; }
  • 28. CSS p  {   border-­‐width:  5px; border-­‐style:  solid; border-­‐color:  #ff0000; }
  • 29. CSS p  {   border-­‐width:  1px; border-­‐style:  solid; border-­‐color:  #ff0000; }
  • 30. CSS p  {   border-­‐width:  1px; border-­‐style:  solid; border-­‐color:  #ff0000; }
  • 31. CSS p  {   border-­‐width:  1px; border-­‐style:  dashed; border-­‐color:  #ff0000; }
  • 32. border-­‐style:  dashed; border-­‐style:  dotted; border-­‐style:  double; border-­‐style:  inset; border-­‐style:  groove; border-­‐style:  outset; border-­‐style:  ridge; border-­‐style:  solid;
  • 34. CSS p  {   padding-­‐top:  10px; padding-­‐right:  10px;   padding-­‐bottom:  10px; padding-­‐left:  10px; }
  • 35. CSS p  {   padding:  10px; }
  • 36. CSS p  {  padding:  10px;  } z
  • 37. CSS p  {  padding:  10px;  } z 10px
  • 39. ! Os elementos inline ignoram width  e  height...
  • 40. ! Os elementos inline ignoram width  e  height... exepto as imagens.
  • 41. CSS p  {  width:  160px;  }
  • 42. CSS p  {  width:  160px;  }
  • 43. ! Definir alturas só quando estritamente necessário.
  • 44. CSS p  {   width:  160px; height:  auto;   }
  • 45. CSS p  {   width:  160px; height:  20px;   }
  • 46. CSS div  {   min-­‐width:  200px; min-­‐height:  500px; }
  • 47. CSS div  {   min-­‐width:  200px; min-­‐height:  500px; max-­‐width:  980px; max-­‐height:  800px; }
  • 49. CSS p  {  overflow:  visible;  } p  {  overflow:  hidden;  } p  {  overflow:  auto;  } p  {  overflow:  scroll;  }
  • 50. CSS p  {  overflow:  visible;  }
  • 51. CSS p  {  overflow:  hidden;  }
  • 52. CSS p  {  overflow:  auto;  }
  • 53. CSS p  {  overflow:  auto;  }
  • 55. ABSOLUTAS px width:  800px; RELATIVAS em width:  20em; % width:  40%;
  • 56. CSS p  {  width:  120px;  }
  • 57. CSS p  {   font-­‐size:  20px; width:  3em; }
  • 58. CSS p  {   font-­‐size:  20px; width:  3em; } 20px  x  3  =  60px
  • 61. MARGIN BORDER PADDING Conteúdo de um elemento
  • 62. MARGIN BORDER PADDING WIDTH Conteúdo de HEIGHT um elemento BOX
  • 63. CSS p  {   width:  120px; border:  2px  dotted  #000; padding:  3px; margin:  10px; } ?
  • 64. CSS p  {   width:  120px; border:  2px  dotted  #000; padding:  3px; margin:  10px; } 150px
  • 67. CSS p  {  display:  block;  } p  {  display:  inline;  } p  {  display:  none;  }
  • 68. CSS p  {   display:  inline; }
  • 70. CSS body  {   background-­‐color:  #ccc; background-­‐image:  url(image.gif); background-­‐attachment:  scroll; background-­‐repeat:  no-­‐repeat; background-­‐position:  0  0; }
  • 71. CSS body  {   background-­‐color:  #ccc; }
  • 72. CSS body  {   background-­‐color:  #ccc; background-­‐image:  url(paper_green.jpg); }
  • 73. CSS body  {   background-­‐color:  #ccc; background-­‐image:  url(paper_green.jpg); background-­‐repeat:  no-­‐repeat; }
  • 74. CSS body  {   background-­‐color:  #ccc; background-­‐image:  url(paper_green.jpg); background-­‐repeat:  repeat-­‐y; }
  • 75. CSS body  {   background-­‐color:  #ccc; background-­‐image:  url(paper_green.jpg); background-­‐repeat:  repeat-­‐x; }
  • 76. CSS body  {   background-­‐color:  #ccc; background-­‐image:  url(paper_green.jpg); background-­‐repeat:  repeat-­‐x; background-­‐attachament:  scroll; }
  • 77. CSS body  {   background-­‐color:  #ccc; background-­‐image:  url(paper_green.jpg); background-­‐repeat:  repeat-­‐x; background-­‐attachament:  scroll; }
  • 78. CSS body  {   background-­‐color:  #ccc; background-­‐image:  url(paper_green.jpg); background-­‐repeat:  repeat-­‐x; background-­‐attachament:  fixed; }
  • 79. CSS body  {   background-­‐color:  #ccc; background-­‐image:  url(paper_green.jpg); background-­‐repeat:  no-­‐repeat; background-­‐attachament:  fixed; background-­‐position:  0  0; }
  • 80. CSS body  {   background-­‐color:  #ccc; background-­‐image:  url(paper_green.jpg); background-­‐repeat:  no-­‐repeat; background-­‐attachament:  fixed; background-­‐position:  0  40px; }
  • 81. CSS body  {   background-­‐color:  #ccc; background-­‐image:  url(paper_green.jpg); background-­‐repeat:  no-­‐repeat; background-­‐attachament:  fixed; background-­‐position:  40px  0; }
  • 82. CSS body  {   background-­‐color:  #ccc; background-­‐image:  url(paper_green.jpg); background-­‐repeat:  no-­‐repeat; background-­‐attachament:  fixed; background-­‐position:  left  top; }
  • 83. CSS body  {   background-­‐color:  #ccc; background-­‐image:  url(paper_green.jpg); background-­‐repeat:  no-­‐repeat; background-­‐attachament:  fixed; background-­‐position:  right  top; }
  • 84. CSS body  {   background-­‐color:  #ccc; background-­‐image:  url(paper_green.jpg); background-­‐repeat:  no-­‐repeat; background-­‐attachament:  fixed; background-­‐position:  center  top; }
  • 85. CSS body  {   background-­‐color:  #ccc; background-­‐image:  url(paper_green.jpg); background-­‐repeat:  no-­‐repeat; background-­‐attachament:  fixed; background-­‐position:  20%  0; }
  • 86. CSS body  {   background-­‐color:  #ccc; background-­‐image:  url(paper_green.jpg); background-­‐repeat:  no-­‐repeat; background-­‐attachament:  fixed; background-­‐position:  50%  0; }
  • 87. CSS body  {  background:  #ccc  url(fundo.gif)  no-­‐repeat  scroll  left  top  } -color -attachment -image -repeat -position
  • 90. list-­‐style-­‐type:  disc; list-­‐style-­‐type:  square; list-­‐style-­‐type:  circle; list-­‐style-­‐type:  none; list-­‐style-­‐type:  decimal; list-­‐style-­‐type:  decimal-­‐leading-­‐zero; list-­‐style-­‐type:  lower-­‐alpha; list-­‐style-­‐type:  upper-­‐alpha; list-­‐style-­‐type:  upper-­‐roman; list-­‐style-­‐type:  lower-­‐roman;
  • 91. ? list-­‐style-­‐image
  • 92. CSS ul  {   list-­‐style-­‐type:  none; } ul  li  { padding:  0  0  0  20px; background:  url(bullet.gif)  no-­‐repeat  0  2px; }
  • 93. CSS ul  {   list-­‐style-­‐type:  disc; }
  • 94. CSS ul  {   list-­‐style-­‐type:  disc; margin:  0; padding:  0; }
  • 95. CSS ul  {   list-­‐style-­‐type:  disc; margin:  0; padding:  0; } ul  li  { margin-­‐left:  20px; }