HughbertD Posted December 30, 2007 Share Posted December 30, 2007 Hi For some obscure reason a large section of my font appears much larger than the rest of the page. It seems this section totally ignores the CSS rules above it. From my code ... <style type="text/css"> /* the bit that does the work */ body { margin:0; border:0; padding:0; height:100%; max-height:100%; background:#fff; font-family:arial, verdana, sans-serif; font-size:76%; overflow: hidden; margin-bottom: 10px; } /* for internet explorer */ * html body { padding:120px 0 50px 0; } * html #container { height:100%; width:100%; } * html #header {height:120px;} #footer { position:absolute; bottom:0; left:0; width:100%; height:45px; overflow:auto; text-align:right; background:#344E05; border-top:5px solid #507607; } * html #footer {height:50px;} /* end of bit that does the work */ h1 {font-size:0.9em; margin:0; padding:0;} #footer p { color:#CCF77D; margin:5px 10px 0 10px; } #header img { margin:8px 10px 10px 10px; } #container img {margin:5px;} #absolute { position:absolute; top:400px; right:100px; width:200px; background:#ddd; padding:10px; border:1px solid #000; } #left { float:left; background:#eee; padding:10px; border:1px solid #000; color:#000; width:50%; } #right { float:right; background:#ddd; padding:10px; border:1px solid #000; color:#000; } a:visited { font-size:0.9em; text-decoration:none; color:#ddd; } a:hover { color:#666666; text-decoration:none; } a:link { color:#808000; } .grey {color:#888;} .ltgrey {color:#ddd;} img#mascot {float:right;} #header ul { clear:both; text-align:center; border-top:1px solid #000000; } #header ul { margin:0; padding:0; list-style-type:none; background:transparent; height:1em; } #header ul li { display:inline; color:#000000; } .strike {text-decoration:line-through;} .lft {float:left;} .rgt{float:right;} .columnone, .columntwo {width:31%; float:left; text-align:justify; margin-right:2%;} .columnthree {text-align:justify; border:1px solid #fff;} * html .columnthree {border:0;} hr {clear:both; border:0; height:1px; color:#000000; background-color:#888;} .columnthree a, .columnthree a:visited {font-size:0.9em; color:#000; text-decoration:underline;} .columnthree a:hover {color:#888; text-decoration:none;} #header { position:absolute; top:0px; left:0px; width:100%; height:120px; overflow:auto; background:#283C04; border-bottom:4px solid #547C07; } #container { font-family:"verdana"; font-size: 0.9em; position:fixed; top:160px; left:0; bottom:50px; right:0; overflow:auto; background:#fff; padding:20px; text-align:center; color:#000000; } .style1 {color: #CCCCCC} </style> <div id="container"> <a href="java script:windowpop('addStudentPlacement.php');">Add Student to Placement</a><p> <?php $SQL = "select * from student, placement, studentplacement where student.studentid = studentplacement.studentid and placement.companyID = studentplacement.companyID"; $retid = mysql_query($SQL, $cid); if (!$retid) { echo( mysql_error()); } else { echo "<table>"; ?> <tr> <td align="center">Name</td> <td align="center">Placement</td> <td align="center">Email</td> </tr> <?php while ($row = mysql_fetch_array($retid)) { $firstName = $row["firstName"]; $lastName = $row["lastName"]; $company = $row["compName"]; $compCity = $row["compCity"]; $compCountry = $row["compCountry"]; $email = $row["email"]; $id = $row["studentID"]; echo ("<tr>"); echo ("<td>$firstName $lastName</TD>\n"); ?> <td align="center"> <?php echo ("$company $compCity, $compCountry")?></td><?php echo ("<td align=center>$email</td>\n"); echo ("<td><A HREF=\"studentEdit.php?id=$id\">Edit</A></td>"); echo ("<td><A HREF=\"displayStudent.php?id=$id&task=del\">Delete</A></td>"); echo ("</tr>"); } echo ("</table>"); } ?> Sorry for posting so much of the code - but since I can't pin the problem down I suppose it could be just about any of it! If anyone can see (the no doubt blindingly obvious) problem I would really really appreciate it. This has been driving my nuts. Thanks Hugh Quote Link to comment https://forums.phpfreaks.com/topic/83716-solved-text-size-inconsistencies/ Share on other sites More sharing options...
centerwork Posted January 2, 2008 Share Posted January 2, 2008 Did you close your div? "</div>" Quote Link to comment https://forums.phpfreaks.com/topic/83716-solved-text-size-inconsistencies/#findComment-428431 Share on other sites More sharing options...
TheFilmGod Posted January 7, 2008 Share Posted January 7, 2008 don't give us the php. Just give as the results. - Put the page on a server and view it in a browser and paste the code it comes out with it. Quote Link to comment https://forums.phpfreaks.com/topic/83716-solved-text-size-inconsistencies/#findComment-432827 Share on other sites More sharing options...
HughbertD Posted January 7, 2008 Author Share Posted January 7, 2008 Hi Sorry for the lack of reply. I solved it by putting a style tag in the tables depicting a lower font size. However, I discovered it was due to a Javascript tag above all the html I moved it to within the head tags and it was solved thanks everyone for taking interest in my problem hugh Quote Link to comment https://forums.phpfreaks.com/topic/83716-solved-text-size-inconsistencies/#findComment-432851 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.