====== FAQ and Tools ====== $columns = 3; $tablestyle = "text-align:center;"; $tdstyle = "text-align:center; border-top:1px solid white; border-left:1px solid white; border-right: 10px solid white; border-bottom: 10px solid white; background-color:rgba(228,226,82,0.8); width:33%"; $image = "http://placehold.it/200x50"; $items = array( array("/faq/faq", $image, "Frequently Asked Questions", "FAQs and their answers"), array("/tools/tools", $image, "Tools", "Teamviewer QuickSupport, SSH Client, VPN Clients, etc") ); echo "\n"; foreach ($items as $key=>$item) { echo ($key % $columns == 0) ? "" : ""; echo "\n"; echo ($key % $columns == $columns-1) ? "\n" : ""; } echo "
" . // "

" . "

$item[2]

" . "

$item[3]

\n";