pab1953 Posted May 28, 2009 Share Posted May 28, 2009 I'm working with the AJAX RSS Reader found here: http://www.w3schools.com/php/php_ajax_rss_reader.aspQuestions:- How do I style the output (I need to display the output in different font, narrower width, etc.)?- How do I set the number of news items returned? When I test the code, I just get three stories showing but when I examine the source there are many more stories listed.Thanks. Link to comment Share on other sites More sharing options...
jlhaslip Posted May 28, 2009 Share Posted May 28, 2009 to change the number of articles displayed, alter the digit '2' in this line: for ($i=0; $i<=2; $i++) it is the loop control character.To style the output, you need to add CSS hooks (classes and/or id's) to the html output found in the php file and a style sheet. Link to comment Share on other sites More sharing options...
pab1953 Posted May 28, 2009 Author Share Posted May 28, 2009 to change the number of articles displayed, alter the digit '2' in this line:for ($i=0; $i<=2; $i++) it is the loop control character.To style the output, you need to add CSS hooks (classes and/or id's) to the html output found in the php file and a style sheet. Thanks for your response.I know CSS and HTML but little Javascript and PHP. Where in the PHP file do I attach "CSS hooks" and just what _are_ CSS hooks?Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.