Cycle one fails to build for browsing tabs:
<?php foreach($news as $new): ?> <div class="tab"> <input type="radio" id="tab-<?=$i?>" name="tab-group-1" checked> <label for="tab-<?=$i?>"> <?=$new['title']?> </label> <div class="content"> <p><?=$new['description']?></p> </div> </div> <?php endforeach; ?> Where $i should be, from 1 to 3 assume that there are three tabs.