RSS-Feeds werden normalerweise mit RSS-Readern gelesen, jedoch macht es ab und zu auch Sinn die RSS-Feeds im Layout der jeweiligen Seite zu formatieren.
Hier ein Beispiel wie so etwas geht, zunächst muss man in die Datei welche das RSS-Feed erzeugt das StyleSheet einbinden:
<?xml-stylesheet type="text/css" href="http://www.domaine.de/rss.css" ?>
Die CSS-Datei kann z.B. so aussehen:
rss {
display: block;
font-family: verdana, arial;
font-size:12px;
}
rss_title {
color: #307ea3;
font-size:18px;
}
title {
display: block;
margin: 5px;
padding: 2px;
color: #C7D800;
font-size:18px;
font-weight:bolder;
}
item title {
display: block;
margin: 5px;
padding: 2px;
padding-left:15px;
color: #307ea3;
font-size:13px;
font-weight:bolder;
background:url("http://www.dot-net-jobs.de/images/bullet_quadrat.gif") no-repeat 1px 5px;
}
description {
display: block;
margin: 5px;
padding: 2px;
}
item {
display: block;
padding: 2px 10px 2px 30px;
color:#555;
margin-top:10px;
}
pubDate {
color: silver;
font-size:11px;
padding: 5px;
margin-left: 5px;
}
/* elemente verbergen */
link {
display: none;
}
Das Beispiel kann man hier abrufen: http://www.dot-net-jobs.de/rss-feed.aspx