Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Dec 2007
    Thanked 0 Times in 0 Posts

    weather.com rss feed question

    I am using weather.com's rss feed with rss2html. I've set the script to only output one feed item. I've removed the title, and time/date leaving only the item description which includes a small image of the type of weather plus the temperature. Is it possible to create a CSS style so that the text of that feed is aligned differently to the weather graphic included in that feed? It's alignment is default from the looks of it but id like to left align the text to the image so its starting at the top of the weather graphic. Can anyone give me an idea of how to do this or is it even possible to change the layout of only the description of an rss feed?


  • #2
    Senior Coder ahallicks's Avatar
    Join Date
    May 2006
    Lancaster, UK
    Thanked 57 Times in 55 Posts
    Hmmm... because RSS Feeds are actually XML formatted to display the feeds correctly you would need to create an XSL Stylesheet to accompany that feed so that you can apply style to it. However, I have not yet fiogured out how to get this to work myself. Try googling a few examples and explanations of using XSL to style XML and then apply it to the RSS Feeds and see what happens.
    "write it for FireFox then hack it for IE."
    Quote Originally Posted by Mhtml View Post
    Domains are like women - all the good ones are taken unless you want one from some foreign country.
    Reputation is your friend

    Development & SEO Tools


    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts