SlideShare une entreprise Scribd logo
1  sur  15
Télécharger pour lire hors ligne
CSS
Box Model
by Niciuzza, nicha.in.th
Margin
Border
Padding
CSS Box Model
CSS for Web Designer by Niciuzza, nicha.in.th
Content
Margin - The empty area around the
border. The margin is completely
transparent, no background color.
Border - A border that goes around the
padding and content. The border is
affected by the background color of
the box
Padding - Clears an area around the
content. The padding is affected by the
background color of the box
Content - The content of the box,
where text and images appear
CSS Border
CSS for Web Designer by Niciuzza, nicha.in.th
● border-width
● border-style (required)
● border-color
border:5px solid red;
Short hand
border-width: 5px;
border-style: solid;
border-color: red;
General
Ref: http://www.w3schools.com/css/css_border.asp
CSS Margin
CSS for Web Designer by Niciuzza, nicha.in.th
● margin-top
● margin-bottom
● margin-right
● margin-left
margin-top:100px;
margin-bottom:20px;
margin-right:50px;
margin-left:30px;
General
Ref: http://www.w3schools.com/css/css_margin.asp
CSS Margin
CSS for Web Designer by Niciuzza, nicha.in.th
margin: 25px 50px 75px 100px;
top margin is 25px
right margin is 50px
bottom margin is 75px
left margin is 100px
Ref: http://www.w3schools.com/css/css_margin.asp
margin: 25px 50px;
top and bottom margins are 25px
right and left margins are 50px
margin: 25px 50px 75px;
top margin is 25px
right and left margins are 50px
bottom margin is 75px
margin: 25px;
all four margins are 25px
Short hand
CSS Padding
CSS for Web Designer by Niciuzza, nicha.in.th
● padding-top
● padding-bottom
● padding-right
● padding-left
padding-top:100px;
padding-bottom:20px;
padding-right:50px;
padding-left:30px;
General
Ref: http://www.w3schools.com/css/css_padding.asp
CSS Padding
CSS for Web Designer by Niciuzza, nicha.in.th
padding: 25px 50px 75px 100px;
top padding is 25px
right padding is 50px
bottom padding is 75px
left padding is 100px
Ref: http://www.w3schools.com/css/css_padding.asp
padding: 25px 50px;
top and bottom padding are 25px
right and left padding are 50px
padding: 25px 50px 75px;
top padding is 25px
right and left padding are 50px
bottom padding is 75px
padding: 25px;
all four padding are 25px
Short hand
CSS Dimension
CSS for Web Designer by Niciuzza, nicha.in.th
● width
● min-width
● max-width
width: 50%;
min-width: 250px;
max-width: 800px;
Example
Ref: http://www.w3schools.com/css/css_dimension.asp
● height
● min-height
● max-height
CSS Outline
CSS for Web Designer by Niciuzza, nicha.in.th
An outline is a line that is drawn around elements (outside the borders)
to make the element "stand out".
● outline-color
● outline-style
● outline-width
outline:red dotted 1px;
Short hand
outline-color: red;
outline-style: dotted;
outline-width: 1px;
General
Ref: http://www.w3schools.com/css/css_outline.asp
Margin
Border
Padding
Calculate Width & Height
CSS for Web Designer by Niciuzza, nicha.in.th
Content
width:250px;
padding:10px;
border:5px solid
gray;
margin:10px;
Calculate the Width:
250px (width)
+ 20px (left + right padding)
+ 10px (left + right border)
+ 20px (left + right margin)
= 300px;
style.css
Excercise 1
CSS for Web Designer by Niciuzza, nicha.in.th
width:300px;
height: 100px;
border: 10px 2px 3px;
Calculate the Width:
300px (width)+ 4px (left+right border)
= 304px;
style.css
Calculate the Height:
100px (height)+ 10px (top border)
+ 3px (bottom border)
= 313px;
Excercise 2
CSS for Web Designer by Niciuzza, nicha.in.th
width:900px;
height: 35px;
border: 0px 1px 1px 10px;
padding: 20px;
Calculate the Width:
900px (width)+ 11px (left+right border)
+ 40px (left+right padding)
= 951px;
style.css
Calculate the Height:
35px (height)+ 1px (top+bottom border)
+ 40px (top+bottom padding)
= 76px;
Excercise 3
CSS for Web Designer by Niciuzza, nicha.in.th
width:960px;
height: 180px;
margin-right: 20px;
padding: 5px;
padding-left: 20px;
Calculate the Width:
960px (width)+ 20px (right margin)
+ 25px (left+right padding)
= 1005px;
style.css
Calculate the Height:
180px (height)+ 10px (top+bottom padding)
= 190px;
Excercise 4
CSS for Web Designer by Niciuzza, nicha.in.th
width:440px;
height: 270px;
margin: 10px;
padding: 12px;
border: 3px 4px 0px 1px;
Calculate the Width:
440px (width)+ 20px (left+right margin)
+ 24px (left+right padding)+5px (left+right border)
= 489px;
style.css
Calculate the Height:
270px (height)+ 20px (top+bottom margin)
+ 24px (top+bottom padding)+3px (top+bottom
border)
= 317px;
References
CSS for Web Designer by Niciuzza, nicha.in.th
● http://www.w3schools.com/css/

Contenu connexe

Tendances

Tendances (20)

Html5 and-css3-overview
Html5 and-css3-overviewHtml5 and-css3-overview
Html5 and-css3-overview
 
SASS - CSS with Superpower
SASS - CSS with SuperpowerSASS - CSS with Superpower
SASS - CSS with Superpower
 
Flex box
Flex boxFlex box
Flex box
 
Introduction to CSS
Introduction to CSSIntroduction to CSS
Introduction to CSS
 
Beginners css tutorial for web designers
Beginners css tutorial for web designersBeginners css tutorial for web designers
Beginners css tutorial for web designers
 
CSS Grid
CSS GridCSS Grid
CSS Grid
 
Css box-model
Css box-modelCss box-model
Css box-model
 
Introduction to CSS3
Introduction to CSS3Introduction to CSS3
Introduction to CSS3
 
Introducing CSS Grid
Introducing CSS GridIntroducing CSS Grid
Introducing CSS Grid
 
Css Ppt
Css PptCss Ppt
Css Ppt
 
Introduction to Cascading Style Sheets (CSS)
Introduction to Cascading Style Sheets (CSS)Introduction to Cascading Style Sheets (CSS)
Introduction to Cascading Style Sheets (CSS)
 
CSS Flexbox and Grid: The future of website layouts - DN Scrum Breakfast - Au...
CSS Flexbox and Grid: The future of website layouts - DN Scrum Breakfast - Au...CSS Flexbox and Grid: The future of website layouts - DN Scrum Breakfast - Au...
CSS Flexbox and Grid: The future of website layouts - DN Scrum Breakfast - Au...
 
HTML5
HTML5HTML5
HTML5
 
Box Model
Box ModelBox Model
Box Model
 
Intro to Flexbox - A Magical CSS Property
Intro to Flexbox - A Magical CSS PropertyIntro to Flexbox - A Magical CSS Property
Intro to Flexbox - A Magical CSS Property
 
Css pseudo-classes
Css pseudo-classesCss pseudo-classes
Css pseudo-classes
 
CSS Flexbox (flexible box layout)
CSS Flexbox (flexible box layout)CSS Flexbox (flexible box layout)
CSS Flexbox (flexible box layout)
 
Front-End Frameworks: a quick overview
Front-End Frameworks: a quick overviewFront-End Frameworks: a quick overview
Front-End Frameworks: a quick overview
 
Css ppt
Css pptCss ppt
Css ppt
 
Css Specificity
Css SpecificityCss Specificity
Css Specificity
 

En vedette

CSS, CSS Selectors, CSS Box Model
CSS, CSS Selectors, CSS Box ModelCSS, CSS Selectors, CSS Box Model
CSS, CSS Selectors, CSS Box Model
jamiecavanaugh
 
CSS Box Model and Dimensions
CSS Box Model and DimensionsCSS Box Model and Dimensions
CSS Box Model and Dimensions
Gerson Abesamis
 
Css margin and padding property
Css margin and padding propertyCss margin and padding property
Css margin and padding property
Jesus Obenita Jr.
 
The Box Model
The Box ModelThe Box Model
The Box Model
sdireland
 
Introduction about wireframing and responsive webdesign
Introduction about wireframing and responsive webdesignIntroduction about wireframing and responsive webdesign
Introduction about wireframing and responsive webdesign
ipmindthegap
 

En vedette (20)

CSS Box Model
CSS Box ModelCSS Box Model
CSS Box Model
 
CSS, CSS Selectors, CSS Box Model
CSS, CSS Selectors, CSS Box ModelCSS, CSS Selectors, CSS Box Model
CSS, CSS Selectors, CSS Box Model
 
CSS Box Model Presentation
CSS Box Model PresentationCSS Box Model Presentation
CSS Box Model Presentation
 
CSS Layouting #3 : Box Model
CSS Layouting #3 : Box ModelCSS Layouting #3 : Box Model
CSS Layouting #3 : Box Model
 
The Box Model [CSS Introduction]
The Box Model [CSS Introduction]The Box Model [CSS Introduction]
The Box Model [CSS Introduction]
 
CSS Box Model and Dimensions
CSS Box Model and DimensionsCSS Box Model and Dimensions
CSS Box Model and Dimensions
 
CSS Layout Techniques
CSS Layout TechniquesCSS Layout Techniques
CSS Layout Techniques
 
The CSS Box Model
The CSS Box ModelThe CSS Box Model
The CSS Box Model
 
CSS Layouting #5 : Position
CSS Layouting #5 : PositionCSS Layouting #5 : Position
CSS Layouting #5 : Position
 
Css margin and padding property
Css margin and padding propertyCss margin and padding property
Css margin and padding property
 
Css In Iterations
Css In IterationsCss In Iterations
Css In Iterations
 
Lab#7 CSS Box Model
Lab#7 CSS Box ModelLab#7 CSS Box Model
Lab#7 CSS Box Model
 
Pemrograman Berbasis Web - CSS
Pemrograman Berbasis Web - CSSPemrograman Berbasis Web - CSS
Pemrograman Berbasis Web - CSS
 
Css 2010
Css 2010Css 2010
Css 2010
 
The Box Model
The Box ModelThe Box Model
The Box Model
 
Floating
FloatingFloating
Floating
 
Postman
PostmanPostman
Postman
 
Introduction about wireframing and responsive webdesign
Introduction about wireframing and responsive webdesignIntroduction about wireframing and responsive webdesign
Introduction about wireframing and responsive webdesign
 
Google's Principle's of Mobile Website Design
Google's Principle's of Mobile Website DesignGoogle's Principle's of Mobile Website Design
Google's Principle's of Mobile Website Design
 
Lecture3
Lecture3Lecture3
Lecture3
 

Similaire à Css box model

Web programming css
Web programming cssWeb programming css
Web programming css
Uma mohan
 
Compass And Sass(Tim Riley)
Compass And Sass(Tim Riley)Compass And Sass(Tim Riley)
Compass And Sass(Tim Riley)
elliando dias
 
Web design-workflow
Web design-workflowWeb design-workflow
Web design-workflow
Peter Kaizer
 
Website trends 2012 presentation
Website trends 2012 presentationWebsite trends 2012 presentation
Website trends 2012 presentation
Fresh_Egg
 
Lect-4-Responsive-Web-06032024-082044am.pptx
Lect-4-Responsive-Web-06032024-082044am.pptxLect-4-Responsive-Web-06032024-082044am.pptx
Lect-4-Responsive-Web-06032024-082044am.pptx
zainm7032
 

Similaire à Css box model (20)

Web programming css
Web programming cssWeb programming css
Web programming css
 
Sass compass
Sass compassSass compass
Sass compass
 
CSS and Layout
CSS and LayoutCSS and Layout
CSS and Layout
 
The Dark Arts of CSS
The Dark Arts of CSSThe Dark Arts of CSS
The Dark Arts of CSS
 
Web - CSS 1.pptx
Web - CSS 1.pptxWeb - CSS 1.pptx
Web - CSS 1.pptx
 
Making Your Own CSS Framework
Making Your Own CSS FrameworkMaking Your Own CSS Framework
Making Your Own CSS Framework
 
Compass And Sass(Tim Riley)
Compass And Sass(Tim Riley)Compass And Sass(Tim Riley)
Compass And Sass(Tim Riley)
 
Web design-workflow
Web design-workflowWeb design-workflow
Web design-workflow
 
Pemrograman Web 2 - CSS
Pemrograman Web 2 - CSSPemrograman Web 2 - CSS
Pemrograman Web 2 - CSS
 
Blueprint & Drafter JS
Blueprint & Drafter JSBlueprint & Drafter JS
Blueprint & Drafter JS
 
CSS Boc model
CSS Boc model CSS Boc model
CSS Boc model
 
Website trends 2012 presentation
Website trends 2012 presentationWebsite trends 2012 presentation
Website trends 2012 presentation
 
Lect-4-Responsive-Web-06032024-082044am.pptx
Lect-4-Responsive-Web-06032024-082044am.pptxLect-4-Responsive-Web-06032024-082044am.pptx
Lect-4-Responsive-Web-06032024-082044am.pptx
 
Cascading style sheets (CSS-Web Technology)
Cascading style sheets (CSS-Web Technology)Cascading style sheets (CSS-Web Technology)
Cascading style sheets (CSS-Web Technology)
 
Palestra pré processadores CSS
Palestra pré processadores CSSPalestra pré processadores CSS
Palestra pré processadores CSS
 
Unit-3-CSS-BWT.pptx
Unit-3-CSS-BWT.pptxUnit-3-CSS-BWT.pptx
Unit-3-CSS-BWT.pptx
 
Css introduction
Css  introductionCss  introduction
Css introduction
 
Ppt ch06
Ppt ch06Ppt ch06
Ppt ch06
 
Ppt ch06
Ppt ch06Ppt ch06
Ppt ch06
 
Css3
Css3Css3
Css3
 

Dernier

Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Krashi Coaching
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
SoniaTolstoy
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 

Dernier (20)

Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 

Css box model

  • 2. Margin Border Padding CSS Box Model CSS for Web Designer by Niciuzza, nicha.in.th Content Margin - The empty area around the border. The margin is completely transparent, no background color. Border - A border that goes around the padding and content. The border is affected by the background color of the box Padding - Clears an area around the content. The padding is affected by the background color of the box Content - The content of the box, where text and images appear
  • 3. CSS Border CSS for Web Designer by Niciuzza, nicha.in.th ● border-width ● border-style (required) ● border-color border:5px solid red; Short hand border-width: 5px; border-style: solid; border-color: red; General Ref: http://www.w3schools.com/css/css_border.asp
  • 4. CSS Margin CSS for Web Designer by Niciuzza, nicha.in.th ● margin-top ● margin-bottom ● margin-right ● margin-left margin-top:100px; margin-bottom:20px; margin-right:50px; margin-left:30px; General Ref: http://www.w3schools.com/css/css_margin.asp
  • 5. CSS Margin CSS for Web Designer by Niciuzza, nicha.in.th margin: 25px 50px 75px 100px; top margin is 25px right margin is 50px bottom margin is 75px left margin is 100px Ref: http://www.w3schools.com/css/css_margin.asp margin: 25px 50px; top and bottom margins are 25px right and left margins are 50px margin: 25px 50px 75px; top margin is 25px right and left margins are 50px bottom margin is 75px margin: 25px; all four margins are 25px Short hand
  • 6. CSS Padding CSS for Web Designer by Niciuzza, nicha.in.th ● padding-top ● padding-bottom ● padding-right ● padding-left padding-top:100px; padding-bottom:20px; padding-right:50px; padding-left:30px; General Ref: http://www.w3schools.com/css/css_padding.asp
  • 7. CSS Padding CSS for Web Designer by Niciuzza, nicha.in.th padding: 25px 50px 75px 100px; top padding is 25px right padding is 50px bottom padding is 75px left padding is 100px Ref: http://www.w3schools.com/css/css_padding.asp padding: 25px 50px; top and bottom padding are 25px right and left padding are 50px padding: 25px 50px 75px; top padding is 25px right and left padding are 50px bottom padding is 75px padding: 25px; all four padding are 25px Short hand
  • 8. CSS Dimension CSS for Web Designer by Niciuzza, nicha.in.th ● width ● min-width ● max-width width: 50%; min-width: 250px; max-width: 800px; Example Ref: http://www.w3schools.com/css/css_dimension.asp ● height ● min-height ● max-height
  • 9. CSS Outline CSS for Web Designer by Niciuzza, nicha.in.th An outline is a line that is drawn around elements (outside the borders) to make the element "stand out". ● outline-color ● outline-style ● outline-width outline:red dotted 1px; Short hand outline-color: red; outline-style: dotted; outline-width: 1px; General Ref: http://www.w3schools.com/css/css_outline.asp
  • 10. Margin Border Padding Calculate Width & Height CSS for Web Designer by Niciuzza, nicha.in.th Content width:250px; padding:10px; border:5px solid gray; margin:10px; Calculate the Width: 250px (width) + 20px (left + right padding) + 10px (left + right border) + 20px (left + right margin) = 300px; style.css
  • 11. Excercise 1 CSS for Web Designer by Niciuzza, nicha.in.th width:300px; height: 100px; border: 10px 2px 3px; Calculate the Width: 300px (width)+ 4px (left+right border) = 304px; style.css Calculate the Height: 100px (height)+ 10px (top border) + 3px (bottom border) = 313px;
  • 12. Excercise 2 CSS for Web Designer by Niciuzza, nicha.in.th width:900px; height: 35px; border: 0px 1px 1px 10px; padding: 20px; Calculate the Width: 900px (width)+ 11px (left+right border) + 40px (left+right padding) = 951px; style.css Calculate the Height: 35px (height)+ 1px (top+bottom border) + 40px (top+bottom padding) = 76px;
  • 13. Excercise 3 CSS for Web Designer by Niciuzza, nicha.in.th width:960px; height: 180px; margin-right: 20px; padding: 5px; padding-left: 20px; Calculate the Width: 960px (width)+ 20px (right margin) + 25px (left+right padding) = 1005px; style.css Calculate the Height: 180px (height)+ 10px (top+bottom padding) = 190px;
  • 14. Excercise 4 CSS for Web Designer by Niciuzza, nicha.in.th width:440px; height: 270px; margin: 10px; padding: 12px; border: 3px 4px 0px 1px; Calculate the Width: 440px (width)+ 20px (left+right margin) + 24px (left+right padding)+5px (left+right border) = 489px; style.css Calculate the Height: 270px (height)+ 20px (top+bottom margin) + 24px (top+bottom padding)+3px (top+bottom border) = 317px;
  • 15. References CSS for Web Designer by Niciuzza, nicha.in.th ● http://www.w3schools.com/css/