X hits on this document

455 views

0 shares

1 downloads

0 comments

39 / 142

Rendering XML with cascading style sheets

  • C.

    Create a new, empty file in NotePad, and save it as ala.css.

  • D.

    In ala.css, list each XML element in ala.xml on a line by itself.

  • E.

    Assign each element a display selector with a value of block (ex. para { display: block; }).

  • F.

    Open ala.xml in your Web browser to check your progress.

  • G.

    Add a blank line between each of the letter's sections by adding a margin-bottom: 1em to each

section's selector (ex. para { display: block; margin-bottom: 1em; }).

  • H.

    Open ala.xml in your Web browser to check on your progress.

  • I.

    Change the display selector within the salutation so its sub-element is displayed as inline text,

not a block (ex. salutation { display: inline; } ).

    • J.

      Open ala.xml in your Web browser to check on your progress.

  • 2.

    Indent the paragraphs by adding text-indent: 2em; to the para element. The final result should look something like this:

31

Document info
Document views455
Page views461
Page last viewedFri Dec 09 07:59:22 UTC 2016
Pages142
Paragraphs3126
Words34660

Comments