This should be sent to the header:

<div class="content"> 
   <style type="text/css">
     #cck-complete-percent-bar-wrapper-setting {width: 100%; border: 1px solid #000; padding: 1px;}
     #cck-complete-percent-bar-setting { width: 75%; height: 10px; background-color: #777777;}
   </style>
...

Couldn't you use inline style="" for this?

Comments

pvhee’s picture

If inline style="" is used, wouldn't this make it impossible to override the style in an external CSS?

As far as I know, I cannot use an external .css file either because some of the names of the CSS classes depend on the CCK type.

pvhee’s picture

Status: Active » Closed (fixed)

I've refactored the styling to a separate content_complete.css file, keeping the width of the percent bar as the only style element in the .module file, with an inline style tag. Code committed to dev cvs, thanks!