Jump to content

css within a php page


skru09

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.