Tsukimoto Mitsumasa
Tsukimoto Mitsumasa

Reputation: 582

Inline CSS style inside a php line

I have this code (CodeIgniter):

<tr>
    <td width="80">Gender*:</td>
    <td>
        <?php echo form_dropdown('gender', $gender_select, $gender_val); ?>
    </td>
    <td>
        <?php echo priv('gender',$profile_level['gender'])?>
    </td>                           
</tr>

Is it possible to have an inline CSS style inside the 'php line' to make its height or width be adjusted to any size I want?

Upvotes: 2

Views: 9813

Answers (1)

Alex M
Alex M

Reputation: 3513

There is a forth argument of the function (assuming Codeigniter) which is a fragment of the tag

<?php echo form_dropdown('gender', $gender_select, $gender_val, 'style="font: 10px"'); ?>

Upvotes: 1

Related Questions