Help tumblr coding

Home More advice Computers & Tech

I need to make my photosets fit in their posts on my index page. Here's my coding:

{block:Photoset}
{block:IndexPage}
<center>
<div class="perma">
<div class="likep"><a id="like{PostID}" href="javascript:likelink('{PostID}','{Permalink}','');"><img src="http://static.tumblr.com/lba83dv/OUUltd958/spacer.gif" width="21" height="20" alt="Like this post" id="likeimage{PostID}"/></a></div>
<div class="rep"><a href="{reblogurl}" target="_blank"><img src="http://static.tumblr.com/uiqhh9x/OAClzwwao/reblog.png" width="30"/></a></div>
</div>
<div id="permalink">
<span class="countreblog"><a href="{Permalink}">{notecount}<font color="#fc3c5c">♥ </font></a></a></span></div>
{/block:indexpage}
<div style="padding-top:0px; padding-bottom:0px;"><a href="{permalink}">
{Photoset-250}</a></div>

{/block:Photoset}