the_excerpt displaying code inside style tag

the_excerpt strips away html tags. You will need to switch to the_content and use quick tag instead.

view the docs on this

Basic Example:

<?php the_content( 'Read more ...' ); ?>