I have a div with a fixed position (a top panel) which shall also contain a settings menu at the far right (currently via floating).
When hovering over the settings-imag
No jQuery necessary, just give your #panel a width:
#panel
#panel { position: fixed; width: 100%; } #settings { float: right; }
See DEMO.