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 / September 2007

Tip: Looking for answers? Try searching our database.

Borderless DropdownListBox/HTML Select on IE

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Evan Camilleri - 07 Sep 2007 12:11 GMT
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
ThatsIT.net.au - 07 Sep 2007 14:52 GMT
I tried once before and couldn't do it, but you can make one using DHTML

>I managed to remove the border round the textbox in ie/firefox but not the
>dropdown list box in IE (in Firefox it works)
[quoted text clipped - 6 lines]
>
> Evan
Greg Barnett - 07 Sep 2007 14:59 GMT
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

>I tried once before and couldn't do it, but you can make one using DHTML
>
[quoted text clipped - 8 lines]
>>
>> Evan
ThatsIT.net.au - 07 Sep 2007 16:03 GMT
> 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

> Greg
>
[quoted text clipped - 10 lines]
>>>
>>> Evan
Evan Camilleri - 07 Sep 2007 16:29 GMT
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

>> 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
[quoted text clipped - 19 lines]
>>>>
>>>> Evan
marss - 07 Sep 2007 15:43 GMT
> I managed to remove the border round the textbox in ie/firefox but not the
> dropdown list box in IE (in Firefox it works)
[quoted text clipped - 4 lines]
>
> This works in Firefox but not in IE ... any idea?

Give up. Unfortunately, it is impossible in IE.

Regards,
Mykola
http://marss.co.ua
Evan Camilleri - 07 Sep 2007 16:02 GMT
that's what i thought

>> I managed to remove the border round the textbox in ie/firefox but not
>> the
[quoted text clipped - 11 lines]
> Mykola
> http://marss.co.ua
Greg Barnett - 07 Sep 2007 16:35 GMT
Nothings impossible ;-)
> that's what i thought
>
[quoted text clipped - 13 lines]
>> Mykola
>> http://marss.co.ua
marss - 10 Sep 2007 08:53 GMT
> 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
Evan Camilleri - 11 Sep 2007 12:19 GMT
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

> Nothings impossible ;-)
>> that's what i thought
[quoted text clipped - 14 lines]
>>> Mykola
>>> http://marss.co.ua
Greg Barnett - 07 Sep 2007 16:35 GMT
Nothings impossible.
> that's what i thought
>
[quoted text clipped - 13 lines]
>> Mykola
>> http://marss.co.ua

Rate this thread:







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



©2008 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.