Can any one told me that how can i format the drop down list using CSS
6 141757
format it as in css styles?
let me know what kinda styles you want,
bgcolor
font color
stuff like that
and ill write you up the code
just put things like this into the input drop down, and all the options that follow. -
style="background: black; color: red; text-decoration; none; border: 1px solid red;"
just experiment with that kinda stuff
search google for more things you can add,
hope i could help
Have a look at Stu Nicholls site, which is dedicated to CSS and usage. Contains tons of free samples, including drop down lists, menu's, layouts, boxes and the lot.
See: http://www.cssplay.co.uk/menus/index.html
Ronald :cool:
Hi,
Make a class for select box, where you can define styles for select box.
See sample code below,
<style>
select.style01 {border:1px solid #A5A5A5; backgorund-color:#D0D0D0}
select.style01 option {border-bottom:1px solid #dadada}
</style>
<html>
<select class="style01">
<option>Menu Item 01</option>
<option>Menu Item 02</option>
</select>
</html>
This is one of the typs of dropdowns I Wanted. and works great but I was also needing to know How do I make one like at the top of this page. When scrollbar highlights forums or articles the links popdown.
if that makes any sense
Hi,
Make a class for select box, where you can define styles for select box.
See sample code below,
<style>
select.style01 {border:1px solid #A5A5A5; backgorund-color:#D0D0D0}
select.style01 option {border-bottom:1px solid #dadada}
</style>
<html>
<select class="style01">
<option>Menu Item 01</option>
<option>Menu Item 02</option>
</select>
</html>
If you're looking for a CSS drop-down menu a simple version would be like this:
HTML: -
-
<ul>
-
-
<li>Menu Link 1</li>
-
<li>Menu Link 2</li>
-
<li class="menu-parent">Menu Link 3
-
-
<ul class="menu-child">
-
-
<li>Sub Menu Link 1</li>
-
<li>Sub Menu Link 2</li>
-
<li>Sub Menu Link 3</li>
-
-
</ul>
-
-
</li>
-
-
</ul>
-
-
This will nest a list within an item of the parent list so we can show it using CSS
CSS: -
.menu-parent{
-
position:relative; //This sets the list element as the reference point for any childs position
-
}
-
-
.menu-child{
-
display:none; //This will hide the submenu at first
-
position:absolute; //This will make the position fixed relative to the parent
-
top:-6px; //vertical offset from the top of the parent element
-
left:0px; //horizontal offset from the parent element
-
z-index:10; //This will make sure the submenu is on top of whatever is around it
-
}
-
-
.menu-parent:hover .menu-child{
-
display:block; //Show the submenu when you hover over a parent
-
}
-
-
This is very basic and does not include any actual styling just the css required for it to function.
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Miguel Dias Moura |
last post by:
Hello,
i have an ASP.NET / VB page where i have a few 4 groups of Drop Down Lists.
Each group of Drop Down Lists include 3 Drop Down Lists for date such as:
DAY, MONTH, and YEAR.
I don't want...
|
by: Leszek Taratuta |
last post by:
Hello,
I have several drop-down lists on my ASP.NET page. I need to keep data
sources of these lists in Session State.
What would be the most effective method to serialize this kind of data...
|
by: Yoshitha |
last post by:
hi
I have 2 drop down lists in my application.1st list ontains itmes like
java,jsp,swings,vb.net etc.2nd list contains percentage i.e it conatains the
items like 50,60,70,80,90,100.
i will...
|
by: Dave A |
last post by:
I am stuggling with databinding a drop down list, hooking into the SelectedIndexChanged and attempting to avoid using the viewstate.
The drop down list is quite large so I would prefer to avoid...
|
by: Ed Dror |
last post by:
Hi there
ASP.NET 2.0 VB & SQL Express
Lest take Northwind Categories Products as example
I create a table that hold these two together
and I create a stored procedure like
select ProductID,...
|
by: ashok893 |
last post by:
I'm using two drop down list ina form. I have generated the first drop down list from MySQL database. When i select an option from first drop down list, i have to generate second drop down list...
|
by: TycoonUK |
last post by:
Hi,
As I do not have IE7 on my computer, I was wondering if there is a
fault in my CSS Menu when using IE7.
Please can someone look at my site - http://www.worldofmonopoly.co.uk
and tell me...
|
by: penny111 |
last post by:
Hi there,
For my application, i need to have 3 drop down lists
1. drop down list of folder names
2. drop down list of documents in the folder selected
3. drop down list of instances of the...
|
by: dskanth |
last post by:
I have 4 drop down lists, namely Location, country, State and City.
Ex: Location: Asia, Country: India, State: Andhra Pradesh, City: Hyderabad.
If i select any option in the Location drop down...
|
by: jcassan |
last post by:
Hello folks. I am new to these forums and have something, which has been stumping me for little while.
I am using pspell to spellcheck a scrolling textbox (textarea) containing user input.
I...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
| |