Styling Combo Boxes
Posted: 06 September 2007 11:29 AM   [ Ignore ]
Jr. Member
RankRank
Total Posts:  38
Joined  2007-09-03

Most form controls in modern browsers tend to have a Windows XP or better look and feel to them. Thus buttons will appear with curved corners - though in Opera this is an option that has to be turned on:Tools Menu -> Appearance ->Skins Tab -> Windows Native.

Combo boxes created via the

<select
tag are an exception. They are only partially responsive to CSS styling done via
<style class="..."

. The degree of responsiveness is browser dependant with the worst culprit being IE6 - can’t speak with authority of IE5.5 etc, it has been a long time since I used it.

Here is a way round the problem

http://www.explainth.at/en/html/selstyle.shtml

The technique relies on making the <select> completely transparent. Unfortunately, this means it will not work in IE6 since IE6 selects seem to ignore the opacity setting.

Profile
 
 
Posted: 15 July 2010 06:13 PM   [ Ignore ]   [ # 1 ]
Newbie
Rank
Total Posts:  2
Joined  2010-07-15

hello people, wow, this is a great discussion it was, thanks for sharing.

__________________________________________
Web developer - Firewors | Dreamwaver e PS
Download gratis | Programa gratis

Profile
 
 
Posted: 22 July 2010 08:33 PM   [ Ignore ]   [ # 2 ]
Newbie
Rank
Total Posts:  1
Joined  2010-07-22
veli - 11 July 2010 12:38 PM

So now both of the most popular versions of IE are behaving. Next we can style the text input field:

.combo {
  height:20px;
  width:140px;
  color:#000000;
  border-style:solid;
  border-width:1px 0px 1px 1px;
  border-color:blue;
  margin:0px;
  padding:0px;
  vertical-align:bottom;
}

The height is set to the same as the image and the width is long enough to display each of the options in full. It is given the same border values, with the exception of missing off the right-hand border, as this will be flush with the image anyway. The div containing the options will need to be hidden for now, and will only be shown when the drop-down arrow image is clicked (exactly like a standard combo box). This CSS for this would be as follows:

#combodiv {
  padding:0px;
  display:none;
  position:relative;
  left:151px;
  height:150px;
  width:120px;
  border-style:solid;
  border-width:0px 1px 1px 1px;
  border-color:blue;
  background-color:white;
  overflow-y:auto;
  overflow-x:hidden;
}

————————————
schamlippenverkleinerung | schamlippenkorrektur | facelifting | augenlidstraffung

 


thanks you very much…..
————————————
hope thing all right with you

Profile
 
 
Posted: 23 July 2010 06:34 AM   [ Ignore ]   [ # 3 ]
Member
Avatar
RankRankRank
Total Posts:  94
Joined  2010-06-17
jbcss - 15 July 2010 06:13 PM

hello people, wow, this is a great discussion it was, thanks for sharing.

FYI - it’s not so much a discussion as one person copying and pasting from another source without credit - http://www.explainth.at/en/html/selstyle.shtml.

Now credit has been given.

Dave Davies
Beanstalk SEO

Profile
 
 
Posted: 21 December 2010 07:47 AM   [ Ignore ]   [ # 4 ]
Jr. Member
RankRank
Total Posts:  42
Joined  2010-12-14

that was a good read.

headrest dvd player | external hard drive

Profile
 
 
Posted: 25 January 2011 02:54 AM   [ Ignore ]   [ # 5 ]
Newbie
Rank
Total Posts:  17
Joined  2010-04-20

thanks for info, i like it…

_____________________________________
Gadget Reviews New Laptop Season Episode Upright Chest Freezers

Profile
 
 
Posted: 25 January 2011 02:57 AM   [ Ignore ]   [ # 6 ]
Newbie
Rank
Total Posts:  6
Joined  2010-04-26

thanks you, i try it on my blog :D
________________________________________
-==........Joe Love Google..........==-

Profile
 
 
Posted: 25 January 2011 02:23 PM   [ Ignore ]   [ # 7 ]
Newbie
Rank
Total Posts:  1
Joined  2011-01-25

wow…nice info..like it so much..


__________________________________________________
Indonesia Stock Info

Profile
 
 
Posted: 25 January 2011 07:04 PM   [ Ignore ]   [ # 8 ]
Newbie
Rank
Total Posts:  2
Joined  2011-01-25

Good thing to test on my site. I’ll try i tomorow.

_____________________________________________
search video

Profile
 
 
Posted: 30 January 2011 10:45 PM   [ Ignore ]   [ # 9 ]
Newbie
Rank
Total Posts:  3
Joined  2011-01-30

thanks for the info, nice…i like this
__________________________________

What Car Reviews | Watch Movie Streaming Online | Watch Naruto Shippuden Online | Justin Bieber Fansite  | Cell Phone Reviews | Seo Services

Profile
 
 
Posted: 30 January 2011 10:55 PM   [ Ignore ]   [ # 10 ]
Newbie
Rank
Total Posts:  3
Joined  2011-01-30

o ya, i am forget…i am also looking for other stuff but can’t found it on google

Profile
 
 
Posted: 25 February 2011 11:51 PM   [ Ignore ]   [ # 11 ]
Newbie
Rank
Total Posts:  2
Joined  2011-02-25

thanks you very much


______________________________________________________________________________________________________________
Gadget Phones | Artikel Gids | Artikolu Directory | User Generate Content

Profile
 
 
   
 
 
‹‹ Styling File Selectors      Pue CSS Buttons ››