in reply to CGI.PM checkbox_group background color
You would have to use something different to get exactly that output, eg:
print label ( span ({ style => "background-color: #345643;" }, input ( +{ type => "checkbox" }) ) );
However, in practice I find that CSS can achieve desired results without additional tags. In your particular example,
print '<span style="background-color: #345643;">' . checkbox_group ({ values => "" }) . '</span>';
achieves the same effect. Of course your "real" scenario may be more complicated.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: CGI.PM checkbox_group
by jhuijsing (Acolyte) on Sep 07, 2013 at 23:23 UTC |