Sunday 2 March 2008

css for rss, that I always use

put this command in rss/xml file:
<?xml-stylesheet href="rss.css" type="text/css"?>
======================

rss
{
margin:10px;
}

channel
{
display:block;
border:solid 1px #000;
overflow:auto;
height:300px;
width:280px;
background-color:#eee;
font: 12px verdana;
}

item
{
display: block;
//padding:10px;
background-color:#fff;
}

item>link
{
display:none;
}

channel>title, item>title
{
font:12px arial;
font-weight:bold;
font-size: 24px;
}

channel>title, channel>description, item>title
{
display: block;
}

No comments:

My photo
London, United Kingdom
twitter.com/zhengxin

Facebook & Twitter