SlideShare une entreprise Scribd logo
1  sur  95
Télécharger pour lire hors ligne
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;
      }

Contenu connexe

Similaire à 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
 

Similaire à 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
 

Plus de 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
 

Plus de 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
 

Dernier

The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
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
 
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
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
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
 
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
 
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
 
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
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 

Dernier (20)

The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
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
 
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
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
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
 
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 ...
 
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
 
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
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 

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; }