Aline-Claire (Talk | contribs) |
Aline-Claire (Talk | contribs) |
||
Line 68: | Line 68: | ||
/* Creates the container for the menu */ | /* Creates the container for the menu */ | ||
#menuContainer { | #menuContainer { | ||
− | + | margin-left: 50%; /* From parent width */ | |
− | + | transform: translateX(-50%); /* use self width which can be unknown */ | |
+ | -ms-transform: translateX(-50%); /* For IE9 */ | ||
display: inline-block; | display: inline-block; | ||
text-align: center; | text-align: center; |
Revision as of 05:17, 17 October 2018