Servers-for-Hackers / serversforhackers-newsletter

Servers for Hackers - Web
11 stars 5 forks source link

RSS Feed css styles #4

Open fideloper opened 10 years ago

fideloper commented 10 years ago

See: http://webdesign.about.com/od/rss/a/style-rss-feeds-with-css.htm

Lusitaniae commented 10 years ago

I've tried attaching the current css file but no good http://alojamentoparasites.com/feed.xml

Continuing from the emails people saying rss readers offer very limited styling options, if they do at all. (2008) http://stackoverflow.com/questions/118685/how-can-i-apply-my-css-stylesheet-to-an-rss-feed

the element selection might have to be done differently, I found this rss: http://www.petefreitag.com/rss/

the rss entries are styled to be human readable, although it's read the same way by rss readers w/o external styling it seems.

fideloper commented 10 years ago

yeah looks like it would need it's own CSS stylesheet - check out the elements styled there:

rss {
    display: block;
    font-family: verdana, arial;
}

title {
    display: block;
    margin: 5px;
    padding: 2px;
    color: gray;
    border-bottom: 1px solid silver;
}

link {
    display: block;
    font-size: small;
    padding-left: 10px;
}
item {
    display: block;
    padding: 2px 30px 2px 30px;
}

docs {
    display: block;
    background-color: #ffffe6;
    margin: 20px;
    text-align: center;
    padding: 5px;
    color: #7f7f7f;
    border: 1px solid silver;
}

pubDate {
    color: silver;
    font-size: small;
    padding: 5px;
    margin-left: 5px;
}

/* all hidden elements */
language, lastBuildDate, ttl, guid, category, description {
    display: none;
}