posizionamento tramite css
http://i65.tinypic.com/2la4syd.png
vorrei mettere la scritta 513 Giochi accanto all inpunt del tasto cerca, il codice css è questo
Citazione:
#totalgames{
color: #1eb900;
font-size: 20px;
float: right;
margin-top: 50px;
}
e il PHP
Citazione:
<div class="header_search">
<form action="<?php echo $setting['site_url']?>/index.php?task=search" method="get" onsubmit="<?php echo $search_function;?>">
<input name="task" type="hidden" value="search" />
<div class="header_search_left">
<input name="q" type="text" size="20" id="search_textbox" value="<?php echo $search_val;?>" onclick="clickclear(this, '<?php echo SEARCH_DEFAULT;?>')" onblur="clickrecall(this,'<?php echo SEARCH_DEFAULT;?>')" class="search_box"/>
</div>
<div class="header_search_right">
<input type="image" class="header_search_button" src="<?php echo $setting['site_url'];?>/templates/indigo/forums/images/topic_search_button.png" />
</div>
</form>
</div>
<?php $total_games = mysql_result(mysql_query("SELECT COUNT(*) as Num FROM ava_games"),0); ?>
<div id="totalgames" >
<?php echo $total_games;?> Giochi <br />
</div>
</div>
</div>