SlideShare a Scribd company logo
1 of 15
CSS FONT
CSS FONT
• CSS font properties enable you to change the
look of your text. For example, you can
assign a font family, apply bold or italic
formatting, and change the size and more.
• CSS FONT FAMILY: Enables you to set the
font face for your text.
Syntax: font-family: (name of font);
Ex: font-family: Arial;
CSS FONT SIZE: Enables you to set the size
of the text.
Syntax: font-size: (size of font);
Ex: font-size: 20 px;
CSS FONT STYLE: Enables you to set the
style for your text.
Syntax: font-style: (style name);
Ex: font-style: italic;
CSS BACKGROUND
CSS background properties are used to
define the background effects of an
element.
Background color
The background color property
specifies the background color of
an element.
Ex: body {background –color: red ;}
Background image
The background image property specifies an
image to use as the background of an element.
By default, the image repeats so it covers the
entire element.
Ex: body {background-image: url(“location”)}
You can change the color of the text, align text,
and add decoration and more.
 Text color: The color property is used to set
the color of the text. You can use name or the
hexadecimal value for the color.
Ex: Body {color:red;}
h1{color:#00ff00;}
p.hello{color:pink;}
CSS TEXT
Text alignment
The text alignment property is used to set the
horizontal alignment of the text. Text can be
centered, aligned to left, right or justified.
Ex: H1 {text-align:center;}
P{text-align:right;}
H2{text-align:justify;}
Text decoration
The text decoration property is used to set or
remove decorations from text.
Ex: H1 {text-decoration:overline;}
H2 {text-decoration:line-through;}
H3{text-decoration:underline;}
H4{text-decoration:blink;}
CSS POSITIONING
CSS POSITIONING
The CSS positioning properties allow you to
position an element. It can also place an
element behind another. Elements can be
positioned using the top, bottom, left, right
properties.
• Static positioning
• Fixed positioning
• Relative positioning
• Absolute positioning
• Fixed positioning
P
{
Position:fixed;
Top:30 px;
Right:5 px;
}
• Relative positioning
H2
{
Position:relative;
Left: -20px;
}
Absolute positioning
H2
{
Position:absolute;
Left:100px;
Top:150px;
}
CSS LAYERS
CSS allows you to control which item will appear
on top with the use of layers. In CSS, each layer
is given a priority. If there are two overlapping
CSS positioned elements, the element with
higher priority will appear on top of other.
In CSS, layers refer to applying the z-index
property to elements that overlap with each
other.
<div style=”background-color: red; width:100px;
height:100px; position: relative; top:10px;
left:80px; z-index:2; ”>
</div>
<div style=”background-color: yellow;
width:100px; height:100px;position:relative;
top:-60px; left:35px; z-index:1;”>

More Related Content

Similar to Css font

5th Lecture- WEB ENGINEERING basics.pptx
5th Lecture- WEB ENGINEERING basics.pptx5th Lecture- WEB ENGINEERING basics.pptx
5th Lecture- WEB ENGINEERING basics.pptx
Aasma13
 
cascadingstylesheets
cascadingstylesheetscascadingstylesheets
cascadingstylesheets
tutorialsruby
 
cascadingstylesheets
cascadingstylesheetscascadingstylesheets
cascadingstylesheets
tutorialsruby
 
waxaada canshuurahaiyosiyaaddaguudeexamarwaaardaydaDAALBADAN.ppt
waxaada canshuurahaiyosiyaaddaguudeexamarwaaardaydaDAALBADAN.pptwaxaada canshuurahaiyosiyaaddaguudeexamarwaaardaydaDAALBADAN.ppt
waxaada canshuurahaiyosiyaaddaguudeexamarwaaardaydaDAALBADAN.ppt
Ismaciil2
 

Similar to Css font (20)

5th Lecture- WEB ENGINEERING basics.pptx
5th Lecture- WEB ENGINEERING basics.pptx5th Lecture- WEB ENGINEERING basics.pptx
5th Lecture- WEB ENGINEERING basics.pptx
 
CSS Presentation Notes.pptx
CSS Presentation Notes.pptxCSS Presentation Notes.pptx
CSS Presentation Notes.pptx
 
CSS notes
CSS notesCSS notes
CSS notes
 
CSS for Beginners
CSS for BeginnersCSS for Beginners
CSS for Beginners
 
Css
CssCss
Css
 
Cascading style sheet
Cascading style sheetCascading style sheet
Cascading style sheet
 
Html 2
Html   2Html   2
Html 2
 
cascadingstylesheets
cascadingstylesheetscascadingstylesheets
cascadingstylesheets
 
cascadingstylesheets
cascadingstylesheetscascadingstylesheets
cascadingstylesheets
 
CSS
CSSCSS
CSS
 
CSS
CSSCSS
CSS
 
CSS ppt
CSS pptCSS ppt
CSS ppt
 
waxaada canshuurahaiyosiyaaddaguudeexamarwaaardaydaDAALBADAN.ppt
waxaada canshuurahaiyosiyaaddaguudeexamarwaaardaydaDAALBADAN.pptwaxaada canshuurahaiyosiyaaddaguudeexamarwaaardaydaDAALBADAN.ppt
waxaada canshuurahaiyosiyaaddaguudeexamarwaaardaydaDAALBADAN.ppt
 
css1.ppt
css1.pptcss1.ppt
css1.ppt
 
CSS Basics
CSS BasicsCSS Basics
CSS Basics
 
Estilos Css
Estilos CssEstilos Css
Estilos Css
 
uptu web technology unit 2 Css
uptu web technology unit 2 Cssuptu web technology unit 2 Css
uptu web technology unit 2 Css
 
Introduction to css & its attributes with syntax
Introduction to css & its attributes with syntaxIntroduction to css & its attributes with syntax
Introduction to css & its attributes with syntax
 
Introduction to CSS
Introduction to CSSIntroduction to CSS
Introduction to CSS
 
Ict 8 css
Ict 8 cssIct 8 css
Ict 8 css
 

More from preetikapri1

More from preetikapri1 (20)

Forces
ForcesForces
Forces
 
software quality
software qualitysoftware quality
software quality
 
UML model
UML model UML model
UML model
 
Er diagrams
Er diagramsEr diagrams
Er diagrams
 
Data flow diagram
Data flow diagramData flow diagram
Data flow diagram
 
types of testing in software engineering
types of testing in software engineering types of testing in software engineering
types of testing in software engineering
 
structures in C and Union in C, enumerated datatype
structures in C and Union in C, enumerated datatypestructures in C and Union in C, enumerated datatype
structures in C and Union in C, enumerated datatype
 
bit wise operators and I/O operations in C
bit wise operators and I/O operations in Cbit wise operators and I/O operations in C
bit wise operators and I/O operations in C
 
Ms access
Ms access Ms access
Ms access
 
Functions
FunctionsFunctions
Functions
 
C programming
C programmingC programming
C programming
 
C preprocesor
C preprocesorC preprocesor
C preprocesor
 
Window object
Window objectWindow object
Window object
 
DTD elements
DTD elementsDTD elements
DTD elements
 
Html
HtmlHtml
Html
 
consumer oriented applications
consumer oriented applicationsconsumer oriented applications
consumer oriented applications
 
architecture framework for ecommerce
architecture framework for ecommercearchitecture framework for ecommerce
architecture framework for ecommerce
 
impact of ecommerce on traditional means
impact of ecommerce on traditional means impact of ecommerce on traditional means
impact of ecommerce on traditional means
 
electronic data interchange
electronic data interchange electronic data interchange
electronic data interchange
 
consumer oriented applications
consumer oriented applicationsconsumer oriented applications
consumer oriented applications
 

Recently uploaded

Recently uploaded (20)

Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
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
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 

Css font

  • 2. CSS FONT • CSS font properties enable you to change the look of your text. For example, you can assign a font family, apply bold or italic formatting, and change the size and more. • CSS FONT FAMILY: Enables you to set the font face for your text. Syntax: font-family: (name of font); Ex: font-family: Arial;
  • 3. CSS FONT SIZE: Enables you to set the size of the text. Syntax: font-size: (size of font); Ex: font-size: 20 px; CSS FONT STYLE: Enables you to set the style for your text. Syntax: font-style: (style name); Ex: font-style: italic;
  • 4. CSS BACKGROUND CSS background properties are used to define the background effects of an element.
  • 5. Background color The background color property specifies the background color of an element. Ex: body {background –color: red ;}
  • 6. Background image The background image property specifies an image to use as the background of an element. By default, the image repeats so it covers the entire element. Ex: body {background-image: url(“location”)}
  • 7. You can change the color of the text, align text, and add decoration and more.  Text color: The color property is used to set the color of the text. You can use name or the hexadecimal value for the color. Ex: Body {color:red;} h1{color:#00ff00;} p.hello{color:pink;} CSS TEXT
  • 8. Text alignment The text alignment property is used to set the horizontal alignment of the text. Text can be centered, aligned to left, right or justified. Ex: H1 {text-align:center;} P{text-align:right;} H2{text-align:justify;}
  • 9. Text decoration The text decoration property is used to set or remove decorations from text. Ex: H1 {text-decoration:overline;} H2 {text-decoration:line-through;} H3{text-decoration:underline;} H4{text-decoration:blink;}
  • 11. CSS POSITIONING The CSS positioning properties allow you to position an element. It can also place an element behind another. Elements can be positioned using the top, bottom, left, right properties. • Static positioning • Fixed positioning • Relative positioning • Absolute positioning
  • 12. • Fixed positioning P { Position:fixed; Top:30 px; Right:5 px; } • Relative positioning H2 { Position:relative; Left: -20px; }
  • 14. CSS LAYERS CSS allows you to control which item will appear on top with the use of layers. In CSS, each layer is given a priority. If there are two overlapping CSS positioned elements, the element with higher priority will appear on top of other. In CSS, layers refer to applying the z-index property to elements that overlap with each other.
  • 15. <div style=”background-color: red; width:100px; height:100px; position: relative; top:10px; left:80px; z-index:2; ”> </div> <div style=”background-color: yellow; width:100px; height:100px;position:relative; top:-60px; left:35px; z-index:1;”>