skru09 Posted April 15, 2010 Share Posted April 15, 2010 Hi, I am trying to use a image class defined within a php page. I dont think im able to make use of it. Please find below the code i have written: <style type = "text/css"> .faculty-image { max-width: 99px; border: 1px solid #999; } * html .faculty-image { width: 99px; } </style> <?php $rep = '<img class ="faculty-image"' .$image .'</img>' ; ehco $rep; ?> Any guidance on this matter will be appreciated. Thanks Quote Link to comment https://forums.phpfreaks.com/topic/198659-css-within-a-php-page/ Share on other sites More sharing options...
andrewgauger Posted April 15, 2010 Share Posted April 15, 2010 $rep = "<img class =\"faculty-image\" src=\"$image\" />" ; Quote Link to comment https://forums.phpfreaks.com/topic/198659-css-within-a-php-page/#findComment-1042509 Share on other sites More sharing options...
skru09 Posted April 15, 2010 Author Share Posted April 15, 2010 Thank you very much for the quick reply! Quote Link to comment https://forums.phpfreaks.com/topic/198659-css-within-a-php-page/#findComment-1042519 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.