SlideShare a Scribd company logo
CSS
Muhammad Ali Baloch
6/16/2013 Hidaya Institute Of Science And Technology Jamshoro 1
CSS – BOX MODEL
6/16/2013 Hidaya Institute Of Science And Technology Jamshoro 2
CSS – BOX MODEL (Border)
• The border properties allow you to specify how the border of the box
representing an element should look. There are three properties of a border
you can change
• The border-color Specifies the color of a border.
• The border-style Specifies whether a border should be solid, dashed line,
double line, or one of the other possible values.
• The border-width Specifies the width of a border.
6/16/2013 Hidaya Institute Of Science And Technology Jamshoro 3
CSS – BOX MODEL (Border)
<style type="text/css">
p.example1{
border:1px solid;
border-bottom-color:#009900; /* Green */
border-top-color:#FF0000; /* Red */
border-left-color:#330000; /* Black */
border-right-color:#0000CC; /* Blue */
}
p.example2{
border:1px solid;
border-color:#009900; /* Green */
}
</style>
<p class="example1"> This example is showing all borders in different colors. </p>
<p class="example2"> This example is showing all borders in green color only. </p>
6/16/2013 Hidaya Institute Of Science And Technology Jamshoro 4
CSS – BOX MODEL (Border)
• BORDER-STYLE:
• The border-style property allows you to select one of the following styles of border:
• none: No border. (Equivalent of border-width:0;)
• solid: Border is a single solid line.
• dotted: Border is a series of dots.
• dashed: Border is a series of short lines.
• double: Border is two solid lines.
• groove: Border looks as though it is carved into the page.
• ridge: Border looks the opposite of groove.
• inset: Border makes the box look like it is embedded in the page.
• outset: Border makes the box look like it is coming out of the canvas.
• hidden: Same as none, except in terms of border-conflict resolution for table
elements.
6/16/2013 Hidaya Institute Of Science And Technology Jamshoro 5
CSS – BOX MODEL (Border)
• You can individually change the style of the bottom, left, top, and right
borders of an element using following properties:
• border-bottom-style changes the style of bottom border.
• border-top-style changes the style of top border.
• border-left-style changes the style of left border.
• border-right-style changes the style of right border.
<p style="border-width:4px; border-style:none;"> This is a border with none width. </p>
<p style="border-width:4px; border-style:solid;"> This is a solid border. </p>
<p style="border-width:4px; border-style:dashed;"> This is a dahsed border. </p>
6/16/2013 Hidaya Institute Of Science And Technology Jamshoro 6
CSS – BOX MODEL (Border)
• BORDER PROPERTIES USING SHORTHAND
• The border property allows you to specify color, style, and width of lines in
one property:
• You can use all the three properties into a single property. This is the most
frequently used property to set border around any element.
• <p style="border:4px solid red;"> This example is showing shorthand property for border.
</p>
6/16/2013 Hidaya Institute Of Science And Technology Jamshoro 7
CSS – BOX MODEL (Margin)
• The margin property defines the space around an HTML element. It is
possible to use negative values to overlap content.
• The values of the margin property are not inherited by child elements.
Remember that the adjacent vertical margins (top and bottom margins) will
collapse into each other so that the distance between the blocks is not the
sum of the margins, but only the greater of the two margins or the same size
as one margin if both are equal.
• There are following four properties to set an element margin.
• The margin A shorthand property for setting the margin properties in one declaration.
• The margin-bottom Specifies the bottom margin of an element.
• The margin-top Specifies the top margin of an element.
• The margin-left Specifies the left margin of an element.
• The margin-right Specifies the right margin of an element.
6/16/2013 Hidaya Institute Of Science And Technology Jamshoro 8
CSS – BOX MODEL (Margin)
• MARGIN PROPERTY:
• The margin property allows you set all of the properties for the four margins
in one declaration. Here is the syntax to set margin around a paragraph:
<style type="text/css"> p {margin: 15px} all four margins will be 15px
• p {margin: 10px 2%}
• top and bottom margin will be 10px, left and right margin will be 2% of the
total width of the document.
• p {margin: 10px 2% -10px} top margin will be 10px, left and right margin will
be 2% of the total width of the document, bottom margin will be -10px
• p {margin: 10px 2% -10px auto}
• top margin will be 10px, right margin will be 2% of the total width of the
document, bottom margin will be -10px, left margin will be set by the browser
6/16/2013 Hidaya Institute Of Science And Technology Jamshoro 9
CSS – BOX MODEL (Margin)
• MARGIN-BOTTOM PROPERTY :
• The margin-bottom property allows you set bottom margin of an element. It
can have a value in length, % or auto.
<p style="margin-bottom: 15px; border:1px solid black;">
This is a paragraph with a specified bottom margin
</p>
• MARGIN-TOP PROPERTY :
<p style="margin-top: 15px; border:1px solid black;">
This is a paragraph with a specified top margin
</p>
6/16/2013 Hidaya Institute Of Science And Technology Jamshoro 10
CSS – BOX MODEL (Margin)
• MARGIN-LEFT PROPERTY :
• The margin-left property allows you set left margin of an element. It can have
a value in length, % or auto.
<p style="margin-left: 15px; border:1px solid black;">
This is a paragraph with a specified left margin
</p>
• MARGIN-RIGHT PROPERTY :
<p style="margin-right: 15px; border:1px solid black;">
This is a paragraph with a specified right margin
</p>
6/16/2013 Hidaya Institute Of Science And Technology Jamshoro 11
CSS – BOX MODEL (Paddings)
• The padding property allows you to specify how much space should appear
between the content of an element and its border:
• There are following five CSS properties which can be used to control lists:
• The value of this attribute should be either a length, a percentage, or the
word inherit. If the value is inherit it will have the same padding as its parent
element. If a percentage is used, the percentage is of the containing box.
• You can also set different values for the padding on each side of the box using
the following properties:
• The padding-bottom Specifies the bottom padding of an element.
• The padding-top Specifies the top padding of an element.
• The padding-left Specifies the left padding of an element.
• The padding-right Specifies the right padding of an element.
• The padding Serves as shorthand for the preceding properties.
6/16/2013 Hidaya Institute Of Science And Technology Jamshoro 12
CSS – BOX MODEL (Paddings)
• PADDING-BOTTON PROPERTY:
• The padding-bottom property sets the bottom padding (space) of an element. This can take a
value in terms of length of %.
• <p style="padding-bottom: 15px; border:1px solid black;">
• This is a paragraph with a specified bottom padding
• </p>
• PADDING-TOP PROPERTY:
<p style="padding-top: 15px; border:1px solid black;">
This is a paragraph with a specified top padding
</p>
6/16/2013 Hidaya Institute Of Science And Technology Jamshoro 13
CSS – BOX MODEL (Paddings)
• PADDING-LEFT PROPERTY:
• The padding-left property sets the left padding (space) of an element. This
can take a value in terms of length of %.
<p style="padding-left: 15px; border:1px solid black;">
This is a paragraph with a specified left padding
</p>
• PADDING-RIGHT PROPERTY:
<p style="padding-right: 15px; border:1px solid black;">
This is a paragraph with a specified right padding
</p>
6/16/2013 Hidaya Institute Of Science And Technology Jamshoro 14
CSS – BOX MODEL (Paddings)
• PADDING PROPERTY:
• The padding property sets the left, right, top and bottom padding (space) of an element. This can take a value
in terms of length of %.
<p style="padding: 15px; border:1px solid black;">
all four padding will be 15px
</p>
<p style="padding:10px 2%; border:1px solid black
top and bottom padding will be 10px, left and right padding will be 2% of the total width of the document.
</p>
<p style="padding: 10px 2% 10px; border:1px solid black;">
top padding will be 10px, left and right padding will be 2% of the total width of the document, bottom padding will be 10px
</p>
<p style="padding: 10px 2% 10px 10px; border:1px solid black;">
top padding will be 10px, right padding will be 2% of the total width of the document, bottom padding and top padding will be
10px
</p>
6/16/2013 Hidaya Institute Of Science And Technology Jamshoro 15

More Related Content

What's hot

Web Design Course: CSS lecture 4
Web Design Course: CSS  lecture 4Web Design Course: CSS  lecture 4
Web Design Course: CSS lecture 4
Gheyath M. Othman
 
Ppt ch06
Ppt ch06Ppt ch06
Ppt ch06
1geassking
 
Cascading Style Sheets By Mukesh
Cascading Style Sheets By MukeshCascading Style Sheets By Mukesh
Cascading Style Sheets By Mukesh
Mukesh Kumar
 
Page layout with css
Page layout with cssPage layout with css
Page layout with css
Er. Nawaraj Bhandari
 
CSS Box Model
CSS Box ModelCSS Box Model
CSS Box Model
Gerson Abesamis
 
Cascading style sheets - CSS
Cascading style sheets - CSSCascading style sheets - CSS
Cascading style sheets - CSS
iFour Institute - Sustainable Learning
 
The Box Model [CSS Introduction]
The Box Model [CSS Introduction]The Box Model [CSS Introduction]
The Box Model [CSS Introduction]
Nicole Ryan
 
Web Design Course: CSS lecture 5
Web Design Course: CSS  lecture 5Web Design Course: CSS  lecture 5
Web Design Course: CSS lecture 5
Gheyath M. Othman
 
How Cascading Style Sheets (CSS) Works
How Cascading Style Sheets (CSS) WorksHow Cascading Style Sheets (CSS) Works
How Cascading Style Sheets (CSS) Works
Amit Tyagi
 
Web Design Course: CSS lecture 2
Web Design Course: CSS  lecture 2Web Design Course: CSS  lecture 2
Web Design Course: CSS lecture 2
Gheyath M. Othman
 
Creating a Webpage from a Template
Creating a Webpage from a TemplateCreating a Webpage from a Template
Creating a Webpage from a Template
Mike Crabb
 
Css introduction
Css  introductionCss  introduction
Css introduction
Nicha Jutasirivongse
 
Sass
SassSass
Web Design Course: CSS lecture 1
Web Design Course: CSS lecture 1Web Design Course: CSS lecture 1
Web Design Course: CSS lecture 1
Gheyath M. Othman
 
Cascading style sheet part 2
Cascading style sheet   part 2Cascading style sheet   part 2
Cascading style sheet part 2
Himanshu Pathak
 
CSS Basics
CSS BasicsCSS Basics
CSS Basics
Nitin Bhide
 
CSS: a rapidly changing world
CSS: a rapidly changing worldCSS: a rapidly changing world
CSS: a rapidly changing world
Russ Weakley
 
Layers&Frames
Layers&FramesLayers&Frames
CSS
CSSCSS
CSS
ARJUN
 

What's hot (20)

Web Design Course: CSS lecture 4
Web Design Course: CSS  lecture 4Web Design Course: CSS  lecture 4
Web Design Course: CSS lecture 4
 
Ppt ch06
Ppt ch06Ppt ch06
Ppt ch06
 
Cascading Style Sheets By Mukesh
Cascading Style Sheets By MukeshCascading Style Sheets By Mukesh
Cascading Style Sheets By Mukesh
 
Page layout with css
Page layout with cssPage layout with css
Page layout with css
 
CSS Box Model
CSS Box ModelCSS Box Model
CSS Box Model
 
Cascading style sheets - CSS
Cascading style sheets - CSSCascading style sheets - CSS
Cascading style sheets - CSS
 
The Box Model [CSS Introduction]
The Box Model [CSS Introduction]The Box Model [CSS Introduction]
The Box Model [CSS Introduction]
 
Web Design Course: CSS lecture 5
Web Design Course: CSS  lecture 5Web Design Course: CSS  lecture 5
Web Design Course: CSS lecture 5
 
How Cascading Style Sheets (CSS) Works
How Cascading Style Sheets (CSS) WorksHow Cascading Style Sheets (CSS) Works
How Cascading Style Sheets (CSS) Works
 
Web Design Course: CSS lecture 2
Web Design Course: CSS  lecture 2Web Design Course: CSS  lecture 2
Web Design Course: CSS lecture 2
 
Creating a Webpage from a Template
Creating a Webpage from a TemplateCreating a Webpage from a Template
Creating a Webpage from a Template
 
Css introduction
Css  introductionCss  introduction
Css introduction
 
Sass
SassSass
Sass
 
Web Design Course: CSS lecture 1
Web Design Course: CSS lecture 1Web Design Course: CSS lecture 1
Web Design Course: CSS lecture 1
 
Css
CssCss
Css
 
Cascading style sheet part 2
Cascading style sheet   part 2Cascading style sheet   part 2
Cascading style sheet part 2
 
CSS Basics
CSS BasicsCSS Basics
CSS Basics
 
CSS: a rapidly changing world
CSS: a rapidly changing worldCSS: a rapidly changing world
CSS: a rapidly changing world
 
Layers&Frames
Layers&FramesLayers&Frames
Layers&Frames
 
CSS
CSSCSS
CSS
 

Similar to Css presentation lecture 4

Web Engineering - Basic CSS Properties
Web Engineering - Basic CSS PropertiesWeb Engineering - Basic CSS Properties
Web Engineering - Basic CSS Properties
Nosheen Qamar
 
Css margins
Css marginsCss margins
Css margins
AbhishekMondal42
 
CSS tutorial chapter 2
CSS tutorial chapter 2CSS tutorial chapter 2
CSS tutorial chapter 2
jeweltutin
 
Unit - 3 CSS(Cascading Style Sheet).pptx
Unit - 3 CSS(Cascading Style Sheet).pptxUnit - 3 CSS(Cascading Style Sheet).pptx
Unit - 3 CSS(Cascading Style Sheet).pptx
kushwahanitesh592
 
Lab#7 CSS Box Model
Lab#7 CSS Box ModelLab#7 CSS Box Model
Lab#7 CSS Box Model
Yaowaluck Promdee
 
Css outlines
Css outlinesCss outlines
Css outlines
AbhishekMondal42
 
Dimensions of elements.pdf
Dimensions of elements.pdfDimensions of elements.pdf
CSS
CSSCSS
Html book
Html bookHtml book
Html book
Faisal Rehman
 
Border
BorderBorder
Border
Ankit Dubey
 
Web Engineering - Introduction to CSS
Web Engineering - Introduction to CSSWeb Engineering - Introduction to CSS
Web Engineering - Introduction to CSS
Nosheen Qamar
 
Introduction to CSS Borders - Lesson 4
Introduction to CSS Borders - Lesson 4Introduction to CSS Borders - Lesson 4
Introduction to CSS Borders - Lesson 4
Naresh Sharma
 
Unit-3-CSS-BWT.pptx
Unit-3-CSS-BWT.pptxUnit-3-CSS-BWT.pptx
Unit-3-CSS-BWT.pptx
Tanu524249
 
Ppt ch06
Ppt ch06Ppt ch06
Ppt ch06
niruttisai
 
CSS Box Model and Dimensions
CSS Box Model and DimensionsCSS Box Model and Dimensions
CSS Box Model and Dimensions
Gerson Abesamis
 
Web Layout
Web LayoutWeb Layout
Web Layout
Shawn Calvert
 
Cascading style sheets (CSS-Web Technology)
Cascading style sheets (CSS-Web Technology)Cascading style sheets (CSS-Web Technology)
Cascading style sheets (CSS-Web Technology)
Timbal Mayank
 
CSS
CSSCSS
CSS Grid Layout
CSS Grid LayoutCSS Grid Layout
CSS Grid Layout
Rachel Andrew
 
BITM3730 9-26.pptx
BITM3730 9-26.pptxBITM3730 9-26.pptx
BITM3730 9-26.pptx
MattMarino13
 

Similar to Css presentation lecture 4 (20)

Web Engineering - Basic CSS Properties
Web Engineering - Basic CSS PropertiesWeb Engineering - Basic CSS Properties
Web Engineering - Basic CSS Properties
 
Css margins
Css marginsCss margins
Css margins
 
CSS tutorial chapter 2
CSS tutorial chapter 2CSS tutorial chapter 2
CSS tutorial chapter 2
 
Unit - 3 CSS(Cascading Style Sheet).pptx
Unit - 3 CSS(Cascading Style Sheet).pptxUnit - 3 CSS(Cascading Style Sheet).pptx
Unit - 3 CSS(Cascading Style Sheet).pptx
 
Lab#7 CSS Box Model
Lab#7 CSS Box ModelLab#7 CSS Box Model
Lab#7 CSS Box Model
 
Css outlines
Css outlinesCss outlines
Css outlines
 
Dimensions of elements.pdf
Dimensions of elements.pdfDimensions of elements.pdf
Dimensions of elements.pdf
 
CSS
CSSCSS
CSS
 
Html book
Html bookHtml book
Html book
 
Border
BorderBorder
Border
 
Web Engineering - Introduction to CSS
Web Engineering - Introduction to CSSWeb Engineering - Introduction to CSS
Web Engineering - Introduction to CSS
 
Introduction to CSS Borders - Lesson 4
Introduction to CSS Borders - Lesson 4Introduction to CSS Borders - Lesson 4
Introduction to CSS Borders - Lesson 4
 
Unit-3-CSS-BWT.pptx
Unit-3-CSS-BWT.pptxUnit-3-CSS-BWT.pptx
Unit-3-CSS-BWT.pptx
 
Ppt ch06
Ppt ch06Ppt ch06
Ppt ch06
 
CSS Box Model and Dimensions
CSS Box Model and DimensionsCSS Box Model and Dimensions
CSS Box Model and Dimensions
 
Web Layout
Web LayoutWeb Layout
Web Layout
 
Cascading style sheets (CSS-Web Technology)
Cascading style sheets (CSS-Web Technology)Cascading style sheets (CSS-Web Technology)
Cascading style sheets (CSS-Web Technology)
 
CSS
CSSCSS
CSS
 
CSS Grid Layout
CSS Grid LayoutCSS Grid Layout
CSS Grid Layout
 
BITM3730 9-26.pptx
BITM3730 9-26.pptxBITM3730 9-26.pptx
BITM3730 9-26.pptx
 

More from Mudasir Syed

Error reporting in php
Error reporting in php Error reporting in php
Error reporting in php
Mudasir Syed
 
Cookies in php lecture 2
Cookies in php  lecture  2Cookies in php  lecture  2
Cookies in php lecture 2
Mudasir Syed
 
Cookies in php lecture 1
Cookies in php lecture 1Cookies in php lecture 1
Cookies in php lecture 1
Mudasir Syed
 
Ajax
Ajax Ajax
Reporting using FPDF
Reporting using FPDFReporting using FPDF
Reporting using FPDF
Mudasir Syed
 
Oop in php lecture 2
Oop in  php lecture 2Oop in  php lecture 2
Oop in php lecture 2
Mudasir Syed
 
Oop in php lecture 2
Oop in  php lecture 2Oop in  php lecture 2
Oop in php lecture 2
Mudasir Syed
 
Filing system in PHP
Filing system in PHPFiling system in PHP
Filing system in PHP
Mudasir Syed
 
Time manipulation lecture 2
Time manipulation lecture 2Time manipulation lecture 2
Time manipulation lecture 2
Mudasir Syed
 
Time manipulation lecture 1
Time manipulation lecture 1 Time manipulation lecture 1
Time manipulation lecture 1
Mudasir Syed
 
Php Mysql
Php Mysql Php Mysql
Php Mysql
Mudasir Syed
 
Adminstrating Through PHPMyAdmin
Adminstrating Through PHPMyAdminAdminstrating Through PHPMyAdmin
Adminstrating Through PHPMyAdmin
Mudasir Syed
 
Sql select
Sql select Sql select
Sql select
Mudasir Syed
 
PHP mysql Sql
PHP mysql  SqlPHP mysql  Sql
PHP mysql Sql
Mudasir Syed
 
PHP mysql Mysql joins
PHP mysql  Mysql joinsPHP mysql  Mysql joins
PHP mysql Mysql joins
Mudasir Syed
 
PHP mysql Introduction database
 PHP mysql  Introduction database PHP mysql  Introduction database
PHP mysql Introduction database
Mudasir Syed
 
PHP mysql Installing my sql 5.1
PHP mysql  Installing my sql 5.1PHP mysql  Installing my sql 5.1
PHP mysql Installing my sql 5.1
Mudasir Syed
 
PHP mysql Er diagram
PHP mysql  Er diagramPHP mysql  Er diagram
PHP mysql Er diagram
Mudasir Syed
 
PHP mysql Database normalizatin
PHP mysql  Database normalizatinPHP mysql  Database normalizatin
PHP mysql Database normalizatin
Mudasir Syed
 
PHP mysql Aggregate functions
PHP mysql Aggregate functionsPHP mysql Aggregate functions
PHP mysql Aggregate functions
Mudasir Syed
 

More from Mudasir Syed (20)

Error reporting in php
Error reporting in php Error reporting in php
Error reporting in php
 
Cookies in php lecture 2
Cookies in php  lecture  2Cookies in php  lecture  2
Cookies in php lecture 2
 
Cookies in php lecture 1
Cookies in php lecture 1Cookies in php lecture 1
Cookies in php lecture 1
 
Ajax
Ajax Ajax
Ajax
 
Reporting using FPDF
Reporting using FPDFReporting using FPDF
Reporting using FPDF
 
Oop in php lecture 2
Oop in  php lecture 2Oop in  php lecture 2
Oop in php lecture 2
 
Oop in php lecture 2
Oop in  php lecture 2Oop in  php lecture 2
Oop in php lecture 2
 
Filing system in PHP
Filing system in PHPFiling system in PHP
Filing system in PHP
 
Time manipulation lecture 2
Time manipulation lecture 2Time manipulation lecture 2
Time manipulation lecture 2
 
Time manipulation lecture 1
Time manipulation lecture 1 Time manipulation lecture 1
Time manipulation lecture 1
 
Php Mysql
Php Mysql Php Mysql
Php Mysql
 
Adminstrating Through PHPMyAdmin
Adminstrating Through PHPMyAdminAdminstrating Through PHPMyAdmin
Adminstrating Through PHPMyAdmin
 
Sql select
Sql select Sql select
Sql select
 
PHP mysql Sql
PHP mysql  SqlPHP mysql  Sql
PHP mysql Sql
 
PHP mysql Mysql joins
PHP mysql  Mysql joinsPHP mysql  Mysql joins
PHP mysql Mysql joins
 
PHP mysql Introduction database
 PHP mysql  Introduction database PHP mysql  Introduction database
PHP mysql Introduction database
 
PHP mysql Installing my sql 5.1
PHP mysql  Installing my sql 5.1PHP mysql  Installing my sql 5.1
PHP mysql Installing my sql 5.1
 
PHP mysql Er diagram
PHP mysql  Er diagramPHP mysql  Er diagram
PHP mysql Er diagram
 
PHP mysql Database normalizatin
PHP mysql  Database normalizatinPHP mysql  Database normalizatin
PHP mysql Database normalizatin
 
PHP mysql Aggregate functions
PHP mysql Aggregate functionsPHP mysql Aggregate functions
PHP mysql Aggregate functions
 

Recently uploaded

spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skillsspot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
haiqairshad
 
Jemison, MacLaughlin, and Majumder "Broadening Pathways for Editors and Authors"
Jemison, MacLaughlin, and Majumder "Broadening Pathways for Editors and Authors"Jemison, MacLaughlin, and Majumder "Broadening Pathways for Editors and Authors"
Jemison, MacLaughlin, and Majumder "Broadening Pathways for Editors and Authors"
National Information Standards Organization (NISO)
 
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptxNEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
iammrhaywood
 
skeleton System.pdf (skeleton system wow)
skeleton System.pdf (skeleton system wow)skeleton System.pdf (skeleton system wow)
skeleton System.pdf (skeleton system wow)
Mohammad Al-Dhahabi
 
HYPERTENSION - SLIDE SHARE PRESENTATION.
HYPERTENSION - SLIDE SHARE PRESENTATION.HYPERTENSION - SLIDE SHARE PRESENTATION.
HYPERTENSION - SLIDE SHARE PRESENTATION.
deepaannamalai16
 
مصحف القراءات العشر أعد أحرف الخلاف سمير بسيوني.pdf
مصحف القراءات العشر   أعد أحرف الخلاف سمير بسيوني.pdfمصحف القراءات العشر   أعد أحرف الخلاف سمير بسيوني.pdf
مصحف القراءات العشر أعد أحرف الخلاف سمير بسيوني.pdf
سمير بسيوني
 
How Barcodes Can Be Leveraged Within Odoo 17
How Barcodes Can Be Leveraged Within Odoo 17How Barcodes Can Be Leveraged Within Odoo 17
How Barcodes Can Be Leveraged Within Odoo 17
Celine George
 
Nutrition Inc FY 2024, 4 - Hour Training
Nutrition Inc FY 2024, 4 - Hour TrainingNutrition Inc FY 2024, 4 - Hour Training
Nutrition Inc FY 2024, 4 - Hour Training
melliereed
 
Stack Memory Organization of 8086 Microprocessor
Stack Memory Organization of 8086 MicroprocessorStack Memory Organization of 8086 Microprocessor
Stack Memory Organization of 8086 Microprocessor
JomonJoseph58
 
How to Predict Vendor Bill Product in Odoo 17
How to Predict Vendor Bill Product in Odoo 17How to Predict Vendor Bill Product in Odoo 17
How to Predict Vendor Bill Product in Odoo 17
Celine George
 
Level 3 NCEA - NZ: A Nation In the Making 1872 - 1900 SML.ppt
Level 3 NCEA - NZ: A  Nation In the Making 1872 - 1900 SML.pptLevel 3 NCEA - NZ: A  Nation In the Making 1872 - 1900 SML.ppt
Level 3 NCEA - NZ: A Nation In the Making 1872 - 1900 SML.ppt
Henry Hollis
 
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptxPrésentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
siemaillard
 
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
Nguyen Thanh Tu Collection
 
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptxBeyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
EduSkills OECD
 
BIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptx
BIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptxBIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptx
BIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptx
RidwanHassanYusuf
 
CIS 4200-02 Group 1 Final Project Report (1).pdf
CIS 4200-02 Group 1 Final Project Report (1).pdfCIS 4200-02 Group 1 Final Project Report (1).pdf
CIS 4200-02 Group 1 Final Project Report (1).pdf
blueshagoo1
 
MDP on air pollution of class 8 year 2024-2025
MDP on air pollution of class 8 year 2024-2025MDP on air pollution of class 8 year 2024-2025
MDP on air pollution of class 8 year 2024-2025
khuleseema60
 
Bossa N’ Roll Records by Ismael Vazquez.
Bossa N’ Roll Records by Ismael Vazquez.Bossa N’ Roll Records by Ismael Vazquez.
Bossa N’ Roll Records by Ismael Vazquez.
IsmaelVazquez38
 
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
indexPub
 
Electric Fetus - Record Store Scavenger Hunt
Electric Fetus - Record Store Scavenger HuntElectric Fetus - Record Store Scavenger Hunt
Electric Fetus - Record Store Scavenger Hunt
RamseyBerglund
 

Recently uploaded (20)

spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skillsspot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
 
Jemison, MacLaughlin, and Majumder "Broadening Pathways for Editors and Authors"
Jemison, MacLaughlin, and Majumder "Broadening Pathways for Editors and Authors"Jemison, MacLaughlin, and Majumder "Broadening Pathways for Editors and Authors"
Jemison, MacLaughlin, and Majumder "Broadening Pathways for Editors and Authors"
 
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptxNEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
 
skeleton System.pdf (skeleton system wow)
skeleton System.pdf (skeleton system wow)skeleton System.pdf (skeleton system wow)
skeleton System.pdf (skeleton system wow)
 
HYPERTENSION - SLIDE SHARE PRESENTATION.
HYPERTENSION - SLIDE SHARE PRESENTATION.HYPERTENSION - SLIDE SHARE PRESENTATION.
HYPERTENSION - SLIDE SHARE PRESENTATION.
 
مصحف القراءات العشر أعد أحرف الخلاف سمير بسيوني.pdf
مصحف القراءات العشر   أعد أحرف الخلاف سمير بسيوني.pdfمصحف القراءات العشر   أعد أحرف الخلاف سمير بسيوني.pdf
مصحف القراءات العشر أعد أحرف الخلاف سمير بسيوني.pdf
 
How Barcodes Can Be Leveraged Within Odoo 17
How Barcodes Can Be Leveraged Within Odoo 17How Barcodes Can Be Leveraged Within Odoo 17
How Barcodes Can Be Leveraged Within Odoo 17
 
Nutrition Inc FY 2024, 4 - Hour Training
Nutrition Inc FY 2024, 4 - Hour TrainingNutrition Inc FY 2024, 4 - Hour Training
Nutrition Inc FY 2024, 4 - Hour Training
 
Stack Memory Organization of 8086 Microprocessor
Stack Memory Organization of 8086 MicroprocessorStack Memory Organization of 8086 Microprocessor
Stack Memory Organization of 8086 Microprocessor
 
How to Predict Vendor Bill Product in Odoo 17
How to Predict Vendor Bill Product in Odoo 17How to Predict Vendor Bill Product in Odoo 17
How to Predict Vendor Bill Product in Odoo 17
 
Level 3 NCEA - NZ: A Nation In the Making 1872 - 1900 SML.ppt
Level 3 NCEA - NZ: A  Nation In the Making 1872 - 1900 SML.pptLevel 3 NCEA - NZ: A  Nation In the Making 1872 - 1900 SML.ppt
Level 3 NCEA - NZ: A Nation In the Making 1872 - 1900 SML.ppt
 
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptxPrésentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
 
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
 
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptxBeyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
 
BIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptx
BIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptxBIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptx
BIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptx
 
CIS 4200-02 Group 1 Final Project Report (1).pdf
CIS 4200-02 Group 1 Final Project Report (1).pdfCIS 4200-02 Group 1 Final Project Report (1).pdf
CIS 4200-02 Group 1 Final Project Report (1).pdf
 
MDP on air pollution of class 8 year 2024-2025
MDP on air pollution of class 8 year 2024-2025MDP on air pollution of class 8 year 2024-2025
MDP on air pollution of class 8 year 2024-2025
 
Bossa N’ Roll Records by Ismael Vazquez.
Bossa N’ Roll Records by Ismael Vazquez.Bossa N’ Roll Records by Ismael Vazquez.
Bossa N’ Roll Records by Ismael Vazquez.
 
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
 
Electric Fetus - Record Store Scavenger Hunt
Electric Fetus - Record Store Scavenger HuntElectric Fetus - Record Store Scavenger Hunt
Electric Fetus - Record Store Scavenger Hunt
 

Css presentation lecture 4

  • 1. CSS Muhammad Ali Baloch 6/16/2013 Hidaya Institute Of Science And Technology Jamshoro 1
  • 2. CSS – BOX MODEL 6/16/2013 Hidaya Institute Of Science And Technology Jamshoro 2
  • 3. CSS – BOX MODEL (Border) • The border properties allow you to specify how the border of the box representing an element should look. There are three properties of a border you can change • The border-color Specifies the color of a border. • The border-style Specifies whether a border should be solid, dashed line, double line, or one of the other possible values. • The border-width Specifies the width of a border. 6/16/2013 Hidaya Institute Of Science And Technology Jamshoro 3
  • 4. CSS – BOX MODEL (Border) <style type="text/css"> p.example1{ border:1px solid; border-bottom-color:#009900; /* Green */ border-top-color:#FF0000; /* Red */ border-left-color:#330000; /* Black */ border-right-color:#0000CC; /* Blue */ } p.example2{ border:1px solid; border-color:#009900; /* Green */ } </style> <p class="example1"> This example is showing all borders in different colors. </p> <p class="example2"> This example is showing all borders in green color only. </p> 6/16/2013 Hidaya Institute Of Science And Technology Jamshoro 4
  • 5. CSS – BOX MODEL (Border) • BORDER-STYLE: • The border-style property allows you to select one of the following styles of border: • none: No border. (Equivalent of border-width:0;) • solid: Border is a single solid line. • dotted: Border is a series of dots. • dashed: Border is a series of short lines. • double: Border is two solid lines. • groove: Border looks as though it is carved into the page. • ridge: Border looks the opposite of groove. • inset: Border makes the box look like it is embedded in the page. • outset: Border makes the box look like it is coming out of the canvas. • hidden: Same as none, except in terms of border-conflict resolution for table elements. 6/16/2013 Hidaya Institute Of Science And Technology Jamshoro 5
  • 6. CSS – BOX MODEL (Border) • You can individually change the style of the bottom, left, top, and right borders of an element using following properties: • border-bottom-style changes the style of bottom border. • border-top-style changes the style of top border. • border-left-style changes the style of left border. • border-right-style changes the style of right border. <p style="border-width:4px; border-style:none;"> This is a border with none width. </p> <p style="border-width:4px; border-style:solid;"> This is a solid border. </p> <p style="border-width:4px; border-style:dashed;"> This is a dahsed border. </p> 6/16/2013 Hidaya Institute Of Science And Technology Jamshoro 6
  • 7. CSS – BOX MODEL (Border) • BORDER PROPERTIES USING SHORTHAND • The border property allows you to specify color, style, and width of lines in one property: • You can use all the three properties into a single property. This is the most frequently used property to set border around any element. • <p style="border:4px solid red;"> This example is showing shorthand property for border. </p> 6/16/2013 Hidaya Institute Of Science And Technology Jamshoro 7
  • 8. CSS – BOX MODEL (Margin) • The margin property defines the space around an HTML element. It is possible to use negative values to overlap content. • The values of the margin property are not inherited by child elements. Remember that the adjacent vertical margins (top and bottom margins) will collapse into each other so that the distance between the blocks is not the sum of the margins, but only the greater of the two margins or the same size as one margin if both are equal. • There are following four properties to set an element margin. • The margin A shorthand property for setting the margin properties in one declaration. • The margin-bottom Specifies the bottom margin of an element. • The margin-top Specifies the top margin of an element. • The margin-left Specifies the left margin of an element. • The margin-right Specifies the right margin of an element. 6/16/2013 Hidaya Institute Of Science And Technology Jamshoro 8
  • 9. CSS – BOX MODEL (Margin) • MARGIN PROPERTY: • The margin property allows you set all of the properties for the four margins in one declaration. Here is the syntax to set margin around a paragraph: <style type="text/css"> p {margin: 15px} all four margins will be 15px • p {margin: 10px 2%} • top and bottom margin will be 10px, left and right margin will be 2% of the total width of the document. • p {margin: 10px 2% -10px} top margin will be 10px, left and right margin will be 2% of the total width of the document, bottom margin will be -10px • p {margin: 10px 2% -10px auto} • top margin will be 10px, right margin will be 2% of the total width of the document, bottom margin will be -10px, left margin will be set by the browser 6/16/2013 Hidaya Institute Of Science And Technology Jamshoro 9
  • 10. CSS – BOX MODEL (Margin) • MARGIN-BOTTOM PROPERTY : • The margin-bottom property allows you set bottom margin of an element. It can have a value in length, % or auto. <p style="margin-bottom: 15px; border:1px solid black;"> This is a paragraph with a specified bottom margin </p> • MARGIN-TOP PROPERTY : <p style="margin-top: 15px; border:1px solid black;"> This is a paragraph with a specified top margin </p> 6/16/2013 Hidaya Institute Of Science And Technology Jamshoro 10
  • 11. CSS – BOX MODEL (Margin) • MARGIN-LEFT PROPERTY : • The margin-left property allows you set left margin of an element. It can have a value in length, % or auto. <p style="margin-left: 15px; border:1px solid black;"> This is a paragraph with a specified left margin </p> • MARGIN-RIGHT PROPERTY : <p style="margin-right: 15px; border:1px solid black;"> This is a paragraph with a specified right margin </p> 6/16/2013 Hidaya Institute Of Science And Technology Jamshoro 11
  • 12. CSS – BOX MODEL (Paddings) • The padding property allows you to specify how much space should appear between the content of an element and its border: • There are following five CSS properties which can be used to control lists: • The value of this attribute should be either a length, a percentage, or the word inherit. If the value is inherit it will have the same padding as its parent element. If a percentage is used, the percentage is of the containing box. • You can also set different values for the padding on each side of the box using the following properties: • The padding-bottom Specifies the bottom padding of an element. • The padding-top Specifies the top padding of an element. • The padding-left Specifies the left padding of an element. • The padding-right Specifies the right padding of an element. • The padding Serves as shorthand for the preceding properties. 6/16/2013 Hidaya Institute Of Science And Technology Jamshoro 12
  • 13. CSS – BOX MODEL (Paddings) • PADDING-BOTTON PROPERTY: • The padding-bottom property sets the bottom padding (space) of an element. This can take a value in terms of length of %. • <p style="padding-bottom: 15px; border:1px solid black;"> • This is a paragraph with a specified bottom padding • </p> • PADDING-TOP PROPERTY: <p style="padding-top: 15px; border:1px solid black;"> This is a paragraph with a specified top padding </p> 6/16/2013 Hidaya Institute Of Science And Technology Jamshoro 13
  • 14. CSS – BOX MODEL (Paddings) • PADDING-LEFT PROPERTY: • The padding-left property sets the left padding (space) of an element. This can take a value in terms of length of %. <p style="padding-left: 15px; border:1px solid black;"> This is a paragraph with a specified left padding </p> • PADDING-RIGHT PROPERTY: <p style="padding-right: 15px; border:1px solid black;"> This is a paragraph with a specified right padding </p> 6/16/2013 Hidaya Institute Of Science And Technology Jamshoro 14
  • 15. CSS – BOX MODEL (Paddings) • PADDING PROPERTY: • The padding property sets the left, right, top and bottom padding (space) of an element. This can take a value in terms of length of %. <p style="padding: 15px; border:1px solid black;"> all four padding will be 15px </p> <p style="padding:10px 2%; border:1px solid black top and bottom padding will be 10px, left and right padding will be 2% of the total width of the document. </p> <p style="padding: 10px 2% 10px; border:1px solid black;"> top padding will be 10px, left and right padding will be 2% of the total width of the document, bottom padding will be 10px </p> <p style="padding: 10px 2% 10px 10px; border:1px solid black;"> top padding will be 10px, right padding will be 2% of the total width of the document, bottom padding and top padding will be 10px </p> 6/16/2013 Hidaya Institute Of Science And Technology Jamshoro 15