سلام می خوام تمام محتویات این کلاس وسط باشن هر کدی تست می کنم جواب نمیده کسی می تونه کمک کنه کد (Text): .related-posts {float:right;width:33.3%;text-align:center;min-height:160px;margin:2px;background:#fff;border-bottom:1px solid #eee;}
HTML: <!DOCTYPE html> <html> <head> <style> .related-posts-container {text-align: center;} .related-posts {float:none; width:33.3%; text-align:center; min-height:160px; margin:2px; background:#fff; border-bottom:1px solid #eee; display: inline-block;} </style> </head> <body> <div class="related-posts-container"> <p class="related-posts"> This is a sample. </p> </div> </body> </html>