On Thu, Apr 1, 2021 at 1:59 PM Rod Castello <rodcastel...@gmail.com> wrote: > > Hi Everyone, > It's been a long time so I hope I'm posting this correctly. > On this really old hand-coded website the drop-down menus shift to the > right further and further as the screen size increases. When it's smaller > it looks okay. Should be under the nav title and stay that way. > http://pedroastudillo.com/char_color57.php > If you need my code for the various elements I can attach those. Or if > screenshots of the problem would help I can send those as well. > Anyway, would appreciate it if anyone had the time to give it a look. > > thanks >
The dropdown, #dropmenu1 for example, is position:absolute relative to the closest parent that is position:relative, which in this case is #wrapper. I'd have #dropdown1 inside the main nav <li> of 'Character Design' and position it relative to that. Repeat. -- Tom Livingston | Senior Front End Developer | Media Logic | ph: 518.456.3015x231 | fx: 518.456.4279 | medialogic.com #663399 ______________________________________________________________________ css-discuss [css-d@css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/