kentonator
Technical User
Hey guys, Im working on a project and its a list of exercises in XML and then its formated to look nice with CSS is there anyway I can add an image of each lift after the description? I would really appreciate some help. Here is what I have so far,
/////////
XML
/////////
<?xml version="1.0"?>
<?xml-stylesheet href="rss.css" type="text/css"?>
<rss version="0.91" xmlns:xhtml=" <channel>
<title> Kents Lifts: </title>
<description>A list of exercises and the muscles that the exercise works</description>
<item>
<title>Bench Press</title>
<description>Main Muscle: Chest</description>
<item>Other muscles worked: Tricep,
<xhtml:script src="rss.js" type="text/javascript"/>
</channel>
</rss>
///////
CSS
///////
rss
{
display:block;
margin:10px;
}
channel
{
display:block;
height:300px;
width:280px;
border:1px solid #000;
overflow:auto;
background-color:#eee;
font: 12px verdana;
}
item
{
display: block;
padding:10px;
margin-bottom:10px;
border-top:1px solid #ccc;
border-bottom:1px solid #ccc;
background-color:#fff;
}
channel>title, channel>description
{
display: block;
margin-left:10px;
margin-top:10px;
background-color:#eee;
font-weight:bold;
}
channel>title
{
font-size:16px;
}
channel>description
{
font-size:10px;
margin-bottom:10px;
}
item>title
{
font-weight:bold;
}
item>link, channel>link, channel>language
{
display: none;
}
item>image1{
height: 35px;
background-image: url("bench.jpg");
background-repeat: no-repeat;
}
/////////
XML
/////////
<?xml version="1.0"?>
<?xml-stylesheet href="rss.css" type="text/css"?>
<rss version="0.91" xmlns:xhtml=" <channel>
<title> Kents Lifts: </title>
<description>A list of exercises and the muscles that the exercise works</description>
<item>
<title>Bench Press</title>
<description>Main Muscle: Chest</description>
<item>Other muscles worked: Tricep,
<xhtml:script src="rss.js" type="text/javascript"/>
</channel>
</rss>
///////
CSS
///////
rss
{
display:block;
margin:10px;
}
channel
{
display:block;
height:300px;
width:280px;
border:1px solid #000;
overflow:auto;
background-color:#eee;
font: 12px verdana;
}
item
{
display: block;
padding:10px;
margin-bottom:10px;
border-top:1px solid #ccc;
border-bottom:1px solid #ccc;
background-color:#fff;
}
channel>title, channel>description
{
display: block;
margin-left:10px;
margin-top:10px;
background-color:#eee;
font-weight:bold;
}
channel>title
{
font-size:16px;
}
channel>description
{
font-size:10px;
margin-bottom:10px;
}
item>title
{
font-weight:bold;
}
item>link, channel>link, channel>language
{
display: none;
}
item>image1{
height: 35px;
background-image: url("bench.jpg");
background-repeat: no-repeat;
}