Solved

set a color to the inside of <option>

Posted on 2012-03-14
4
234 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Independent Software Vendors: 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

Title # Comments Views Activity
HTML CSS and  Table design 4 70
Loading Self-Hosted Fonts 12 43
HTML 5 Input Type Numeric 5 32
Div not showing up 6 33
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.
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 …
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. 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.: (CODE)

751 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