Hey, thanks for making that web page. I have altered my medium and small navigations with some minor code changes. However, I suspect the coding you done with that website to demonstrate how to center images is correct and certainly better. Honestly my current understanding of the CSS and HTML coding which at level that you did with that website is nowhere high as yours.
I ended up using another div as wrapper and text-align (most likely incorrect way) to center images. So, it will take me some time understanding the whole things you did on that website, the center thing.