Jump to content

How To Style Php Output?


pab1953
 Share

Recommended Posts

I posted a message earlier about working an AJAX RSS reader found on W3: http://www.w3schools.com/php/php_ajax_rss_reader.aspI asked how I could style the output and was told "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."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

Style php output the same as you would for html, by using class and id's.All the php code does is output the html for you, so treat the php output as you would an html file and use CSS to style it.The "hooks" are the classes and ID's used for styling.

Edited by jlhaslip
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...