SlideShare a Scribd company logo
Some of the best practices but NOT the final answer.
How we want to start developing our sites.
 Minimal   tables
  • Use as little tables as possible. To obtain a
   standard four-block layout…
   …the following code is all you need:
                 <table>
                            <tr>
                                    <td colspan="2">
                                                   <div class="header">
                                                   Header
                                                   </div>
                                    </td>
                            </tr>
                            <tr>
                                    <td>
                                                    <div class="navigation">
                                                    Navigation
                                                    </div>
                                    </td>
                                    <td>
                                                    <div class="content">
                                                    Content
                                                    </div>
                                    </td>
                            </tr>
                            <tr>
                                    <td colspan="2" style="vertical-align: bottom">
                                                    <div class="footer">
                                                    Footer
                                                    </div>
                                    </td>
                            </tr>
                 </table>
 CONTENT
 • It’s important to put all content (text, images ect) in
   your html doc.
 • As well as scripts, tables and divs.


 PRESENTATION
 • CSS can cover the rest…
A language used to describe the design of an HTML doc
Web Construction/CSS/Spry
 Classitis   and Divitis
  • An error of beginning CSS coders is to use far too
   many <div> tags and class attributes, like:


              <div class="header">
              <div class="headerText">
              <p class="headerP">This site uses CSS!</p>
              </div>
              </div>
 Start   with simple XHTML:
           <div class="header">
           <p>This site uses CSS!</p>
           </div>




 Then    use these two CSS selectors:
           div.header {
           /* styles */
           }

           div.header p {
           /* styles */
           }
 Tryextending the selector or specifying
 certain tags.
        body, td, li, p {
        font: 0.8em verdana,sans-serif;
        }




        #mydiv p {
        font-size: 34px;
        }
 http://www.blooberry.com/indexdot/css/pro
 pindex/all.htm
A simple way to add interactivity to your site

More Related Content

PPTX
Web topic 15 1 basic css layout
PDF
SMACSS Workshop
PDF
Intro to CSS in MadCap Flare - MadWorld 2016, Scott DeLoach, ClickStart
KEY
Lecture2
PPTX
CSS introduction
PPSX
Introduction to css
PPT
CSS Introduction
PPT
Cascading Style Sheet
Web topic 15 1 basic css layout
SMACSS Workshop
Intro to CSS in MadCap Flare - MadWorld 2016, Scott DeLoach, ClickStart
Lecture2
CSS introduction
Introduction to css
CSS Introduction
Cascading Style Sheet

What's hot (20)

PPT
Ict 8 css
PPT
CSS Training in Bangalore
PPTX
Week 12 CSS - Review from last week
PPT
iPaper@Scribd.Com Tutorial
PDF
Day6
PDF
PPT
Cascading Style Sheets (CSS) help
PPTX
Introduction to HTML and CSS
PPTX
1 03 - CSS Introduction
PPTX
PPTX
Introduction to CSS
PPTX
FFW Gabrovo PMG - CSS
PPTX
PPTX
What is css
PPT
7.2 external style sheets
PDF
The Dark Arts of CSS
Ict 8 css
CSS Training in Bangalore
Week 12 CSS - Review from last week
iPaper@Scribd.Com Tutorial
Day6
Cascading Style Sheets (CSS) help
Introduction to HTML and CSS
1 03 - CSS Introduction
Introduction to CSS
FFW Gabrovo PMG - CSS
What is css
7.2 external style sheets
The Dark Arts of CSS
Ad

Viewers also liked (20)

PPT
Xabier,itzea,peio and asier n
PPT
01廖麗萍
PDF
Thorton+vs+caldor
PDF
Catalogue ecobuild 2012
PDF
吳威龍
PPTX
李姿儀2[1]
PDF
268921250 probele-in-procesul-penal-practică-judiciară-i-ciolcă-2007
PDF
Realisasi anggaran
PPTX
Space/Narrative PPT
PDF
El pèsol Negre. Número 4. Maig 2001 (2a època)
PPT
二幼三A 田欣怡[1]
PPT
楊璧慈2[1]
PPTX
San valentin (1)
PDF
Johnson Creek Clean-Up 2012
PPTX
Positive mind set
PPT
12伍佳柔
PDF
Anggaran kas 1
DOC
Activity based costing
PPT
Ch01 managing in turb c3161
PPTX
Xabier,itzea,peio and asier n
01廖麗萍
Thorton+vs+caldor
Catalogue ecobuild 2012
吳威龍
李姿儀2[1]
268921250 probele-in-procesul-penal-practică-judiciară-i-ciolcă-2007
Realisasi anggaran
Space/Narrative PPT
El pèsol Negre. Número 4. Maig 2001 (2a època)
二幼三A 田欣怡[1]
楊璧慈2[1]
San valentin (1)
Johnson Creek Clean-Up 2012
Positive mind set
12伍佳柔
Anggaran kas 1
Activity based costing
Ch01 managing in turb c3161
Ad

Similar to Web Construction/CSS/Spry (20)

PDF
Introduction to Bootstrap
PPTX
web development basics tables part2
PPTX
Css for Development
PDF
Presentation 2
PPTX
Howcssworks 100207024009-phpapp01
PDF
Object-Oriented CSS 從 OOCSS, SMACSS, BEM 到 AMCSS
PPT
Introduction to CSS
KEY
前端开发理论热点面对面:从怎么看,到怎么做?
DOCX
Caracteristicas Basicas De Htlm
PPT
Intro to CSS Selectors in Drupal
PDF
Introdução a CSS
PPTX
HTML [Basic] --by Abdulla-al Baset
PPTX
Lecture-11.pptx
PPTX
Hypertext markup language(html)
PPTX
Html forfood
PDF
Unit 2.12
PDF
Completing Your Design with WordPress
PPTX
Material design
PPTX
HTML/CSS the beginning
PPTX
jQuery Mobile - Desenvolvimento para dispositivos móveis
Introduction to Bootstrap
web development basics tables part2
Css for Development
Presentation 2
Howcssworks 100207024009-phpapp01
Object-Oriented CSS 從 OOCSS, SMACSS, BEM 到 AMCSS
Introduction to CSS
前端开发理论热点面对面:从怎么看,到怎么做?
Caracteristicas Basicas De Htlm
Intro to CSS Selectors in Drupal
Introdução a CSS
HTML [Basic] --by Abdulla-al Baset
Lecture-11.pptx
Hypertext markup language(html)
Html forfood
Unit 2.12
Completing Your Design with WordPress
Material design
HTML/CSS the beginning
jQuery Mobile - Desenvolvimento para dispositivos móveis

Recently uploaded (20)

PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PPTX
GDM (1) (1).pptx small presentation for students
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
RMMM.pdf make it easy to upload and study
PDF
VCE English Exam - Section C Student Revision Booklet
PPTX
Cell Types and Its function , kingdom of life
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
TR - Agricultural Crops Production NC III.pdf
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PDF
Classroom Observation Tools for Teachers
PPTX
Institutional Correction lecture only . . .
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PPTX
PPH.pptx obstetrics and gynecology in nursing
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PPTX
Microbial diseases, their pathogenesis and prophylaxis
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
human mycosis Human fungal infections are called human mycosis..pptx
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
GDM (1) (1).pptx small presentation for students
Renaissance Architecture: A Journey from Faith to Humanism
Supply Chain Operations Speaking Notes -ICLT Program
RMMM.pdf make it easy to upload and study
VCE English Exam - Section C Student Revision Booklet
Cell Types and Its function , kingdom of life
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
TR - Agricultural Crops Production NC III.pdf
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
Classroom Observation Tools for Teachers
Institutional Correction lecture only . . .
O5-L3 Freight Transport Ops (International) V1.pdf
PPH.pptx obstetrics and gynecology in nursing
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Microbial diseases, their pathogenesis and prophylaxis

Web Construction/CSS/Spry

  • 1. Some of the best practices but NOT the final answer.
  • 2. How we want to start developing our sites.
  • 3.  Minimal tables • Use as little tables as possible. To obtain a standard four-block layout…
  • 4. …the following code is all you need: <table> <tr> <td colspan="2"> <div class="header"> Header </div> </td> </tr> <tr> <td> <div class="navigation"> Navigation </div> </td> <td> <div class="content"> Content </div> </td> </tr> <tr> <td colspan="2" style="vertical-align: bottom"> <div class="footer"> Footer </div> </td> </tr> </table>
  • 5.  CONTENT • It’s important to put all content (text, images ect) in your html doc. • As well as scripts, tables and divs.  PRESENTATION • CSS can cover the rest…
  • 6. A language used to describe the design of an HTML doc
  • 8.  Classitis and Divitis • An error of beginning CSS coders is to use far too many <div> tags and class attributes, like: <div class="header"> <div class="headerText"> <p class="headerP">This site uses CSS!</p> </div> </div>
  • 9.  Start with simple XHTML: <div class="header"> <p>This site uses CSS!</p> </div>  Then use these two CSS selectors: div.header { /* styles */ } div.header p { /* styles */ }
  • 10.  Tryextending the selector or specifying certain tags. body, td, li, p { font: 0.8em verdana,sans-serif; } #mydiv p { font-size: 34px; }
  • 12. A simple way to add interactivity to your site