Solved

set a color to the inside of <option>

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
CSS Scroll Issue 3 94
AngularJS Page Control Understanding 5 40
SCRIPT65535: Unexpected call to method or property access video html 5 explorer 3 48
Error in JQuery 5 39
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
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…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

863 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

23 Experts available now in Live!

Get 1:1 Help Now