title: How can I create inline CSS in a WordPress PHP file without referencing to an external CSS file?
body: <p>I want to enqueue a string of CSS directly from a Wordpress plugin. I don't want to load it from an external file, and I don't want to debate why this is the write or wrong thing to do, I just want to know if it is possible.</p>
  
  <p>In other words, I know I can do this:</p>
  
  <pre><code>wp_register_style('myStyleSheet', 'my-stylesheet.php');
  wp_enqueue_style( 'myStyleSheet');
  </code></pre>
  
  <p>But I don't wan't to.</p>
  
  <p>What I want to do is something like this (pseudocode):</p>
  
  <pre><code>$number = get_option('some_width')/2;
  $css = " .divbox { width: $number; } ";
  wp_register_style('myStyleSheet', $css);
  wp_enqueue_style( 'myStyleSheet');
  </code></pre>
  
  <p>I read the wp codex for wp_register_style() and it doesn't seem possible. Anyone have a suggestion?</p>