After hastily creating a web widget in jsFiddle with absolute positioning for prototyping purposes, I now find myself struggling to convert it to relative positioning. In addition, I am working on transforming it into a jQuery UI widget and need everything to seamlessly integrate onto the page without any complications.
You can view the widget HERE. Essentially, it is a search box that allows for filtering with the left-most button.
The key components are:
- #refine: The left-most button.
- #refineDropdown: The dropdown menu that appears when you click on the refine button.
- #search: The input box.
- #dropdown: The live-type search filtering box.
- #submit: The right-most search button.
Question: When developing a widget, should positioning be relative or absolute? If there are multiple instances of this widget on a page, the position of the dropdowns should be independent of their location on the page. However, I am struggling with understanding how to achieve this using positioning and HTML structure.
CSS Code:
(CSS code will not be displayed here)