2012-08-09 25 views
0

如何讓我的視圖配置文件鏈接下面留在相同的位置,當所有的數據可用我不沒有如何做到這一點與CSS嘗試底部:0但這沒有工作任何幫助表示讚賞。例如,如果你看看Gary Bennett,例如我想讓視圖配置文件處於所有配置文件的同一位置。查看個人資料需要在相同的地方有或沒有內容

http://east-belfast.wsini.com/staff

任何幫助是極大apreciated一如既往。

<div class="thumbnail"> 
    <div id"content" style="font-size:14px;min-height:140px;position:   relative;"> 

    <img src="images/profile.png" align="left" style="padding-right:5px;"> 

    <span style="color:#3c79ba"><?php echo $item->name;?></span><br/> 
    <span><?php echo $item->job_title;?></span><br/> 
    <img src="images/line.png"><br /> <?php if ($item->phone !="") {?> 
    <img src="images/phone.png">&nbsp;&nbsp; 
    <?php }else{?> 
    <br /> 

    <img src="images/email.png">&nbsp;&n 
    <span style="color:#3c79ba"><?php echo $item->phone;?></span><br /> 
    <?php }?> 
    <?php if ($item->email !="") {?> 
    <img src="images/email.png">&nbsp;&nbsp;<span style="color:#5881b3"><?php echo $item->email;?> </span><br /> 
    <?php }else{?> 
    <br /> 
    <?php }?> 
    <br /> 
    <div style="height:10px;position: absolute; bottom: 0; left: 0;"> 
    <a href="<?php echo JRoute::_('index.php?option=com_staffdirectory&view=staff&id=' . (int)$item->id); ?>"> View profile 
    </a> 
     </div> 
    </div> 
</div> 
<?php 


if($counter == 2) {?> 

    <br class="clearboth"> 

    <? 

}?> 
+0

什麼可以'php'做些什麼呢? – 2012-08-09 11:56:25

回答

0
.thumbnail div { position:relative; height: 142px; } /* 142px is the height of your images, put in to make the box stretch in height if little content */ 
.thumbnail a { position: absolute; bottom: 0; } /* I'd add a class to this in case you want to link any other info from the container */ 
相關問題