SlideShare uma empresa Scribd logo
1 de 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

Mais conteúdo relacionado

Mais procurados (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
 

Destaque

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
 

Destaque (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!
 

Semelhante a 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
 

Semelhante a 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
 

Último

Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfLoriGlavin3
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxBkGupta21
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxLoriGlavin3
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningLars Bell
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfPrecisely
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxLoriGlavin3
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 

Último (20)

Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptx
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 

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>