I created my web page in dreamweaver,suprising thing is that everything i write appears bolded.
i checked well and discovered this code at the top of my page is causing the problem,which is been inserted by Dreamweaver its self when i started my page.
So i dont know what is the importance of the code or should i just remove it,or it has a specific meaning.
what should i do to unbold the fonts.
here is the code causing the problem

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

please help!!!i need your suggestion.

Recommended Answers

All 9 Replies

All that code does is tell the browser to use XHTML, it has nothing to do with the actual formatting of the page. More than likely you have a misplaced <b> tag in your code somewhere.

here is my code please check it.

<?php session_start();?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="css/styles.css" />
<title>No body can stop you from being happy</title>
</head>

<body class="body">
<?php

if(!session_is_registered('user')){


include"checklogin.php";
exit();
}
?>
<table width="900" border="0" cellspacing="0" cellpadding="0" height=100% align="center" class="maintable">

  <tr align="left" valign="top" height="90">
    <td align="center" valign="top">
    
    
      <table width="900" border="0" cellspacing="0" cellpadding="0" height="90" >
  <tr valign="top">
    <th scope="row" align=right height="10"  background="images/toptablebg.jpg"><font color=white>blessed are all the peacemakers</font></th>
  </tr>
  <tr >
    <th height="80" align="right" valign="middle" scope="row" background="images/officiallogo.jpg"><font color=blue size=10></font> 
    <input name="search" type="text" size="30" value="search .." /> <input name="send" type="submit" value="search" />
    
     
    
    </th>
  </tr>
</table>

    
   </td>
   
  
  </tr>
  <tr valign="top">
    <th scope="row">
    <table width="900" border="0" cellspacing="0" cellpadding="0"  class="menutable">
  <tr valign="middle">
    <th  scope="row"><a href="index.php">HOME</a></th>
    <td ><a href="myprofile.php">MYPROFILE</a></td>
    <td ><a href="searching.php">SEARCH</a></td>
    <td ><a href="member.php">MEMBERS</a></td>
    <td ><a href="invite.php">INVITE</a></td>
    <td ><a href="groups.php">GROUPS</a></td>
    <td ><a href="forums.php">FORUM</a></td>
    
  </tr>
</table>

    
    
    
    </th>
  </tr>
  
  <tr valign="top">
    <th scope="row"><!--first column -->
    
    <table width="700" border="0" cellspacing="0" cellpadding="0"  height="100" align=center>
  <tr valign="top">
    <!-- right side tables -->
  
    <td>&nbsp;
	<table width="700" border="0" cellspacing="0" cellpadding="0"  height="100" class="featuredtable" >
  <tr valign="to"><td align=center>
  <CENTER> <?php echo" <a href=groupcreate.php?create='create' >";?><img src="images/newgroup.jpg" border=0></a></CENTER>
				
				 <table width="700" border="0" cellspacing="20" cellpadding="0"  align=center>
				 <tr><td>
			
				 
				 
	<?php			 
				 
		
				 $user=$_SESSION['user'];
                  include"config.php";		 
				  
				  if (isset($_GET['pageno'])) {
   $pageno = $_GET['pageno'];
} else {
   $pageno = 1;
} // if
$query = "SELECT count(*) FROM groups ";
$result = mysql_query($query, $dbcnx); 
$query_data = mysql_fetch_row($result);
$calc=mysql_num_rows($result);


$numrows = $query_data[0];
$counter==0;
	
$rows_per_page =5;
$lastpage      = ceil($numrows/$rows_per_page);

$pageno = (int)$pageno;
if ($pageno > $lastpage) {
   $pageno = $lastpage;
} // if
if ($pageno < 1) {
   $pageno = 1;
} // if

				if($counter==2) {
				echo "<br />"; 
				// reset the counter$counter = 0;
				$counter = 0;
				
				}
		
$limit = 'LIMIT ' .($pageno - 1) * $rows_per_page .',' .$rows_per_page;
$query = "SELECT * FROM groups  ORDER BY id DESC $limit";
$result = mysql_query($query, $dbcnx); 
$calca=mysql_num_rows($result);

				 //$index="SELECT *FROM groups ";
				 //$member=mysql_query($index);
				while( $row=mysql_fetch_array($result)){
				    
				      $admin=$row['admin'];
				       $description=$row['description'];
					    $date=$row['date'];	
                        $dates2=date("d-m-Y", strtotime($date)); 						
						 $photo=$row['photo'];	
						  $group=$row['groups'];	
						   $id=$row['id'];
                    $index="SELECT *FROM  groupmember  WHERE groupid ='$id'";
				 $member=mysql_query($index);
				$total= mysql_num_rows($member);   

					   
				 
				  //  echo"$id <a href=groupview.php?groupid=$id>  $group </a>   $description  $admin</br>";
				?> 
				 
				 
<table width=700 height=40 border=0  cellpadding=5 cellspacing=2 align=center  class="featuredtable">
 <tr valign=top><td width=100 height=50 align=left rowspan=4>
 
 
<?php if($photo){echo"<a href= groupview.php?groupid=$id><img src=groups/$photo  width=120 height=100 border=0></a>";
					  }
					  else{
					  echo"<a href= groupview.php?groupid=$id><img src=groups/nophoto.gif width=120 height=100 border=0></a>";
					  
					  }
					  ?>
 
 </td>
</tr>
 <tr><td width=100 align=right>Group:</td><td align=left><font color=blue><a href=<?php echo "groupview.php?groupid=$id"; ?>><?php echo$group?></a></font></td><td align=right><NOBR><?php echo"<a href=groupview.php?groupid=$id>";?>Open Group</a></NOBR></td></tr>
  
   <tr><td width=100 align=right> Members:</td><td align=left><font color=blue><?php 
   
   
   
   
   echo"$total"?></font></td><td align=right><NOBR><?php echo"<a href=groupsend.php?groupnumber=$id>";?> Join Group</a></NOBR></td></tr>
    <tr><td width=100 align=right>Created: </td><td colspan=2 align=left><font color=blue><?php echo$dates2?></font></td></tr>
    


</table>
				 
				 
				 
				 
				 
				 
				 
				 
				 
				 
				 
				 
				 
				 
			<?php	 
			
			
				$counter++;
				 }
				 
				 ?>
				 
			<?php	 
				 
				 
if ($pageno == 1) {
   //echo " FIRST PREV ";
} else {
   echo"<center>";
  //echo"<a href='{$_SERVER['PHP_SELF']}?pageno=1'>FIRST</a> ";
   $prevpage = $pageno-1;
  // echo " <a href='{$_SERVER['PHP_SELF']}?pageno=$prevpage'>PREV</a> ";
} // if

//echo " <aling=center>( Page $pageno of $lastpage ) </align>";

if ($pageno == $lastpage) {
   //echo " NEXT LAST ";
} else {
   $nextpage = $pageno+1;
  // echo " <a href='{$_SERVER['PHP_SELF']}?pageno=$nextpage'>NEXT</a> ";
  // echo " <a href='{$_SERVER['PHP_SELF']}?pageno=$lastpage'>LAST</a> ";
   echo "</center>";
   
   
} // if

   ?>
   
     <?php
			   if($numrows>4){
			   ?>
			   
			   
			   <table width=100% border=0 class="smslink">
			   <tr align=center><td><?php  echo"<a href='{$_SERVER['PHP_SELF']}?pageno=1'>FIRST</a> ";
  echo " <a href='{$_SERVER['PHP_SELF']}?pageno=$prevpage'>PREV</a> ";
			   ?></td>
			   <td><?php echo " <aling=center>( Page $pageno of $lastpage ) </align>"; ?></td><td>
			   <?php
			   echo " <a href='{$_SERVER['PHP_SELF']}?pageno=$nextpage'>NEXT</a> ";
   echo " <a href='{$_SERVER['PHP_SELF']}?pageno=$lastpage'>LAST</a> ";
			   
			  ?> </td></tr>
			   </table>
			   
			   <?php	
			   }
			   ?>
			   
			   
			   </td></tr>
               </table>
   
   
   
   
			   
			   
				 
				 
				 </td></tr>
				 </table>
  
  
  
  </td></tr>
  </table>
	
    
    
    
    
    
    
    </td>
  </tr>
</table>


    
    </th>
  </tr>
 
  <tr valign="top" align=center>
  
    <th scope="row"  valign="top">
    
    
    <table width="900" border="0" cellspacing="0" cellpadding="0" align=center>
  <tr>
    <th scope="col" valign="top">&nbsp;
    
    
    <table width="600" border="0" cellspacing="0" cellpadding="0" align=center>
  <tr>
    <th scope="col" style="border-width:1; color: #5F9EA0; border-style: solid"><a href=policy.php>Privacy</a></th>
    <th scope="col" style="border-width:1; color: #5F9EA0; border-style: solid"><a href=charles.php>designer</a></th>
    <th scope="col" style="border-width:1; color: #5F9EA0; border-style: solid"><a href=contactus.php>Contact us</a></th>
    <th scope="col" style="border-width:1; color: #5F9EA0; border-style: solid"><a href=terms.php>Terms of service</a></th>
   <th scope="col" style="border-width:1; color: #5F9EA0; border-style: solid">copyright &copy;2008</th>
  </tr>
</table>

    
    
    </th>
  </tr>
  <tr>
    <td background="images/toptablebg.jpg">&nbsp;</td>
  </tr>
</table>


    
    
    
    
    
    
    
    </th>
  </tr>
  
</table>




</body>
</html>

Hmm, that all looks ok. Try opening the css/styles.css file and checking it. In particular, check the entry for body, and see if bold has been applied to its style.

here is my style.

.body{
background-image:url(bg_image.jpg);
background-repeat: repeat;
font-size: 12px;
font-family: Arial,Times New Roman, Sans-Serif;
}

.body a:link{color:#0000FF; text-decoration:none;}
.body a:visited{color:#0000FF; text-decoration:none;}
.body a:hover{background-color:none;color:none; text-decoration:underline;}
.maintable{
background-color:#ffffff;
border-style: solid; 
border-color:#8DCFF4;
 border-width:1px;

}
.logintable{
border-style: solid; 
border-color:#8DCFF4;
 
 border-width:0px 1px 1px 1px;



}

.menutable{
border-style: solid; 
border-color:none;
border-width:1px;
padding:0px;
margin:0;
width:900px;
}

 .menutable a{
display : block;
padding : 5px;
border : 1px solid #666;
background-color : #959595;
text-align:center;
width:116px;


}
.menutable a:link{color:white; text-decoration:none;}
.menutable a:visited{color:white; text-decoration:none;
}
.menutable a:hover{background-color:#00AEED;color:#FFFFFF;

}
.featuredtable
{
border-style:solid; 
border-color:#8DCFF4;
border-width:1px;
}

.showingfaces
{
border-style:solid; 
border-color:#8DCFF4;

border-width:1px;
}


.sorround
{
border-style:solid; 
border-right-color:;


border-width:1px;
}

.recent
{
border-style:solid; 
border-color:#8DCFF4;
border-width:1px;
}


#navlist
{
margin-left: 50px;
padding-left: 15;
list-style: none;

}

#navlist li 
{
padding-left: 20px;
list-style-image: url(arrow.png);
vertical-align:3px; 
list-style-position: outside;
color:gray;

/*
background-image: url(arrow.png);
background-repeat: no-repeat;
background-position: 0 .5em;
*/
}


#reg_log
{
margin-left: 30px;
padding-left:20;
list-style: none;
border:0;
}

#reg_log li 
{
padding-left: 2px;


list-style-position: outside;
}
.reg_log a:link{color:black; text-decoration:none;}.reg a:visited{color:#C4C5A9; text-decoration:none;
}
.reg_log a:hover{background-color:none ;color:green;
text-decoration:none;
}
.reg_log  a:visited{color:#C4C5A9; text-decoration:none;
}


#submit input
{
margin-left: 0em;

} 

input
{
color: #000;
background: #ffffff;
border: 1px outset #8DCFF4;

}

#submit input
{
color: #000;
background: #ffffff;
border: 1px outset blue;
} 

fieldset
{
border: 1px solid #781351;
width: 50em
}


.mywall
{
border-style:dotted; 
border-bottom-color:#8DCFF4;
border-width:1px;
}

ul.sidemenu {
padding:0px;
margin:0;
list-style:none;
font-family:verdana,Arial,Helvetica,sans-serif;
font-size:0.8em;
border-bottom:1px solid #6f3e04;
width:120px;
background-color:#eeeedc;


}
ul.sidemenu  li{
border:1px solid #6f3e04;

}
ul.sidemenu  li a{
text-decoration:none;
display:block;
width:120px;
color:#000000;
font-weight:bold;
padding:3px;


}
ul.sidemenu  li  a:link{color:#000000; text-decoration:none;}

ul.sidemenu  li a:hover {
background-color:#b9bb79;
color:#eeeedc;


}
ul.sidemenu  li a:visited{color:#000000; text-decoration:none;
}


.smsreply
{
border-style:solid; 
border-bottom-color:#8DCFF4;
border-width:1px;
}
.error
{
border-style:solid; 
border-color:#8B0000;
border-width:1px;
}

.forumdisplay
{
border-style:solid; 
border-color:#CCCC99;
border-width:1px;
}

.bodyme{
background-image:url(t.jpg);
background-repeat: repeat;

font-size: 14px;


font-family: Arial, Verdana, Georgia, Times New Roman, Sans-Serif;
}
.bodyme a:link{color:#0000FF; text-decoration:none;}
.bodyme a:visited{color:#0000FF; text-decoration:none;}
.bodyme a:hover{background-color:none;color:none; text-decoration:underline;}
 .topme{
border-style:dotted; 
border-color:#CCCC99;
border-width:1px;
}



.me
{
background-image:url(bg_image.jpg);
background-repeat: repeat;
}

As you are using xhtml so, text inside th tags will be bold.
use

th {

	border-left: none;
	border-right: none;
	font-size: smaller;
}

OR

try to avoid th tags

@arinkverma: th tags are only used for column headings in a table, so they probably should be bold.

@mrniceguy: sorry I am out of ideas, maybe someone else with a bit more knowledge of dreamweaver can help you.

the problem was with the th tags,because after i applied as
@arinkverma: suggested only i added font-weight:normal;
and everything went worked.

th {
 
	border-left: none;
	border-right: none;
	font-size: smaller;
font-weight:normal;
}

Thankx very much For your Contributions.

So does dreamweaver put the entire page into one big table when it generates the HTML? I just was wanting to understand exactly why this has worked for you as I will soon be using DW to create a website and have never used the tool before.

When dreamweaver create a table it combines the <th> tags and the <td> together.
thats why i were unable to realize the problem.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.