Solved

set a color to the inside of <option>

Posted on 2012-03-14
4
229 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

As a result of several questions about how to use Bootstrap I thought it would be a good idea to write down the development aspect of creating a Bootstrapped website in as little time as possible. Part 1 of this article will only concentrate on g…
Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

706 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now