can someone explain how I can modify the position of a submenu so that it can be higher than it is now (eg closer to the menu bar, without the gap between the header and the dropdown box of the submenu...see attached picture)? enter image description here

Here is the code underlying the submenu: enter image description here

  • I added the coding where the submenu appears. Hope this can help offer a more specific advice. Also I am not sure how to do what you suggest, but if I do as you suggest still the submenu box would appear quite big I reckon, a bit out of proportions Jul 1, 2018 at 21:59

1 Answer 1


Without seeing the current code, you could try the folllowing:

Use padding-top over the <ul> tag and colour the <li> tag's background colour in the dark grey. This way you avoid using top / margin-top.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.