Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS CSS and XML image

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #23942
    JimS
    Member

    I am new to CSS and I can’t seem to get an image displayed. The xml is properly linked to the .css file, and the css entry is being processed ( I get the correct size and border background.) I do not have a web page to direct you to, I have both files locally in the same directory and bring it up in either IE or FF by double clicking on the .xml file.
    Please help.
    Thanks in advance – Jim

    XML

    <?xml version="1.0" encoding="UTF-8"?>
    <?xml-stylesheet type="text/css" href="jbook2.css"?>
    <book>
    <imgloc src="http://java.sun.com/docs/books/tutorial/images/DukeWave.gif&quot; alt="Test Image" />
    <title>Digital Typography</title>
    <author>Donald Knuth</author>
    </book>

    CSS

    imgloc {
    display: block;
    border: dotted;
    width: 100px;
    height: 100px;
    }

    book {
    display: block;
    margin: 0.5em;
    font-family: Arial, Helvetica, sans-serif;
    font-size:small;
    }

    title {
    display: block;
    margin: 0.5em;
    font-size: 1.5em;
    color: red;
    }

    author {
    display: block;
    margin: 0.5em;
    font-size: 1.5em;
    }

Viewing 1 post (of 1 total)
  • The forum ‘CSS’ is closed to new topics and replies.