Borderless DropdownListBox/HTML Select on IE

E

Evan Camilleri

I managed to remove the border round the textbox in ie/firefox but not the
dropdown list box in IE (in Firefox it works)

<select name="select" id="select" style="width:100%; border:0px" >
<option>Query Qry_Schedule</option>
</select>

This works in Firefox but not in IE ... any idea?


Evan
 
T

ThatsIT.net.au

I tried once before and couldn't do it, but you can make one using DHTML
 
G

Greg Barnett

Have you tried styling the select/drop down box in css? and applying it too
the box. You should be able to do it that way, although ive never attempted
to remove the border on a drop down box, you may not be able to remove the
border itself, but why not try change the border colour to whatever colour
your drop down box's background color is, will look as though it hasnt a
border then.

Greg
 
M

marss

I managed to remove the border round the textbox in ie/firefox but not the
dropdown list box in IE (in Firefox it works)

<select name="select" id="select" style="width:100%; border:0px" >
<option>Query Qry_Schedule</option>
</select>

This works in Firefox but not in IE ... any idea?

Give up. Unfortunately, it is impossible in IE.

Regards,
Mykola
http://marss.co.ua
 
T

ThatsIT.net.au

Greg Barnett said:
Have you tried styling the select/drop down box in css? and applying it
too the box. You should be able to do it that way, although ive never
attempted to remove the border on a drop down box, you may not be able to
remove the border itself, but why not try change the border colour to
whatever colour your drop down box's background color is, will look as
though it hasnt a border then.

this all works on text boxs buttons and such, but not on drop downs
 
E

Evan Camilleri

yes :( on firefox it works fine ..... on IE not
Have not tried it on others but i guess those are the 2 most used (???)

Evan
 
M

marss

Nothings impossible ;-)

Select element presents DropDownList control in HTML.
There is no border attribute or border style that can be applied to
select.
http://msdn2.microsoft.com/en-us/library/ms535893.aspx

I do not deny that by means of other HTML elements you can create
something that looks like select element but it requires a lot of HTML
and javascript.
You can't specify border of select element.
I'll be happy to admit my error if you prove your point of view with
something more essential then Adidas's promotional slogan :)

Regards,
Mykola
http://marss.co.ua
 
E

Evan Camilleri

I agree and I did it.... a workround. I created a DIV element with a border
which sits on top of the SELECT tag... Quite crude but good. I'try to put
it in my blogs on EvanCamilleri.com

Evan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,571
Members
45,045
Latest member
DRCM

Latest Threads

Top