Title: CSS Problem
Last modified: May 15, 2018

---

# CSS Problem

 *  [rogeriodec](https://wordpress.org/support/users/rogeriodec/)
 * (@rogeriodec)
 * [8 years ago](https://wordpress.org/support/topic/css-problem-77/)
 * I have an external php file and within a page I put:
    `[insert_php] include('
   php/sorteio.php'); [/insert_php]`
 * The problem is that in my php code there are before CSS definitions inside the
   <style> tag.
 * It seems Insert PHP modulo is unduly inserting paragraphs between CSS lines, 
   invalidating them.
    How to solve this?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcss-problem-77%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Thread Starter [rogeriodec](https://wordpress.org/support/users/rogeriodec/)
 * (@rogeriodec)
 * [8 years ago](https://wordpress.org/support/topic/css-problem-77/#post-10282744)
 * I think I discovered a bug:
    If there is a blank line between one CSS tag and
   another, Insert PHP is creating a `<p> </p>` and inserting between them, which
   messes up the CSS code.
 *  Thread Starter [rogeriodec](https://wordpress.org/support/users/rogeriodec/)
 * (@rogeriodec)
 * [8 years ago](https://wordpress.org/support/topic/css-problem-77/#post-10282780)
 * Also, for some reason, it’s inserting `<br />` between html lines that I put 
   inside my php code… very buggy
 *  [WillBontrager](https://wordpress.org/support/users/willbontrager/)
 * (@willbontrager)
 * [8 years ago](https://wordpress.org/support/topic/css-problem-77/#post-10287293)
 * Roger, what you’re seeing is the WordPress function that inserts paragraph and
   break tags into content you type into the edit box. Insert PHP inserts your content
   into the post or page. Then, WordPress does what it does with the content.
 * You may need to figure out a way to get the CSS in there some other way, or make
   them all one line.
 * Will
 *  Thread Starter [rogeriodec](https://wordpress.org/support/users/rogeriodec/)
 * (@rogeriodec)
 * [8 years ago](https://wordpress.org/support/topic/css-problem-77/#post-10287305)
 * Ok, thank you!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘CSS Problem’ is closed to new replies.

 * ![](https://ps.w.org/insert-php/assets/icon-256x256.gif?rev=3523853)
 * [Woody Code Snippets – Insert PHP, CSS, JS, and Header/Footer Scripts](https://wordpress.org/plugins/insert-php/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/insert-php/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/insert-php/)
 * [Active Topics](https://wordpress.org/support/plugin/insert-php/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/insert-php/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/insert-php/reviews/)

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)

 * 4 replies
 * 2 participants
 * Last reply from: [rogeriodec](https://wordpress.org/support/users/rogeriodec/)
 * Last activity: [8 years ago](https://wordpress.org/support/topic/css-problem-77/#post-10287305)
 * Status: not resolved