471,598 Members | 1,313 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,598 software developers and data experts.

a css challenge: how to style rss-feeds...

hi,

is there a way to style rss-feeds so you can insert spacing BETWEEN
them? for example here..

http://www.mayacove.com/news.html

it seems impossible to style so you can insert spacing in between the
headlines.. is there a way around this??

code for this is javascript code, thus:

<script language="JavaScript"
src="http://itde.vccs.edu/rss2js/feed2js.php?src=http%3A%2F%2Fwww.nytimes.com%2Fser vices%2Fxml%2Frss%2Fnyt%2FAmericas.xml&chan=n&num= 3&desc=3&date=y&targ=n"
type="text/javascript"></script>
thank you..

Sep 23 '07 #1
2 2091
maya wrote:
>
is there a way to style rss-feeds so you can insert spacing BETWEEN
them? for example here..

http://www.mayacove.com/news.html

it seems impossible to style so you can insert spacing in between the
headlines.. is there a way around this??
Not *that* impossible. Add to the CSS:

li.rss_item { margin-bottom:1em; }
a.rss_item { display:block; margin-top:.5em; }

First line above affects spacing between feed items.
Second line above provides spacing between headline and its lede,
posting info, etc.
Change the numeric values to taste.
--
John
Pondering the value of the UIP: http://improve-usenet.org/
Sep 23 '07 #2
John Hosking wrote:
maya wrote:
>>
is there a way to style rss-feeds so you can insert spacing BETWEEN
them? for example here..

http://www.mayacove.com/news.html

it seems impossible to style so you can insert spacing in between the
headlines.. is there a way around this??

Not *that* impossible. Add to the CSS:

li.rss_item { margin-bottom:1em; }
a.rss_item { display:block; margin-top:.5em; }

First line above affects spacing between feed items.
Second line above provides spacing between headline and its lede,
posting info, etc.
Change the numeric values to taste.

very interesting.. googled 'css rss_item' and found this, among others..
http://www.globalissa.net/help/feed_css.php
and this..
http://www.webmaster-talk.com/css-fo...css-hover.html

thank you....
Sep 23 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by clintonG | last post: by
reply views Thread by Andy Dingley | last post: by
15 posts views Thread by SamMan | last post: by
reply views Thread by wannieb | last post: by
4 posts views Thread by sck10 | last post: by
3 posts views Thread by Thierry | last post: by
2 posts views Thread by XIAOLAOHU | last post: by
reply views Thread by Anwar ali | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.