Solved

dropdown with different color

Posted on 2013-05-12
4
336 Views
Last Modified: 2013-05-13
Hi,

My application is in ASP.net 2.0

I need to create a dropdown in orange color as in attached image.

Please help me in creating this dropdown.

My rendered html is html 4.0

Regards,
dropdown.png
0
Comment
Question by:tia_kamakshi
  • 2
4 Comments
 
LVL 58

Assisted Solution

by:Gary
Gary earned 250 total points
Comment Utility
You need to use javascript
Here is a jquery example - you will still have to create your own orange images.
http://www.dfc-e.com/metiers/multimedia/opensource/jqtransform/
0
 
LVL 4

Expert Comment

by:ramyajanarthanan
Comment Utility
Put this code in a file and check it out.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		  <link rel="stylesheet" type="text/css" media="all" href="css/default.css" />
		  <link rel="stylesheet" type="text/css" media="all" href="css/jquery.selectbox.css" />
		  <script type="text/javascript" src="js/jquery-1.2.6.pack.js"></script>
		  <script type="text/javascript" src="js/jquery.selectbox-0.6.1.js"></script>
    </head>
    <body>
    	
				<dd id="demo-default-usage">
					
						<select id="default-usage-select">
							<option value="--">Please select your favorite color</option>
							<option value="01">Red</option>
							<option value="02">Orange</option>
							<option value="03">Yellow</option>
							<option value="04">Green</option>
							<option value="05">Blue</option>
							<option value="06">Magenta</option>
							<option value="07">Violet</option>
							<option value="08">Ultra-violet</option>
						</select>
						
					
					
		<script type="text/javascript">
		//<![CDATA[
			$("#default-usage-select").selectbox().bind('change', function(){
				$("<div>Value of #default-usage-select changed to: "+$(this).val()+"<\/div>").appendTo('#demo-default-usage .demoTarget').fadeOut(5000, function(){
					$(this).remove();
				});
			});
		//]]>
		</script>
		
    </body>
</html>

Open in new window


refer to this link and you can  download the required js and css files from here.
http://info.wsisiz.edu.pl/~suszynsk/jQuery/demos/jquery-selectbox/
0
 
LVL 4

Accepted Solution

by:
ramyajanarthanan earned 250 total points
Comment Utility
if you want to just customize with simple css then  you can use the following code.Change the path of the background url to yours

<html>
<head></head>
<body>
<div class="selectstyle">
   <select>
      <option>Here is the first option</option>
      <option>The second option</option>
   </select>
</div>
</body>
</html>
<style>
.selectstyle select {
   background: transparent;
   width: 268px;
   padding: 5px;
   font-size: 16px;
   line-height: 1;
   border: 0;
   border-radius: 0;
   height: 34px;
   -webkit-appearance: none;
   }
.selectstyle {
   width: 240px;
   height: 34px;
   overflow: hidden;
   background: url('img/down_arrow_select.jpg') no-repeat right #ddd;
   border: 1px solid #ccc;
   }

</style>

Open in new window

0
 

Author Closing Comment

by:tia_kamakshi
Comment Utility
Many Thanks
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

How to build a simple, quick and effective accordion menu using just 15 lines of jQuery and 2 css classes
CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
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 …
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…

771 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

10 Experts available now in Live!

Get 1:1 Help Now