Hello. I am making a website and I can’t figure out how to center a elements inside a div . Tell me. Thank you in advance.
Code:
.hmenu { margin-left:8%; width:1200px; background-color:#119EDA; height:110px; } .ar { background-color:#119EDA; float:left; width:200px; height:44px; background-image:url(http://pro-okis.ru/file/pro-okis_ru/button/button2.png); background-size: 100% 100%; background-repeat:no-repeat; top:20px; } a { text-decoration:none; color:#FFFFFF; margin-top:10px; font-family:verdana; font-size:14px; } <div class="hmenu"> <div class="ar"><a href="">Главное меню</a></div> <div class="ar"><a href="">Форум</a></div> <div class="ar"><a href="">Мобильная связь</a></div> </div> 

htmlcode?.hmenuor.aris the parent div? - Yuri.hmenuis the menu,.aris the item (actually our div),ais clear that - Yuri