flowingwindrider Posted July 18, 2007 Share Posted July 18, 2007 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. Quote Link to comment https://forums.phpfreaks.com/topic/60672-solved-php-css-problem/ Share on other sites More sharing options...
flowingwindrider Posted July 18, 2007 Author Share Posted July 18, 2007 Never mind, I figured it out. Thanks anyway! Quote Link to comment https://forums.phpfreaks.com/topic/60672-solved-php-css-problem/#findComment-301833 Share on other sites More sharing options...
adriscoll Posted July 20, 2007 Share Posted July 20, 2007 flowing... what was the issue with yours. i am having similar php/css problem and could use an outside perspective. http://www.phpfreaks.com/forums/index.php/topic,150226.0.html Quote Link to comment https://forums.phpfreaks.com/topic/60672-solved-php-css-problem/#findComment-302924 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.