spider22 Posted November 21, 2007 Share Posted November 21, 2007 Hello, Can you please tell me how to apply css style sheet to php table? regards, Quote Link to comment https://forums.phpfreaks.com/topic/78238-how-to-apply-css-to-php-table/ Share on other sites More sharing options...
LemonInflux Posted November 21, 2007 Share Posted November 21, 2007 eh? You mean apply css to a table created by php? <link rel="stylesheet" type="text/css" href="style.css"> is put in the header (change style.css to your stylesheet name) <?php // PHP table echo '<table class="myClassName"></table>'; ?> Quote Link to comment https://forums.phpfreaks.com/topic/78238-how-to-apply-css-to-php-table/#findComment-395924 Share on other sites More sharing options...
spider22 Posted November 21, 2007 Author Share Posted November 21, 2007 How to put this in header? like this ... <head> <link rel="stylesheet" type="text/css" href="style.css"> </head> <?php //code ?> Quote Link to comment https://forums.phpfreaks.com/topic/78238-how-to-apply-css-to-php-table/#findComment-395953 Share on other sites More sharing options...
revraz Posted November 21, 2007 Share Posted November 21, 2007 Just use HTML and do it, it's no different. Quote Link to comment https://forums.phpfreaks.com/topic/78238-how-to-apply-css-to-php-table/#findComment-395985 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.