Jump to content

Head startig to hurt....ALOT


mike12255

Recommended Posts

So I have a css(will show below) that should be making text to be white. Here is my css.

 

<!---

body {
a:link, a:visited, a:active { text-decoration: none}
font-family:Verdana, Sans-serif;
color; #000000;
font-size: 12px
}
input,textarea, select,{
color : #000000;
font: normal 12px;
border-collapse: collapse; border: 1px solid #000000;
}
img{
border:0;
}

.maintable {border: 0px ; width: 100%; padding: 0px; background-color: #FFFFFF} /*main table for forum*/
.regrow {font-family: Verdana,Sans-serif; color: #000000; font-weight: bold; background-color: #FFFFFF;font-size: 12px;} /*registration row, mainly here for symetry*/
.headline {font-family: Verdana,Sans-serif;font-weight: bold;color: #FFFFFF;background-color: #003366;font-size: 11px;} /*headline row, the first row that says forum name, topics, posts and such*/
.forumrow {font-family: Verdana,Sans-serif; color: #000000;background-color: #F2F2F2;font-size: 12px;} /*color of the forum rows*/
.mainrow a:link, a:visited,  a:active { text-decoration: none;}
.mainrow {font-family: Verdana,Sans-serif; color: #000000;background-color: #F2F2F2;font-size: 12px; a:link, a:visited, a:active { text-decoration: none}} /*color of the forum rows*/
.maintables{background-color: #FFFFFF; width: 85%; padding: 0px; border: 3px solid; cellspacing: no} /*main table for forum*/
--->

 

 

Know the text appears brown (as can be seen at http://schoolworkanswers.com/math.php ) I think it must be something to do with the setting up of the tables in my math.php file.  Ill include the entire file, and then point out the part that deals with it.

 

Entire file:

<?php 
include "connect.php"; //mysql db connection here
$area = "math";?>
<html>
<head>
<!-- TemplateBeginEditable name="doctitle" -->
<title>School Work Answers</title>
<!-- TemplateEndEditable -->
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<style type="text/css">
<!--
body,td,th {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
color: #333333;
}
body {
background-color: #E2E2E2;
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style>
<script type="text/javascript">
<!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
<!-- TemplateBeginEditable name="head" --><!-- TemplateEndEditable -->
</head>
<body onLoad="MM_preloadImages('images/rollover_12.gif','images/rollover_14.gif','images/rollover_16.gif','images/rollover_18.gif','images/rollover_20.gif','images/rollover_22.gif','images/rollover_03.gif','images/rollover_05.gif','images/rollover_07.gif')">
<!-- ImageReady Slices (index.psd) -->
<table width="1000" height="1401" border="0" align="center" cellpadding="0" cellspacing="0" id="Table_01">
<tr>
	<td colspan="22">
		<img src="images/index_01.gif" width="1000" height="82" alt=""></td>
</tr>
<tr>
	<td colspan="12">
		<img src="images/index_02.gif" width="678" height="14" alt=""></td>
	<td colspan="3"><a href="login.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image59','','images/rollover_03.gif',1)"><img src="images/index_03.gif" name="Image59" width="39" height="14" border="0"></a></td>
<td>
		<img src="images/index_04.gif" width="16" height="14" alt=""></td>
	<td colspan="2"><a href="memberarea.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image60','','images/rollover_05.gif',1)"><img src="images/index_05.gif" name="Image60" width="83" height="14" border="0"></a></td>
<td>
		<img src="images/index_06.gif" width="17" height="14" alt=""></td>
	<td colspan="2"><a href="register.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image61','','images/rollover_07.gif',1)"><img src="images/index_07.gif" name="Image61" width="57" height="14" border="0"></a></td>
<td rowspan="10">
		<img src="images/index_08.gif" alt="" width="110" height="1318" align="top"></td>
  </tr>
<tr>
	<td rowspan="9">
		<img src="images/index_09.gif" width="90" height="1304" alt=""></td>
	<td colspan="20">
		<img src="images/index_10.gif" width="800" height="19" alt=""></td>
</tr>
<tr>
	<td rowspan="2">
		<img src="images/index_11.gif" width="137" height="36" alt=""></td>
	<td><a href="index.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image53','','images/rollover_12.gif',1)"><img src="images/index_12.gif" name="Image53" width="77" height="15" border="0"></a></td>
<td rowspan="2">
		<img src="images/index_13.gif" width="10" height="36" alt=""></td>
	<td><a href="aboutus.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image54','','images/rollover_14.gif',1)"><img src="images/index_14.gif" name="Image54" width="62" height="15" border="0"></a></td>
<td rowspan="2">
		<img src="images/index_15.gif" width="12" height="36" alt=""></td>
	<td><a href="com.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image55','','images/rollover_16.gif',1)"><img src="images/index_16.gif" name="Image55" width="78" height="15" border="0"></a></td>
<td rowspan="2">
		<img src="images/index_17.gif" width="10" height="36" alt=""></td>
	<td><a href="events.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image56','','images/rollover_18.gif',1)"><img src="images/index_18.gif" name="Image56" width="116" height="15" border="0"></a></td>
<td rowspan="2">
		<img src="images/index_19.gif" width="12" height="36" alt=""></td>
	<td colspan="3"><a href="howitworks.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image57','','images/rollover_20.gif',1)"><img src="images/index_20.gif" name="Image57" width="86" height="15" border="0"></a></td>
<td rowspan="2">
		<img src="images/index_21.gif" width="13" height="36" alt=""></td>
	<td colspan="3"><a href="forums" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image58','','images/rollover_22.gif',1)"><img src="images/index_22.gif" name="Image58" width="49" height="15" border="0"></a></td>
<td colspan="4" rowspan="2">
		<img src="images/index_23.gif" width="138" height="36" alt=""></td>
</tr>
<tr>
	<td>
		<img src="images/index_24.gif" width="77" height="21" alt=""></td>
	<td>
		<img src="images/index_25.gif" width="62" height="21" alt=""></td>
	<td>
		<img src="images/index_26.gif" width="78" height="21" alt=""></td>
	<td>
		<img src="images/index_27.gif" width="116" height="21" alt=""></td>
	<td colspan="3">
		<img src="images/index_28.gif" width="86" height="21" alt=""></td>
	<td colspan="3">
		<img src="images/index_29.gif" width="49" height="21" alt=""></td>
</tr>
<tr>
	<td colspan="20">
		<img src="images/index_30.gif" width="800" height="27" alt=""></td>
</tr>
<tr>
	<td colspan="10" rowspan="2">
		<img src="images/index_31.gif" width="567" height="243" alt=""></td>
	<td height="222" colspan="9" background="images/index_32.gif"> </td>
<td rowspan="2">
		<img src="images/index_33.gif" width="20" height="243" alt=""></td>
</tr>
<tr>
	<td colspan="9">
		<img src="images/index_34.gif" width="213" height="21" alt=""></td>
</tr>
<tr>
	<td height="29" colspan="20" background="images/index_35.gif">Math Questions:</td>
</tr>
<tr>
	<td height="569" colspan="20" valign="top" background="images/index_36.gif"><table width="800" height="569" border="0" cellpadding="10">
          <tr>
            <td width="553" valign="top"><?php 
/*
print ("<A href='post.php'>New Topic</a> -");
print ("<A href='register.php'>Register</a> -");*/
//print("<A href='main.php'>Control Panel</a> ");// correct way
print "<link rel='stylesheet' href='style.css' type='text/css'>";
print "<table class='maintable'>";
print "<tr class='headline'><td color = 'white' width='50%'>Topic</td><td width='20'>Topic Starter</td><td>Replies</td><td> Last replied by</td></tr>";


//Get all Topics (Parentid = 0)
$getthreads="SELECT * from forumtutorial_posts WHERE parentid='0' AND `area`= '$area' order by lastrepliedto DESC";
$getthreads2=mysql_query($getthreads) or die("Could not get threads");
while($getthreads3=mysql_fetch_array($getthreads2))
{
//while its doing it get this information and take away anything harmful (php code)
  $getthreads3['title']=strip_tags($getthreads3['title']);
  $getthreads3['author']=strip_tags($getthreads3['author']);
  $name = strip_tags($getthreads3['post']);
  // the var that controls the length of the desciptions
  $len = 45;
// so part of the descirption dosnt Fu*k up the table shorten it if its more then X chars
$name = substr($name,0,$len);//start at the first letter, and then show $desclen amount of chars
	//if the length is 30 chars add "..." so they know there is more to it.
if (strlen ($name) == $len){
$name = $name. "...";
}
  
print "<tr class='mainrow'><td><A href='message.php?page=1&id=$getthreads3[postid]&catagory=$area'>$getthreads3[title]<br /></a>$name</td><td>$getthreads3[author]</td><td>$getthreads3[numreplies]</td><td> <b>$getthreads3[lastposter]</b></td>";
  print "</tr>";

}
print "</table>";
?> 

<br></td>
            <td width="201" valign="top">
         <script type="text/javascript"><!--
google_ad_client = "pub-8552204471372682";
/* 250x250, created 2/9/09 */
google_ad_slot = "0482586252";
google_ad_width = 250;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><br>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>  </td>
          </tr>
        </table>
    </td>
  </tr>
<tr>
	<td colspan="20">
		<img src="images/index_37.gif" width="800" height="381" alt=""></td>
</tr>
<tr>
	<td>
		<img src="images/spacer.gif" width="90" height="1" alt=""></td>
	<td>
		<img src="images/spacer.gif" width="137" height="1" alt=""></td>
	<td>
		<img src="images/spacer.gif" width="77" height="1" alt=""></td>
	<td>
		<img src="images/spacer.gif" width="10" height="1" alt=""></td>
	<td>
		<img src="images/spacer.gif" width="62" height="1" alt=""></td>
	<td>
		<img src="images/spacer.gif" width="12" height="1" alt=""></td>
	<td>
		<img src="images/spacer.gif" width="78" height="1" alt=""></td>
	<td>
		<img src="images/spacer.gif" width="10" height="1" alt=""></td>
	<td>
		<img src="images/spacer.gif" width="116" height="1" alt=""></td>
	<td>
		<img src="images/spacer.gif" width="12" height="1" alt=""></td>
	<td>
		<img src="images/spacer.gif" width="53" height="1" alt=""></td>
	<td>
		<img src="images/spacer.gif" width="21" height="1" alt=""></td>
	<td>
		<img src="images/spacer.gif" width="12" height="1" alt=""></td>
	<td>
		<img src="images/spacer.gif" width="13" height="1" alt=""></td>
	<td>
		<img src="images/spacer.gif" width="14" height="1" alt=""></td>
	<td>
		<img src="images/spacer.gif" width="16" height="1" alt=""></td>
	<td>
		<img src="images/spacer.gif" width="19" height="1" alt=""></td>
	<td>
		<img src="images/spacer.gif" width="64" height="1" alt=""></td>
	<td>
		<img src="images/spacer.gif" width="17" height="1" alt=""></td>
	<td>
		<img src="images/spacer.gif" width="37" height="1" alt=""></td>
	<td>
		<img src="images/spacer.gif" width="20" height="1" alt=""></td>
	<td>
		<img src="images/spacer.gif" width="110" height="1" alt=""></td>
</tr>
</table>
<!-- End ImageReady Slices -->
</body>
</html>

 

Now its the words: Topic Topic Starter Replies Last replied by  that appear the wrong color. The code that ouputs these is here:

 

<?php
print "<link rel='stylesheet' href='style.css' type='text/css'>";
print "<table class='maintable'>";
print "<tr class='headline'><td color = 'white' width='50%'>Topic</td><td width='20'>Topic Starter</td><td>Replies</td><td> Last replied by</td></tr>";
?>

 

any ideas anyone?

Link to comment
https://forums.phpfreaks.com/topic/146208-head-startig-to-hurtalot/
Share on other sites

i use this css on a couple diffrent pages though so i kind of want to figure out whats wrong, it would make things easier. the main problem with just setting it to white manually is i want everyhng else

 

.headline {font-family: Verdana,Sans-serif;font-weight: bold;color: white; background-color: #003366;font-size: 11px;}

 

and to go through and manually set all them to that could take a while.

So I have a css(will show below) that should be making text to be white. Here is my css.

 

Nothing in that CSS will set the text color to white. You have set it to black in a lot of spots though. And you have set the background of a couple things to be white. But you didn't set any white text anywhere.

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.