thomaSmith thomaSmith - 4 months ago 9
CSS Question

how to style a codeignitor form label

I am trying to change the color of the form labels and i was wondering how to do it.

<div class="form-group">
<div class="medium-6 columns">
<?php
echo form_label('First Name');
$data = array(

'class'=>'form-control',
'name'=>'fname',
'placeholder'=>'First Name'

);

echo form_input($data);
?>
</div>

Answer

In your form open if you have a id="exmaple" In your css file have you tried

#example label {
  color: #222222;
}

You may need important

#example label {
  color: #222222 !important;
}

And looks like your mixing foundation code with bootstrap code bootstrap col-md-6

http://getbootstrap.com/css/#grid-options