Old 23-08-2007, 03:32   #1 (permalink)
setty
Registered User
 
Join Date: Jul 2006
Posts: 2
drop down box help!

hi guys,
can i place image for drop down box using css? if yes how can i?

advance thanks
setty
  Reply With Quote
Old 31-08-2007, 05:37   #2 (permalink)
Frozen Interact
Registered User
 
Join Date: Aug 2007
Posts: 1
Send a message via Skype™ to Frozen Interact
Hi,
Can you explain your problem a bit more? I don't understand what you are trying to achieve.

Cheers,

Chris.
  Reply With Quote
Old 31-08-2007, 09:34   #3 (permalink)
pgo
Senior Member
 
Join Date: Jan 2005
Posts: 12,340
I think he means a <select> box. Like a form input.

And why would you want to? You could try setting a background for the select or the option, I guess. I've never tried and have a feeling it wouldn't work very well or across browsers. Best to leave it as is.
  Reply With Quote
Old 31-08-2007, 09:36   #4 (permalink)
herkalees
Semantics, yay.
 
herkalees's Avatar
 
Join Date: Nov 2005
Location: Salem, Massachusetts
Posts: 1,146
Don't mess with form inputs; it's been proven that it rarely helps visitors use your site.
__________________
  Reply With Quote
Old 31-08-2007, 09:43   #5 (permalink)
d*d
Moderator
 
d*d's Avatar
 
Join Date: Oct 2004
Location: Bristol
Posts: 3,391
Quote:
Originally Posted by herkalees
Don't mess with form inputs; it's been proven that it rarely helps visitors use your site.

Really, I'd like to see that proof - the html form elements are hardly perfect and I can see that the ability to place images in a drop down could be handy - it's easier to pick out an image from a group than a word.

I've seen it done with javascript, do a google search
  Reply With Quote
Old 31-08-2007, 10:42   #6 (permalink)
2Dfruit
Biscuit
 
2Dfruit's Avatar
 
Join Date: Jun 2006
Location: Ireland
Posts: 1,043
i remember seeing one that used small images of countries flags in a drop down menu. ill try and find it

*found it*
Customize Dropdown Menu - Form - JavaScriptBank.com

not a select box, but the a way around it
__________________
OH HAI!

Last edited by 2Dfruit : 31-08-2007 at 10:54.
  Reply With Quote
Old 31-08-2007, 10:54   #7 (permalink)
herkalees
Semantics, yay.
 
herkalees's Avatar
 
Join Date: Nov 2005
Location: Salem, Massachusetts
Posts: 1,146
Quote:
Originally Posted by d*d
Really, I'd like to see that proof - the html form elements are hardly perfect and I can see that the ability to place images in a drop down could be handy - it's easier to pick out an image from a group than a word.

I've seen it done with javascript, do a google search
It's not an issue of it being hard to do--it's an issue with it being wrong to do.

I don't have proof off-hand, but I do remember what I've read in the past, from a healthy amount of reputable sources.
__________________
  Reply With Quote
Old 31-08-2007, 11:07   #8 (permalink)
d*d
Moderator
 
d*d's Avatar
 
Join Date: Oct 2004
Location: Bristol
Posts: 3,391
Quote:
Originally Posted by herkalees
I don't have proof off-hand, but I do remember what I've read in the past, from a healthy amount of reputable sources.

Well I disagree with your reputable sources, you shouldn't just accept that what we've got is fine and needs no improving, I think the example with the flags above is a better use of the dropdown menu than a text only version
  Reply With Quote
Old 31-08-2007, 11:14   #9 (permalink)
herkalees
Semantics, yay.
 
herkalees's Avatar
 
Join Date: Nov 2005
Location: Salem, Massachusetts
Posts: 1,146
To each his own, then. I'll stick with what I believe, and I appreciate the differing opinion.
__________________
  Reply With Quote
Old 31-08-2007, 11:43   #10 (permalink)
djeglin
goober :-)
 
djeglin's Avatar
 
Join Date: Dec 2006
Location: Birmingham, UK
Posts: 533
Send a message via MSN to djeglin
The reasoning behind herkalees' research is that the form controls we have are a recognised paradigm. The is true to an extent, but doesnt mean you shouldnt give modification a go if you want to. Particularly with using images/icons in a select box, there are clear precedents for this working in other areas, such as the address bar in a web browser displaying a favicon.

Learn to think outside of the box every now and then, man!
__________________
My signature sucks.
  Reply With Quote
Old 31-08-2007, 11:46   #11 (permalink)
mx
fucksocks™
 
mx's Avatar
 
Join Date: Jun 2005
Location: in the boosh
Posts: 1,629
Quote:
Originally Posted by djeglin
The reasoning behind herkalees' research is that the form controls we have are a recognised paradigm.

That's why safari limits the styling of form elements. in particular submit buttons.
__________________
  Reply With Quote
Old 31-08-2007, 13:25   #12 (permalink)
djeglin
goober :-)
 
djeglin's Avatar
 
Join Date: Dec 2006
Location: Birmingham, UK
Posts: 533
Send a message via MSN to djeglin
Indeed... Although safaris limitation of such things creates more problems than it solves for my liking. There are a number of times you would want to use submit buttons but not have the default stying (for example, if an established website such as one that I recently finished work on has their own visual paradigm for such actions - They used a strong red for all primary calls to action, which a lot of the time were buttons.)

That having been said, apple have done some clever things with form elements, using backgrounds and setting the opacity of the elements themselves to 0. There are always ways around these things...
__________________
My signature sucks.
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8