Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / February 2006

Tip: Looking for answers? Try searching our database.

Styles (or skins) and DropDownLists

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Neil - 13 Feb 2006 16:40 GMT
Is it possible to apply a style to a DropDownList?

In order that all my controls have a consistent look and feel I have
been using classes in a style sheet. Try as hard as I might I cannot
get a border color change applied by the style. The relevant section of
the stylesheet is below:

.DataEntryDropdown
{
   color:Black;
   height:auto;
   font-family:Verdana;
   font-size:small;
   font-style:normal ;
   border-color: #B5C7DE  ;
   border-style: solid ;
   border-width:thin ;
}

Am I trying to achieve the impossible?

As I can't get this to work with a stylesheet does anyone know if it'll
work with a skin?
Bruce Barker - 13 Feb 2006 17:07 GMT
you are trying the impossible.  the html <select> border attributes apply to
a border around the control, the the dropdowns own border.

-- bruce (sqlwork.com)

> Is it possible to apply a style to a DropDownList?
>
[quoted text clipped - 19 lines]
> As I can't get this to work with a stylesheet does anyone know if it'll
> work with a skin?
Neil - 13 Feb 2006 17:28 GMT

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.