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" 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;
}