SlideShare une entreprise Scribd logo
1  sur  29
PRESENTATION
                        MEMBERS

ABDUL BASIT KAYANI B-16729
KALEEM WAHEED B -16857
TOPIC

• TEXT Properties
• Margin Properties
TEXT PROPERTIES

•   Text Color.
•   Text Alignment.
•   Text decoration.
•   Text Transformation.
•   Text Indentation.
•   Text Spacing.
TEXT COLOR

The color property is used to set the color of the text.
With CSS, a color is most often specified by:
 • a HEX value - like "#ff0000"
 • an RGB value - like "rgb(255,0,0)"
 • a color name - like "red"
<!DOCTYPE html>
        <html>
        <head>
        <style>
        body {color:red;}
        h1 {color:#00ff00;}
        p.ex {color:rgb(0,0,255);}
        </style>
TEXT    </head>


COLOR   <body>
        <h1>This is heading 1</h1>
        <p>This is an ordinary paragraph. Notice that
        this text is red. The default text-color for a page
        is defined in the body selector.</p>
        <p class="ex">This is a paragraph with
        class="ex". This text is blue.</p>
        </body>
        </html>
RESULT
<html>
            <head>
            <style>
            h1 {text-align:center;}
            p.date {text-align:right;}
            p.main {text-align:justify;}
Text        </style>
            </head>
Alignment   <body>
            <h1>CSS text-align Example</h1>
            <p class="date">May, 2009</p>
            <p class="main">In my younger and more
            vulnerable years my father gave me some
            advice that I've been turning over in my mind
            ever since. 'Whenever you feel like criticizing
            anyone,' he told me,
            'just remember that all the people in this world
            haven't had the advantages that you've
            had.'</p>
            <p><b>Note:</b> Resize the browser window to
            see how the value "justify" works.</p>
            </body>
            </html>
RESULT
<!DOCTYPE html>
             <html>
             <head>
             <style>
             h1 {text-decoration:overline;}
             h2 {text-decoration:line-through;}
             h3 {text-decoration:underline;}
             h4 {text-decoration:blink;}
Text         </style>
             </head>
decoration   <body>
             <h1>This is heading 1</h1>
             <h2>This is heading 2</h2>
             <h3>This is heading 3</h3>
             <h4>This is heading 4</h4>
             <p><b>Note:</b> The "blink" value is not
             supported in IE, Chrome, or Safari.</p>
             </body>

             </html>
Result
<!DOCTYPE html>
                 <html>
                 <head>
                 <style>
                 p.uppercase {text-transform:uppercase;}
Text
                 p.lowercase {text-transform:lowercase;}
Transformation   p.capitalize {text-transform:capitalize;}
                 </style>
                 </head>

                 <body>
                 <p class="uppercase">This is some text.</p>
                 <p class="lowercase">This is some text.</p>
                 <p class="capitalize">This is some text.</p>
                 </body>
                 </html>
Result
<!DOCTYPE html>
              <html>
              <head>
              <style>
              p {text-indent:100px;}
              </style>
              </head>
Text          <body>

Indentation   <p>In my younger and more
              vulnerable years my father gave me
              some advice that I've been turning
              over in my mind ever since. 'Whenever
              you feel like criticizing anyone,' he told
              me, 'just remember that all the people
              in this world haven't had the
              advantages that you've had.'</p>

              </body>
              </html>
Result
<!DOCTYPE html>
          <html>
          <head>
          <style>
          h1 {letter-spacing:2px;}
          h2 {letter-spacing:-3px;}
TEXT      </style>
SPACING   </head>

          <body>
          <h1>This is heading 1</h1>
          <h2>This is heading 2</h2>
          </body>
          </html>
Result
<!DOCTYPE html>
          <html>
          <head>
          <style>
Word      p
          {
Spacing   word-spacing:30px;
          }
          </style>
          </head>
          <body>

          <p>
          This is some text. This is some text.
          </p>

          </body>
          </html>
Result
MARGIN PROPERTIES

The margin shorthand property sets all the margin
properties in one declaration. This property can have
from one to four values.
    Value   Description

    auto    The browser calculates a margin
    length Specifies a margin in px, pt, cm, etc. Default value
           is 0px
    %       Specifies a margin in percent of the width of the
            containing element
    inherit Specifies that the margin should be inherited from
            the parent element
Margin Properties


• Margin Bottom
• Margin Left
• Margin Right
• Margin Top
<!DOCTYPE html>
         <html>
         <head>
         <style>
         p.ex1 {margin-bottom:2cm}
         </style>

MARGIN   </head>


BOTTOM   <body>

         <p>A paragraph with no margins
         specified.</p>
         <p class="ex1">A paragraph with a 2cm
         bottom margin.</p>
         <p>A paragraph with no margins
         specified.</p>

         </body>
         </html>
MARGIN
BOTTOM
<!DOCTYPE html>
         <html>
         <head>
         <style>
         p.ex1 {margin-left:2cm;}
         </style>
         </head>
MARGIN   <body>
 LEFT    <p>A paragraph with no margins
         specified.</p>
         <p class="ex1">A paragraph with a 2cm
         left margin.</p>
         <p>A paragraph with no margins
         specified.</p>

         </body>
         </html>
MARGIN
 LEFT
<!DOCTYPE html>
         <html>
         <head>
         <style>
         p.ex1 {margin-right:4cm}
         </style>
         </head>
MARGIN
         <body>
 RIGHT
         <p>A paragraph with no margins specified.
         A paragraph with no margins specified. A
         paragraph with no margins specified.</p>
         <p class="ex1">A paragraph with a 4cm
         right margin. A paragraph with a 4cm right
         margin. A paragraph with a 4cm right
         margin.</p>

         </body>
         </html>
MARGIN
 RIGHT
<!DOCTYPE html>
         <html>
         <head>
         <style>
         p.ex1 {margin-top:2cm;}
         </style>
         </head>

MARGIN   <body>

 TOP     <p>A paragraph with no margins
         specified.</p>
         <p class="ex1">A paragraph with a
         2cm top margin.</p>
         <p>A paragraph with no margins
         specified.</p>

         </body>
         </html>
MARGIN
 TOP

Contenu connexe

Tendances (20)

Web fundamental concept and tags
Web fundamental concept and tags Web fundamental concept and tags
Web fundamental concept and tags
 
Upstate CSCI 450 WebDev Chapter 2
Upstate CSCI 450 WebDev Chapter 2Upstate CSCI 450 WebDev Chapter 2
Upstate CSCI 450 WebDev Chapter 2
 
Html tutorials
Html tutorialsHtml tutorials
Html tutorials
 
Html
HtmlHtml
Html
 
HTML
HTMLHTML
HTML
 
Computer application html
Computer application htmlComputer application html
Computer application html
 
Basic HTML
Basic HTMLBasic HTML
Basic HTML
 
Beginning html
Beginning  htmlBeginning  html
Beginning html
 
HTML Text formatting tags
HTML Text formatting tagsHTML Text formatting tags
HTML Text formatting tags
 
Fwd week2 tw-20120903
Fwd week2 tw-20120903Fwd week2 tw-20120903
Fwd week2 tw-20120903
 
Basics Of Html
Basics Of HtmlBasics Of Html
Basics Of Html
 
Introduction to Html by Ankitkumar Singh
Introduction to Html by Ankitkumar SinghIntroduction to Html by Ankitkumar Singh
Introduction to Html by Ankitkumar Singh
 
Basic html
Basic htmlBasic html
Basic html
 
HTML Lesson 1
HTML Lesson 1HTML Lesson 1
HTML Lesson 1
 
Html Simple Tutorial
Html Simple TutorialHtml Simple Tutorial
Html Simple Tutorial
 
Creating a webpage in html
Creating a webpage in htmlCreating a webpage in html
Creating a webpage in html
 
Css 1
Css 1Css 1
Css 1
 
Div Tag Tutorial
Div Tag TutorialDiv Tag Tutorial
Div Tag Tutorial
 
HTML_Slideshow1
HTML_Slideshow1HTML_Slideshow1
HTML_Slideshow1
 
Html 1
Html 1Html 1
Html 1
 

En vedette

5 Tips for Becoming a Better Listener
5 Tips for Becoming a Better Listener5 Tips for Becoming a Better Listener
5 Tips for Becoming a Better ListenerGretchen Rubin
 
Bm ayush gutgutia pgp30368_vaseline
Bm ayush gutgutia pgp30368_vaselineBm ayush gutgutia pgp30368_vaseline
Bm ayush gutgutia pgp30368_vaselineSameer Mathur
 
How to pretend you know soccer
How to pretend you know soccerHow to pretend you know soccer
How to pretend you know soccerDevesh Khanal
 
12 Things You Should Never Say During Your Presentation
12 Things You Should Never Say During Your Presentation12 Things You Should Never Say During Your Presentation
12 Things You Should Never Say During Your PresentationSketchBubble
 
Presentation1.pptx, radiological imaging of congenital anomalies of the spine...
Presentation1.pptx, radiological imaging of congenital anomalies of the spine...Presentation1.pptx, radiological imaging of congenital anomalies of the spine...
Presentation1.pptx, radiological imaging of congenital anomalies of the spine...Abdellah Nazeer
 
Life Saving Stretches for Desk Job workers.
Life Saving Stretches for Desk Job workers.Life Saving Stretches for Desk Job workers.
Life Saving Stretches for Desk Job workers.Ankur Tandon
 
What Should I Do Before, During And After An Earthquake
What Should I Do Before, During And After An EarthquakeWhat Should I Do Before, During And After An Earthquake
What Should I Do Before, During And After An EarthquakeEssayWriter.Co.Uk
 
How to Stop Binge Eating and Food Addiction: The Mind-Behavior Connection
How to Stop Binge Eating and Food Addiction: The Mind-Behavior ConnectionHow to Stop Binge Eating and Food Addiction: The Mind-Behavior Connection
How to Stop Binge Eating and Food Addiction: The Mind-Behavior ConnectionChelsea O'Brien
 
What is Binge Eating Disorder
What is Binge Eating DisorderWhat is Binge Eating Disorder
What is Binge Eating DisorderChelsea O'Brien
 
Selfies are dead. Long live the user generated content!
Selfies are dead. Long live the user generated content!Selfies are dead. Long live the user generated content!
Selfies are dead. Long live the user generated content!Socialab
 
Why Are You Attracted to That Person?
Why Are You Attracted to That Person? Why Are You Attracted to That Person?
Why Are You Attracted to That Person? SlideShop.com
 
SlideShare Experts - 7 Experts Reveal Their Presentation Design Secrets
SlideShare Experts - 7 Experts Reveal Their Presentation Design SecretsSlideShare Experts - 7 Experts Reveal Their Presentation Design Secrets
SlideShare Experts - 7 Experts Reveal Their Presentation Design SecretsEugene Cheng
 
Poor Self-esteem: Just Beat It!
Poor Self-esteem: Just Beat It!Poor Self-esteem: Just Beat It!
Poor Self-esteem: Just Beat It!SlideShop.com
 

En vedette (19)

5 Tips for Becoming a Better Listener
5 Tips for Becoming a Better Listener5 Tips for Becoming a Better Listener
5 Tips for Becoming a Better Listener
 
C++ sikhiyei urdu
C++ sikhiyei urdu C++ sikhiyei urdu
C++ sikhiyei urdu
 
Bm ayush gutgutia pgp30368_vaseline
Bm ayush gutgutia pgp30368_vaselineBm ayush gutgutia pgp30368_vaseline
Bm ayush gutgutia pgp30368_vaseline
 
How to pretend you know soccer
How to pretend you know soccerHow to pretend you know soccer
How to pretend you know soccer
 
12 Things You Should Never Say During Your Presentation
12 Things You Should Never Say During Your Presentation12 Things You Should Never Say During Your Presentation
12 Things You Should Never Say During Your Presentation
 
Presentation1.pptx, radiological imaging of congenital anomalies of the spine...
Presentation1.pptx, radiological imaging of congenital anomalies of the spine...Presentation1.pptx, radiological imaging of congenital anomalies of the spine...
Presentation1.pptx, radiological imaging of congenital anomalies of the spine...
 
Life Saving Stretches for Desk Job workers.
Life Saving Stretches for Desk Job workers.Life Saving Stretches for Desk Job workers.
Life Saving Stretches for Desk Job workers.
 
What Should I Do Before, During And After An Earthquake
What Should I Do Before, During And After An EarthquakeWhat Should I Do Before, During And After An Earthquake
What Should I Do Before, During And After An Earthquake
 
How to Stop Binge Eating and Food Addiction: The Mind-Behavior Connection
How to Stop Binge Eating and Food Addiction: The Mind-Behavior ConnectionHow to Stop Binge Eating and Food Addiction: The Mind-Behavior Connection
How to Stop Binge Eating and Food Addiction: The Mind-Behavior Connection
 
Brain Hacks
Brain HacksBrain Hacks
Brain Hacks
 
1st Year English Book Notes (HSSC-I)
1st Year English Book Notes (HSSC-I)1st Year English Book Notes (HSSC-I)
1st Year English Book Notes (HSSC-I)
 
What is Binge Eating Disorder
What is Binge Eating DisorderWhat is Binge Eating Disorder
What is Binge Eating Disorder
 
Deliver An Amazingly Boring Presentation
Deliver An Amazingly Boring PresentationDeliver An Amazingly Boring Presentation
Deliver An Amazingly Boring Presentation
 
Selfies are dead. Long live the user generated content!
Selfies are dead. Long live the user generated content!Selfies are dead. Long live the user generated content!
Selfies are dead. Long live the user generated content!
 
How We Caffeinate
How We CaffeinateHow We Caffeinate
How We Caffeinate
 
How to Manage Your Anxiety When Presenting
How to Manage Your Anxiety When PresentingHow to Manage Your Anxiety When Presenting
How to Manage Your Anxiety When Presenting
 
Why Are You Attracted to That Person?
Why Are You Attracted to That Person? Why Are You Attracted to That Person?
Why Are You Attracted to That Person?
 
SlideShare Experts - 7 Experts Reveal Their Presentation Design Secrets
SlideShare Experts - 7 Experts Reveal Their Presentation Design SecretsSlideShare Experts - 7 Experts Reveal Their Presentation Design Secrets
SlideShare Experts - 7 Experts Reveal Their Presentation Design Secrets
 
Poor Self-esteem: Just Beat It!
Poor Self-esteem: Just Beat It!Poor Self-esteem: Just Beat It!
Poor Self-esteem: Just Beat It!
 

Similaire à Intro to WebSite Development ( Text properties and margins )

BEAUTIFUL CSS PRESENTATION EASY TO MADE
BEAUTIFUL CSS PRESENTATION EASY TO MADEBEAUTIFUL CSS PRESENTATION EASY TO MADE
BEAUTIFUL CSS PRESENTATION EASY TO MADErana usman
 
VAIBHAV JAIN WEB TECHNOLOGY.pptx
VAIBHAV JAIN WEB TECHNOLOGY.pptxVAIBHAV JAIN WEB TECHNOLOGY.pptx
VAIBHAV JAIN WEB TECHNOLOGY.pptxVAIBHAV481101
 
Css, CaseCading Style Sheet
Css, CaseCading Style SheetCss, CaseCading Style Sheet
Css, CaseCading Style SheetIshaq Shinwari
 
SDP_HTML.pptx
SDP_HTML.pptxSDP_HTML.pptx
SDP_HTML.pptxVani011
 
Html basics-auro skills
Html basics-auro skillsHtml basics-auro skills
Html basics-auro skillsBoneyGawande
 
Introduction To HTML
Introduction To HTMLIntroduction To HTML
Introduction To HTMLMehul Patel
 
Presentation of Hyper Text Markup Language
Presentation of Hyper Text Markup LanguagePresentation of Hyper Text Markup Language
Presentation of Hyper Text Markup LanguageJohnLagman3
 
html-150424090224-conversion-gate0.2.pdf
html-150424090224-conversion-gate0.2.pdfhtml-150424090224-conversion-gate0.2.pdf
html-150424090224-conversion-gate0.2.pdfJohnLagman3
 
HTML, CSS, JavaScript for beginners
HTML, CSS, JavaScript for beginnersHTML, CSS, JavaScript for beginners
HTML, CSS, JavaScript for beginnersPrakritiDhang
 
What is HTML - An Introduction to HTML (Hypertext Markup Language)
What is HTML - An Introduction to HTML (Hypertext Markup Language)What is HTML - An Introduction to HTML (Hypertext Markup Language)
What is HTML - An Introduction to HTML (Hypertext Markup Language)Ahsan Rahim
 
utsav1.pptxjxnclbshjdcn;kJDucbnsD>NVzljfbmlzl
utsav1.pptxjxnclbshjdcn;kJDucbnsD>NVzljfbmlzlutsav1.pptxjxnclbshjdcn;kJDucbnsD>NVzljfbmlzl
utsav1.pptxjxnclbshjdcn;kJDucbnsD>NVzljfbmlzlutsavsingh265
 

Similaire à Intro to WebSite Development ( Text properties and margins ) (20)

BEAUTIFUL CSS PRESENTATION EASY TO MADE
BEAUTIFUL CSS PRESENTATION EASY TO MADEBEAUTIFUL CSS PRESENTATION EASY TO MADE
BEAUTIFUL CSS PRESENTATION EASY TO MADE
 
Cascade.ss
Cascade.ssCascade.ss
Cascade.ss
 
VAIBHAV JAIN WEB TECHNOLOGY.pptx
VAIBHAV JAIN WEB TECHNOLOGY.pptxVAIBHAV JAIN WEB TECHNOLOGY.pptx
VAIBHAV JAIN WEB TECHNOLOGY.pptx
 
Learning html & dhtml
Learning html & dhtmlLearning html & dhtml
Learning html & dhtml
 
Css, CaseCading Style Sheet
Css, CaseCading Style SheetCss, CaseCading Style Sheet
Css, CaseCading Style Sheet
 
HTML
HTMLHTML
HTML
 
Html (1)
Html (1)Html (1)
Html (1)
 
Html
HtmlHtml
Html
 
SDP_HTML.pptx
SDP_HTML.pptxSDP_HTML.pptx
SDP_HTML.pptx
 
TagsL1.pptx
TagsL1.pptxTagsL1.pptx
TagsL1.pptx
 
Html basics-auro skills
Html basics-auro skillsHtml basics-auro skills
Html basics-auro skills
 
LEARN HTML IN A DAY
LEARN HTML IN A DAYLEARN HTML IN A DAY
LEARN HTML IN A DAY
 
Html
HtmlHtml
Html
 
Introduction To HTML
Introduction To HTMLIntroduction To HTML
Introduction To HTML
 
Presentation of Hyper Text Markup Language
Presentation of Hyper Text Markup LanguagePresentation of Hyper Text Markup Language
Presentation of Hyper Text Markup Language
 
html-150424090224-conversion-gate0.2.pdf
html-150424090224-conversion-gate0.2.pdfhtml-150424090224-conversion-gate0.2.pdf
html-150424090224-conversion-gate0.2.pdf
 
HTML, CSS, JavaScript for beginners
HTML, CSS, JavaScript for beginnersHTML, CSS, JavaScript for beginners
HTML, CSS, JavaScript for beginners
 
HTML.ppt
HTML.pptHTML.ppt
HTML.ppt
 
What is HTML - An Introduction to HTML (Hypertext Markup Language)
What is HTML - An Introduction to HTML (Hypertext Markup Language)What is HTML - An Introduction to HTML (Hypertext Markup Language)
What is HTML - An Introduction to HTML (Hypertext Markup Language)
 
utsav1.pptxjxnclbshjdcn;kJDucbnsD>NVzljfbmlzl
utsav1.pptxjxnclbshjdcn;kJDucbnsD>NVzljfbmlzlutsav1.pptxjxnclbshjdcn;kJDucbnsD>NVzljfbmlzl
utsav1.pptxjxnclbshjdcn;kJDucbnsD>NVzljfbmlzl
 

Dernier

How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
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 Takeoffsammart93
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontologyjohnbeverley2021
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...apidays
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Victor Rentea
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024The Digital Insurer
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Victor Rentea
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelDeepika Singh
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
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 FresherRemote DBA Services
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...apidays
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native ApplicationsWSO2
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdfSandro Moreira
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Orbitshub
 

Dernier (20)

How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
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
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
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
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 

Intro to WebSite Development ( Text properties and margins )

  • 1.
  • 2. PRESENTATION MEMBERS ABDUL BASIT KAYANI B-16729 KALEEM WAHEED B -16857
  • 3. TOPIC • TEXT Properties • Margin Properties
  • 4. TEXT PROPERTIES • Text Color. • Text Alignment. • Text decoration. • Text Transformation. • Text Indentation. • Text Spacing.
  • 5. TEXT COLOR The color property is used to set the color of the text. With CSS, a color is most often specified by: • a HEX value - like "#ff0000" • an RGB value - like "rgb(255,0,0)" • a color name - like "red"
  • 6. <!DOCTYPE html> <html> <head> <style> body {color:red;} h1 {color:#00ff00;} p.ex {color:rgb(0,0,255);} </style> TEXT </head> COLOR <body> <h1>This is heading 1</h1> <p>This is an ordinary paragraph. Notice that this text is red. The default text-color for a page is defined in the body selector.</p> <p class="ex">This is a paragraph with class="ex". This text is blue.</p> </body> </html>
  • 8. <html> <head> <style> h1 {text-align:center;} p.date {text-align:right;} p.main {text-align:justify;} Text </style> </head> Alignment <body> <h1>CSS text-align Example</h1> <p class="date">May, 2009</p> <p class="main">In my younger and more vulnerable years my father gave me some advice that I've been turning over in my mind ever since. 'Whenever you feel like criticizing anyone,' he told me, 'just remember that all the people in this world haven't had the advantages that you've had.'</p> <p><b>Note:</b> Resize the browser window to see how the value "justify" works.</p> </body> </html>
  • 10. <!DOCTYPE html> <html> <head> <style> h1 {text-decoration:overline;} h2 {text-decoration:line-through;} h3 {text-decoration:underline;} h4 {text-decoration:blink;} Text </style> </head> decoration <body> <h1>This is heading 1</h1> <h2>This is heading 2</h2> <h3>This is heading 3</h3> <h4>This is heading 4</h4> <p><b>Note:</b> The "blink" value is not supported in IE, Chrome, or Safari.</p> </body> </html>
  • 12. <!DOCTYPE html> <html> <head> <style> p.uppercase {text-transform:uppercase;} Text p.lowercase {text-transform:lowercase;} Transformation p.capitalize {text-transform:capitalize;} </style> </head> <body> <p class="uppercase">This is some text.</p> <p class="lowercase">This is some text.</p> <p class="capitalize">This is some text.</p> </body> </html>
  • 14. <!DOCTYPE html> <html> <head> <style> p {text-indent:100px;} </style> </head> Text <body> Indentation <p>In my younger and more vulnerable years my father gave me some advice that I've been turning over in my mind ever since. 'Whenever you feel like criticizing anyone,' he told me, 'just remember that all the people in this world haven't had the advantages that you've had.'</p> </body> </html>
  • 16. <!DOCTYPE html> <html> <head> <style> h1 {letter-spacing:2px;} h2 {letter-spacing:-3px;} TEXT </style> SPACING </head> <body> <h1>This is heading 1</h1> <h2>This is heading 2</h2> </body> </html>
  • 18. <!DOCTYPE html> <html> <head> <style> Word p { Spacing word-spacing:30px; } </style> </head> <body> <p> This is some text. This is some text. </p> </body> </html>
  • 20. MARGIN PROPERTIES The margin shorthand property sets all the margin properties in one declaration. This property can have from one to four values. Value Description auto The browser calculates a margin length Specifies a margin in px, pt, cm, etc. Default value is 0px % Specifies a margin in percent of the width of the containing element inherit Specifies that the margin should be inherited from the parent element
  • 21. Margin Properties • Margin Bottom • Margin Left • Margin Right • Margin Top
  • 22. <!DOCTYPE html> <html> <head> <style> p.ex1 {margin-bottom:2cm} </style> MARGIN </head> BOTTOM <body> <p>A paragraph with no margins specified.</p> <p class="ex1">A paragraph with a 2cm bottom margin.</p> <p>A paragraph with no margins specified.</p> </body> </html>
  • 24. <!DOCTYPE html> <html> <head> <style> p.ex1 {margin-left:2cm;} </style> </head> MARGIN <body> LEFT <p>A paragraph with no margins specified.</p> <p class="ex1">A paragraph with a 2cm left margin.</p> <p>A paragraph with no margins specified.</p> </body> </html>
  • 26. <!DOCTYPE html> <html> <head> <style> p.ex1 {margin-right:4cm} </style> </head> MARGIN <body> RIGHT <p>A paragraph with no margins specified. A paragraph with no margins specified. A paragraph with no margins specified.</p> <p class="ex1">A paragraph with a 4cm right margin. A paragraph with a 4cm right margin. A paragraph with a 4cm right margin.</p> </body> </html>
  • 28. <!DOCTYPE html> <html> <head> <style> p.ex1 {margin-top:2cm;} </style> </head> MARGIN <body> TOP <p>A paragraph with no margins specified.</p> <p class="ex1">A paragraph with a 2cm top margin.</p> <p>A paragraph with no margins specified.</p> </body> </html>