Lokolo Posted May 6, 2007 Share Posted May 6, 2007 My CSS: /* small words */ h5 { font-family: aerial; font-size: 10pt; color: #E5E5E5; v-align: top } My source: <? echo "<h5>Funds: £$_SESSION[funds]</h5>"; echo "<h5>Guests: $_SESSION[totalguests]</h5>"; ?> simple as that really but i get a damn gap - not sure why. Link to comment https://forums.phpfreaks.com/topic/50226-solved-text-gap-why-is-there-a-gap/ Share on other sites More sharing options...
Lumio Posted May 6, 2007 Share Posted May 6, 2007 For Arrays you use { and } and you also need to make quotes... so: <?php echo "<h5>Funds: £{$_SESSION['funds']}</h5>"; echo "<h5>Guests: {$_SESSION['totalguests']}</h5>"; ?> You also can do that like: <?php echo "<h5>Funds: £".$_SESSION['funds']."</h5>"; echo "<h5>Guests: ".$_SESSION['totalguests']."</h5>"; ?> or do you mean something different? Link to comment https://forums.phpfreaks.com/topic/50226-solved-text-gap-why-is-there-a-gap/#findComment-246547 Share on other sites More sharing options...
Lokolo Posted May 6, 2007 Author Share Posted May 6, 2007 Thats it? ffs... hehe thanks! Link to comment https://forums.phpfreaks.com/topic/50226-solved-text-gap-why-is-there-a-gap/#findComment-246548 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.