• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

Select List in Microsoft Edge

 
Ranch Hand
Posts: 2119
2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a select list wrapped in a container. The options are various lengths.

In IE the select list will adjust the width to display the longest option with out any styling on the container or select tag.

However, using MS Edge the select list width seems to be set and cuts off some of the option text.
 
Saloon Keeper
Posts: 24558
168
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There are other web clients in the world besides IE and Edge.

IE is notoriously bad about playing by the rules. and beside, I think that Windows 11 is slated to put the nail in IE's coffin once and for all.

Nevertheless, HTML is supposed to format for a "best-fit" display as opposed to precision layout (that's a key difference between HTML and PDF).

However, improper use of CSS can interfere with that process. So it would be good if you could show us the offending HTML, including whatever DIVs or other containers that the SELECT is wrapped in.
 
Sheriff
Posts: 67595
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Load up Dev Tools and inspect the elements that aren't the size you want to sew what directives are affecting its size. It's not always clear, but it's the first place to start.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic