www.webdeveloper.com
Results 1 to 4 of 4

Thread: xml and css help

  1. #1
    Join Date
    Mar 2003
    Posts
    10

    xml and css help

    OK, check this out:
    Write an XML file that will have the following sections: (Resume). The file must follow the following css file that goes with the xml file.

    object
    {display:block;margin-top:12pt; font-size:10pt}

    title
    {display:block; font-size:12ptfont-weight:bold;font-style:italic}

    item
    {display:block;margin-left:15pt; font-weight:bold}

    year
    {display:block;margin-left:15pt}

    call the file resume.css

    [1]. Personal: name, age, mail address, phone #, major, rank, and email.
    [2]. Education: name of high school, current College of Business
    [3]. Experience
    [4]. Honors received
    [5]. References
    [6]. Publications
    [7]. Major Accomplishments
    [8]. Save the file to your floppy disk and call it resume.xml



    Here is my question: I am not sure how the .css file's object, title, item, year.....relates to the other numbered[1-7] items on the xml. I have each css and xml written allready, but I am not sure what the "object" in the css goes with in the xml file?

  2. #2
    Join Date
    Dec 2002
    Location
    Calgary, Canada
    Posts
    2,653
    to me it seems there is some part of the code is missing...

  3. #3
    Join Date
    Mar 2003
    Posts
    10
    This first part before my question is the assignment my teacher gave us. I just don't understand how the css file interacts with the xml file.

    Here is a page that helped me with this xml and css stuff.

  4. #4
    Join Date
    Nov 2002
    Location
    XYZZY - UK
    Posts
    1,760
    Basically by using: <?xml-stylesheet type="text/css" href="yourstylesheet.css"?>

    The object is the main paragraph text; years are obviously date; title is for headings and items are the grades.
    Last edited by Robert Wellock; 05-02-2003 at 09:46 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles