Jump to content

[SOLVED] PHP / CSS problem


flowingwindrider

Recommended Posts

I wasn't sure if my problem exists with my css code or in my php script, so I figured I'd just post here and hope for the best. If my css code reads (in part):

 

.style6{
font-family: "Poor Richard";
font-size: 14pt;
text-align: center;
        width: 100%;
}

 

and my php code reads (in part):

 

echo "<table>";
echo "<tr class=\"style6\">";
if($page != 1)
{
$pageprev = $page - 1; 
echo("<td><a href=\"employ.php?page=$pageprev\">Previous ".$limit." Listings - </a></td>");
}
else
{
echo("<td>Previous ".$limit." Listings - </td>");
}

$numofpages = $totalrows / $limit;
for($i = 1; $i <= $numofpages; $i++)
{
if($i == $page)
	{
	echo("<td>".$i."</td>");
	}
	else
	{
	echo("<td><a href=\"employ.php?page=$i\">$i</a></td>");
	}
}

if(($totalrows % $limit) != 0)
{
if($i == $page)
	{
	echo("<td>".$i."</td>");
	}
	else
	{
	echo("<td><a href=\"employ.php?page=$i\">$i</a></td>");
	}
}

if(($totalrows - $limit * $page) > 0)
{
$pagenext = $page + 1;
echo("<td><a href=\"employ.php?page=$pagenext\">Next ".$limit." Listings</a></td>");
}
else
{
echo("<td> - Next ".$limit." Listings</td>");
}

echo ("</tr></table");

 

then can anyone tell me why the scripts is ignoring only the part of the css that aligns the text to the center? It applies the font and size perfectly, it just won't align.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.