Solved

set a color to the inside of <option>

Posted on 2012-03-14
4
233 Views
Last Modified: 2012-03-15
Hi
i have this:in php and i want to make the content in bold and color
<option >$i $unit ($mes) :$days  $day</option>
$unit='unit 1' for example i want it blue and bold
how i can do this please...
any help please
0
Comment
Question by:asaidi
  • 2
4 Comments
 
LVL 40

Assisted Solution

by:gurvinder372
gurvinder372 earned 250 total points
ID: 37723780
0
 
LVL 9

Accepted Solution

by:
alex_code earned 250 total points
ID: 37723955
You must have something likes this:


<select class="my_box"> //give a class to the select box in  order to handle it.
<option value="1">bla</option>
<option value="2">bla2</option>
</select>

If you want the content of the <option> tags e.g. bla bla2 etc to be blue and bold, the only thing you have to set is the color and the font weight of select box class...

.my_box
{
 color:blue;
font-weight:bold;
}
0
 
LVL 40

Expert Comment

by:gurvinder372
ID: 37723991
thanks for the points
0
 

Author Comment

by:asaidi
ID: 37724140
you are welcome
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question