Jump to content

how i make text closer together


runnerjp

Recommended Posts

hey guys i didnt know were to put this...ccs/html or here in php due to me having all these in this code... i want to make the text close together expale below

 

 

we are 101 members strong

                                                            <--- huge gap i dnt want

Welcome Guest please Register

 

at the moment it looks like that with the huge gap inbetween

 

how cna i make it so it has no gap

 

we are 101 members strong

Welcome Guest please Register

 

 

here is every thing i have for it

 

$infodate = date('l jS \of M. Y');
echo "<pre>we are <b>$display_members</b> members strong</pre>";
?><?	if($auth['displayname'] == "")  	{ echo "</font><Pre>Welcome <font size=\"3\" face=\"Times\"><strong>Guest</strong> please <a href=\"register.php\">Register</a></pre>"; 	} else
   	 {
  	  echo "you are logged in as <strong>".$auth['displayname']."</strong>";
   	 }

?>

Link to comment
https://forums.phpfreaks.com/topic/39943-how-i-make-text-closer-together/
Share on other sites

Get rid of pre and use paragraph tags instead. Like so:

<?php

$infodate = date('l jS \of M. Y');

echo "<p>We are <b>$display_members</b> members strong<br />\n";

if($auth['displayname'] == "")
{
    echo "</font>Welcome <font size=\"3\" face=\"Times\"><strong>Guest</strong> please <a href=\"register.php\">Register</a>\n";
}
else
{
    echo "you are logged in as <strong>".$auth['displayname']."</strong>";
}

echo "</p>\n";

?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.