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 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\" />" ; 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! 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
Archived
This topic is now archived and is closed to further replies.