Or
Once you have built the code for your lost and found pet listings, you can customise the way the listings generated look by applying a CSS style sheet. Each part of the feed has an identifier, allowing you to add CSS formatting styles to the box containing the feeds, the title, the item display, and the date posting text.
You will need to incorporate the CSS code or linkage in your own HTML files; there are two ways you can do this:
<HEAD>...</HEAD>
<style>...</style>
<style type="text/css" media="all"> <!-- this is where you place your CSS code --> </style>
style
<link rel="stylesheet" href="style/lostfoundpetlistings.css" media="all">
href=
The following css classes can be used to style your feed.
rss-title a:link, rss-title a:hover
<ul>...</ul>
<li>...</li>
Here is an example of an implementation of the CSS and Javascript code and a preview of the resulting listings display. This particular example features CSS code directly in the page and the Javascript code produces 3 lost dog listings from Dublin.
<!-- First the listings sample CSS code ehich you can edit --> <style type="text/css" media="all"> .rss-box { margin: 0 auto; padding: 4px 8px; width:210px; background-color: #fafafa; font-size:11px; border:2px solid #66ccff; } .rss-title, rss-title a { font-family: arial, helvetcia, sans-serif; font-size: 14px; font-weight:bold; margin: 5px 0; padding: 0; letter-spacing: 1px; text-align:center; } .rss-title a:link, .rss-title a:visited, .rss-title a:active, .rss-title a:hover { color:66ccff; text-decoration:none; } .rss-items { margin:0; padding:0; } .rss-item { font-family: arial, helvetcia, sans-serif; font-size: 11px; margin-left:0px; list-style:none; text-align:center; padding-bottom:10px; color:#000; } .rss-item img { border:2px solid #66ccff; } .rss-item a:link, .rss-item a:visited, .rss-item a:active { text-decoration : none; color: #99cc00; font-weight:bold; font-size:12px; } </style> <!-- Next the listings Javascript you generate --> <script language="JavaScript" src="http://www.lostandfoundpets.ie/rss-sharer?src=http%3A%2F%2Fwww.lostandfoundpets.ie%2Frss%2Flost%2Fdublin%2Fdog%2F&chan=y&num=3&targ=y&html=a" type="text/javascript"></script> <noscript> <a href="http://www.lostandfoundpets.ie/search">Lost and Found Pets Ireland</a> </noscript>