|
Is there any way to have a menu bar in html float in the centre of the screen
Return to Recent Questions
Q:
Is there any way to have a menu bar in html float in relation to the
centre of the screen (not the left of the screen). I have a centre
based website. When I use the menu bar in html and view the site on
different screen sizes, the floating menu appears in different
places on the x scale. For example, I would like it 20 percent from
the edge of my centre based webpage, not 20 percent from the left of
the screen. I want the menu bar in html to appear on the same horizontal place
on my webpage (which is centre based)
A:
No unfortunately it is not possible to write
var posX="50% - 20";
You should adjust your coordinates to center the menu with absolute
position.
Return to Recent Questions
Related:
|