Wrox Programmer Forums
|
BOOK: Beginning Dreamweaver MX/MX 2004 MX ISBN: 978-0-7645-4404-0; MX 2004 ISBN: 978-0-7645-5524-4
This is the forum to discuss the Wrox book Beginning Dreamweaver MX by Charles E. Brown, Imar Spaanjaars, Todd Marks; ISBN: 9780764544040
Please indicate which version of the book you are using when posting questions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Dreamweaver MX/MX 2004 MX ISBN: 978-0-7645-4404-0; MX 2004 ISBN: 978-0-7645-5524-4 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 13th, 2005, 04:25 PM
Authorized User
 
Join Date: Apr 2005
Posts: 79
Thanks: 0
Thanked 0 Times in 0 Posts
Default White line above Nav

Hi All

I am potting together a page using what I have learned in BGDM 2004MX.

I have a page, Code below.

I have a white line or block above the Editable content amd I have a > between the heading and the navigation bar.

For love not money can I find out where these are coming from. 4 hours spent looking for some light.

If anyone can see why I would be thrilled.
Thanks.

All the Best
Jacky Kenna



<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>

<title>MRNS Template Development screens</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--


-->
</style>
        <link href="../stylesheets/mrnsStyles.css" rel="stylesheet" type="text/css">


</head>

<body>
            <table width="100%" border="0" cellpadding="0" cellspacing="0" background="../images/bgColTopPan.png" bgcolor="#B7E8FF">
                        <tr>
                        <td width="24"></td>
                        <td width="105" rowspan="2"><img src="../images/logoSmal.png" width="135" height="27"></td>
                        <td colspan="3" rowspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                    <td>
                    <table width="100%" border="0" cellpadding="0" cellspacing="0" background="../images/bgColTopPan.png">
                          <tr>
                            <td width="30%"><div align="center"><a href="../bldg_Screens/yrAcc.php" class="label">Logged on as </a></div></td>
                            <td width="30%"><div align="center"><a href="../bldg_Screens/currentProject">Current project : </a></div></td>
                            <td width="30%"><div align="center"><a href="../yrAcc.php">Your Account </a></div></td>
                            <td width="25"><img src="../images/phones-4-u-logo.png" width="27" height="27"></td>
                              <td width="24"></td>
                        </tr>
                    </table>
                </td>
            </table>
        </td>

          </tr>

    </table>

    <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#C1CBD7">
          <tr>
            <td width="24"></td>
                 <td><div align="center"></div></td>
                <td><a href="../Indexmrnswebsite2.php">Home</a></td>
                <td>&nbsp;&nbsp;&nbsp;</td>
                <td><a href="../bldg_Screens/locationC.php">Location Criteria</a></td>
                <td>&nbsp;&nbsp;&nbsp;</td>
                <td><a href="../bldg_Screens/customData.php">Custom Data</a></td>
                <td>&nbsp;&nbsp;&nbsp;</td>
                <td><a href="../bldg_Screens/selectGroups.php">Selection Groups</a></td>
                <td>&nbsp;&nbsp;&nbsp;</td>
                <td><a href="../bldg_Screens/ctrlScrBldger.php">Contol Screen Builder</a></td>
                <td>&nbsp;&nbsp;&nbsp;</td>
                <td><a href="../bldg_Screens/rptScrBldger.php">Reports Screen Builder</a></td>
                <td>&nbsp;&nbsp;&nbsp;</td>
                <td><a href="../controler.php">Controler</a></td>
                <td>&nbsp;&nbsp;&nbsp;</td>
                <td><a href="../contact.php" id="contact">Contact us</a></td>
            <td width="24"></td>
            </tr>>
      </table>
   <br>
   <br>
    <script language="JavaScript" type="text/javascript">
                           Var sPageName = '<%=Request.ServerVariables("SCRIPT_NAME")%>';
                           sPageName = sPageName.substr(sPageName.lastIndexOf('/') + 1) .toLowercase();
                          sPageName = sPageName.substr (0, sPageName.lastIndexOf('.'));
                           if (document.getElementById(sPageName))
                        {
                        document.getElementById(sPageName) .style.fontweight = 'Bold';
                        document.getElementById(sPageName) .style.fontsize = '14pt';
                        }
                    </script><table width="100%" border="0" cellpadding="0" cellspacing="0" background="../bldg_Screens/images/bgColDevSheets.png" bgcolor="#ECE9D8">
      <tr>
          <td width="24" bgcolor="#F5F5EB"><img src="../images/spacerLftDevCol.png" width="20" height="550"></td>
                <td align="left" valign="top" background="../images/bgColDevScrs.png" bgcolor="#F5F5EB">
                    Contents</td>
          <td width="24" background="../images/bgColDevScrs.png" bgcolor="#F5F5EB">&nbsp;</td>
      </tr>
</table>




<table width="100%" border="0" cellspacing="0" cellpadding="0"background="../images/btnBgCol.png" bgcolor="#C1CBD7">
                <tr>
                      <td class="labelLeft">&copy; All rights Reserved 2005 </td>
                      <td><a href="../aboutUs.php" id="aboutUs">About us </a></td>
                      <td><a href="../sales.php" id="sales">Sales </a></td>
                      <td><a href="../help.php" id="help">Help </a></td>
                      <td><a href="../contact.php" id="contact">Contact Us</a></td>
                      <br>
                      <script language="JavaScript" type="text/javascript">
                           Var sPageName = '<%=Request.ServerVariables("SCRIPT_NAME")%>';
                           sPageName = sPageName.substr(sPageName.lastIndexOf('/') + 1) .toLowercase();
                          sPageName = sPageName.substr (0, sPageName.lastIndexOf('.'));
                           if (document.getElementById(sPageName))
                        {
                        document.getElementById(sPageName) .style.fontweight = 'Bold';
                        document.getElementById(sPageName) .style.fontsize = '14pt';
                        }
                    </script>
                </tr>
              </table></body>
</html>


 
Old June 13th, 2005, 04:32 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi,

It's your on-line debugger, Imar..... I simple searched for >> and this came up:

    <td width="24"></td>
</tr>> </table>
   <br>
   <br>
    <script language="JavaScript" type="text/javascript">


Is this the one?

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Flower by Eels (Track 7 from the album: Beautiful Freak) What's This?
 
Old June 14th, 2005, 02:11 AM
Authorized User
 
Join Date: Apr 2005
Posts: 79
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Imar

What a pleasure to get in and see a friendly note from you after so many hours trying to solve what is a simple issue. However I still can not find the offending code. I never thought of using a search facility. I copied to word and searched but could not find it.
Code copied again in case I have altered it since then. (in my sleep).

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>

<title>MRNS Template Development screens</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--


-->
</style>
        <link href="../stylesheets/mrnsStyles.css" rel="stylesheet" type="text/css">


</head>

<body>
            <table width="100%" border="0" cellpadding="0" cellspacing="0" background="../images/bgColTopPan.png" bgcolor="#B7E8FF">
                        <tr>
                        <td width="24"></td>
                        <td width="105" rowspan="2"><img src="../images/logoSmal.png" width="135" height="27"></td>
                        <td colspan="3" rowspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                    <td>
                    <table width="100%" border="0" cellpadding="0" cellspacing="0" background="../images/bgColTopPan.png">
                          <tr>
                            <td width="30%"><div align="center"><a href="../bldg_Screens/yrAcc.php" class="label">Logged on as </a></div></td>
                            <td width="30%"><div align="center"><a href="../bldg_Screens/currentProject">Current project : </a></div></td>
                            <td width="30%"><div align="center"><a href="../yrAcc.php">Your Account </a></div></td>
                            <td width="25"><img src="../images/phones-4-u-logo.png" width="27" height="27"></td>
                              <td width="24"></td>
                        </tr>
                    </table>
                </td>
            </table>
        </td>

          </tr>

    </table>

            <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#C1CBD7">
              <tr>
                <td width="24"></td>
                <td><div align="center"></div></td>
                <td><a href="../Indexmrnswebsite2.php">Home</a></td>
                <td>&nbsp;&nbsp;&nbsp;</td>
                <td><a href="../bldg_Screens/locationC.php">Location Criteria</a></td>
                <td>&nbsp;&nbsp;&nbsp;</td>
                <td><a href="../bldg_Screens/customData.php">Custom Data</a></td>
                <td>&nbsp;&nbsp;&nbsp;</td>
                <td><a href="../bldg_Screens/selectGroups.php">Selection Groups</a></td>
                <td>&nbsp;&nbsp;&nbsp;</td>
                <td><a href="../bldg_Screens/ctrlScrBldger.php">Contol Screen Builder</a></td>
                <td>&nbsp;&nbsp;&nbsp;</td>
                <td><a href="../bldg_Screens/rptScrBldger.php">Reports Screen Builder</a></td>
                <td>&nbsp;&nbsp;&nbsp;</td>
                <td><a href="../controler.php">Controler</a></td>
                <td>&nbsp;&nbsp;&nbsp;</td>
                <td><a href="../contact.php" id="contact">Contact us</a></td>
                <td width="24"></td>
              </tr>
            >
            </table>
            <br>
            <br>
            <script language="JavaScript" type="text/javascript">
                           Var sPageName = '<%=Request.ServerVariables("SCRIPT_NAME")%>';
                           sPageName = sPageName.substr(sPageName.lastIndexOf('/') + 1) .toLowercase();
                          sPageName = sPageName.substr (0, sPageName.lastIndexOf('.'));
                           if (document.getElementById(sPageName))
                        {
                        document.getElementById(sPageName) .style.fontweight = 'Bold';
                        document.getElementById(sPageName) .style.fontsize = '14pt';
                        }
                    </script>

            <table width="100%" border="0" cellpadding="0" cellspacing="0" background="../bldg_Screens/images/bgColDevSheets.png" bgcolor="#ECE9D8">
          <tr>
              <td width="24" bgcolor="#F5F5EB"><img src="../images/spacerLftDevCol.png" width="20" height="550"></td>
                <td align="left" valign="top" background="../images/bgColDevScrs.png" bgcolor="#F5F5EB">
                    Contentswe</td>
                  <td width="24" background="../images/bgColDevScrs.png" bgcolor="#F5F5EB">&nbsp;</td>
          </tr>
    </table>

<table width="100%" border="0" cellspacing="0" cellpadding="0"background="../images/btnBgCol.png" bgcolor="#C1CBD7">
                <tr>
                      <td class="labelLeft">&copy; All rights Reserved 2005 </td>
                      <td><a href="../aboutUs.php" id="aboutUs">About us </a></td>
                      <td><a href="../sales.php" id="sales">Sales </a></td>
                      <td><a href="../help.php" id="help">Help </a></td>
                      <td><a href="../contact.php" id="contact">Contact Us</a></td>
                      <br>
                      <script language="JavaScript" type="text/javascript">
                           Var sPageName = '<%=Request.ServerVariables("SCRIPT_NAME")%>';
                           sPageName = sPageName.substr(sPageName.lastIndexOf('/') + 1) .toLowercase();
                          sPageName = sPageName.substr (0, sPageName.lastIndexOf('.'));
                           if (document.getElementById(sPageName))
                        {
                        document.getElementById(sPageName) .style.fontweight = 'Bold';
                        document.getElementById(sPageName) .style.fontsize = '14pt';
                        }
                    </script>
                </tr>
</table></body>
</html>


All the Best Jacky

PS If you are ever in London and need somewhere to crash I live in central London and would be delighted to offer you a room. (when the current building is finished)


 
Old June 14th, 2005, 02:21 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

It's right below the Contact Us menu item....

     <td><a href="../contact.php" id="contact">Contact us</a></td>
               <td width="24"></td>
             </tr>
           >

There is an additional > on the last line.

Dreamweaver has really powerful search capabilities too. Just switch to Code View and press Ctrl+F.

I won't be in London for the forseeable short future, but I'll keep your offer in mind. Thanks ;)

Imar
 
Old June 14th, 2005, 04:04 AM
Authorized User
 
Join Date: Apr 2005
Posts: 79
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Imar
Got it thanks. But the white block still persists. I also have a white block over the navigation bar at the base. If I make the navigation with simple text then there is no white block . The white block shows up because I have used a colour for the background. In case something is sticking in the cache I am saving, putting, refreshing, closing DM and browsers and opening it all again to check.

The gist is that the editable region has a space above it which is by default white. I have looked again and again at the code trying to see what there is but this evades me.

What I would like to achieve is to have the editable region start higher up so as no to loose this space.

If you have a moment.

At least I am getting to understand the code much better.

I have two templates and the same problem on both. Code below
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>

<title>Mrns Main Template 1st level</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--


-->
</style>
<link href="../stylesheets/mrnsStyles.css" rel="stylesheet" type="text/css">

<style type="text/css">
<!--
.style1 {font-size: x-small}
.style3 {font-size: small}
td {
    font-family: Arial, Helvetica, sans-serif;
    color: #000000;
}
-->
</style>
</head>

<body>
            <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#B7E8FF">
                  <tr bgcolor="#B7E8FF" >
                    <td width="24">&nbsp;</td>
                    <td width="80%" rowspan="3"><img src="../images/logo.png" width="241" height="73"></td>
                    <td width="10">&nbsp;</td>
                    <td width="13">&nbsp;</td>
                    <td width="248">
                    <a href="../logOn.php" class="label">Customer Log on</a></td>
                    <td width="24">&nbsp;</td>
                  </tr>
                  <tr bgcolor="#B7E8FF" >
                    <td width="24">&nbsp;</td>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                    <td width="248"><a href="../yrAcc.php">Your Account</a> </td>
                    <td width="24">&nbsp;</td>
                <tr bgcolor="#B7E8FF" >
                    <td width="24">&nbsp;</td>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                    <td width="248"><span class="labelLeft">Logged on as: </span>
                    <td class="label">&nbsp;</td>
                       <td width="24">&nbsp;</td>
                  </tr>
            </table>

          <tr><table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>
        <table width="100%" border="0" cellpadding="0" cellspacing="0" background="../images/btnBgCol.png" bgcolor="#C1CBD7">
          <tr>
            <td>&nbsp;</td>
        <td><table width="100%" border="0" align="right" cellpadding="0" cellspacing="0">
            <tr>
              <td><a href="../Indexmrnswebsite2.php" id="home">Home</a></td>
              <td>&nbsp;&nbsp;&nbsp;</td>
              <td><a href="../aboutUs.php" id="aboutUs">About us</a></td>
              <td>&nbsp;&nbsp;&nbsp;</td>
              <td><a href="../proSel.php" id="proSel">Project Selector</a></td>
              <td>&nbsp;&nbsp;&nbsp;</td>
              <td><a href="../recruit.php" id="recruit">Recruitment</a></td>
              <td>&nbsp;&nbsp;&nbsp;</td>
              <td><a href="../mgmtRpt.php" id="mgmtRpt">Management Reports</a></td>
              <td>&nbsp;&nbsp;&nbsp;</td>
              <td><a href="../controler.php" id="controler">Controler</a></td>
              <td>&nbsp;&nbsp;&nbsp;</td>
              <td><a href="../contact.php" id="contact">Contact us</a></td>
              <td>&nbsp;&nbsp;&nbsp;</td>
              <td><a href="../help.php" id="help">Help</a></td>
            </tr>
        </table></td>
      </tr>
    </table>
    <br>
    <br>
    <script language="JavaScript" type="text/javascript">
       Var sPageName = '<%=Request.ServerVariables("SCRIPT_NAME")%>';
       sPageName = sPageName.substr(sPageName.lastIndexOf('/')
                                   + 1) .toLowercase();
        sPageName = sPageName.substr (0, sPageName.lastIndexOf('.'));
       if (document.getElementById(sPageName))
    {
        document.getElementById(sPageName) .style.fontweight = 'Bold';
        document.getElementById(sPageName) .style.fontsize = '14pt';
    }</script>


    </td>
  </tr>
</table>
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="24"><img src="../images/spacerRht.png" width="20" height="400"></td>
    <td valign="top">
      <p>Content </p>
      <p>Over type in code view and enter whatever cose we have elsewhere as though this were a normal page </p>
    </td>
    <td width="24">&nbsp;</td>
  </tr>
</table>

        <table width="100%" border="0" cellpadding="0" cellspacing="0" background="../images/btnBgCol.png" bgcolor="#C1CBD7">
            <tr>
                <td width="24">&nbsp;</td>
                    <td>

    <table width="100%" border="0" cellspacing="0" cellpadding="0"background="../images/btnBgCol.png" bgcolor="#C1CBD7">
       <tr>
               <td width="24">&nbsp;</td>
                <td class="labelLeft">&copy; All rights Reserved 2005 </td>
                <td><a href="../aboutUs.php" id="aboutUs">About us </a></td>
                <td><a href="../sales.php" id="sales">Sales </a></td>
                    <td><a href="../help.php" id="help">Help </a></td>
                <td><a href="../contact.php" id="contact">Contact Us</a></td>
            <td width="24">&nbsp;</td>

                      <br>
        <script language="JavaScript" type="text/javascript">
               Var sPageName = '<%=Request.ServerVariables("SCRIPT_NAME")%>';
            sPageName = sPageName.substr(sPageName.lastIndexOf('/') + 1) .toLowercase();
            sPageName = sPageName.substr (0, sPageName.lastIndexOf('.'));
               if (document.getElementById(sPageName))
            {
            document.getElementById(sPageName) .style.fontweight = 'Bold';
            document.getElementById(sPageName) .style.fontsize = '14pt';
            }
        </script>
       </tr>
      </table></td>
                <td width="24">&nbsp;</td>
            </tr>
        </table>
  </body>
</html>


xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxx


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>

<title>MRNS Template Development screens</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--


-->
</style>
        <link href="../stylesheets/mrnsStyles.css" rel="stylesheet" type="text/css">


</head>

<body>
            <table width="100%" border="0" cellpadding="0" cellspacing="0" background="../images/bgColTopPan.png" bgcolor="#B7E8FF">
                        <tr>
                        <td width="24"></td>
                        <td width="105" rowspan="2"><img src="../images/logoSmal.png" width="135" height="27"></td>
                        <td colspan="3" rowspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                    <td>
                    <table width="100%" border="0" cellpadding="0" cellspacing="0" background="../images/bgColTopPan.png">
                          <tr>
                            <td width="30%"><div align="center"><a href="../bldg_Screens/yrAcc.php" class="label">Logged on as </a></div></td>
                            <td width="30%"><div align="center"><a href="../bldg_Screens/currentProject">Current project : </a></div></td>
                            <td width="30%"><div align="center"><a href="../yrAcc.php">Your Account </a></div></td>
                            <td width="25"><img src="../images/phones-4-u-logo.png" width="27" height="27"></td>
                              <td width="24"></td>
                        </tr>
                    </table>
                </td>
            </table>
        </td>

          </tr>

    </table>

    <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#C1CBD7">
          <tr>
            <td width="24"></td>
                 <td><div align="center"></div></td>
                <td><a href="../Indexmrnswebsite2.php">Home</a></td>
                <td>&nbsp;&nbsp;&nbsp;</td>
                <td><a href="../bldg_Screens/locationC.php">Location Criteria</a></td>
                <td>&nbsp;&nbsp;&nbsp;</td>
                <td><a href="../bldg_Screens/customData.php">Custom Data</a></td>
                <td>&nbsp;&nbsp;&nbsp;</td>
                <td><a href="../bldg_Screens/selectGroups.php">Selection Groups</a></td>
                <td>&nbsp;&nbsp;&nbsp;</td>
                <td><a href="../bldg_Screens/ctrlScrBldger.php">Contol Screen Builder</a></td>
                <td>&nbsp;&nbsp;&nbsp;</td>
                <td><a href="../bldg_Screens/rptScrBldger.php">Reports Screen Builder</a></td>
                <td>&nbsp;&nbsp;&nbsp;</td>
                <td><a href="../controler.php">Controler</a></td>
                <td>&nbsp;&nbsp;&nbsp;</td>
                <td><a href="../contact.php" id="contact">Contact us</a></td>
            <td width="24"></td>
            </tr>
      </table>
   <br>
   <br>
    <script language="JavaScript" type="text/javascript">
                           Var sPageName = '<%=Request.ServerVariables("SCRIPT_NAME")%>';
                           sPageName = sPageName.substr(sPageName.lastIndexOf('/') + 1) .toLowercase();
                          sPageName = sPageName.substr (0, sPageName.lastIndexOf('.'));
                           if (document.getElementById(sPageName))
                        {
                        document.getElementById(sPageName) .style.fontweight = 'Bold';
                        document.getElementById(sPageName) .style.fontsize = '14pt';
                        }
                    </script>

    <table width="100%" border="0" cellpadding="0" cellspacing="0" background="../bldg_Screens/images/bgColDevSheets.png" bgcolor="#ECE9D8">
          <tr>
                  <td width="24" bgcolor="#F5F5EB"><img src="../images/spacerLftDevCol.png" width="20" height="550"></td>
                <td align="left" valign="top" background="../images/bgColDevScrs.png" bgcolor="#F5F5EB">
                Contentswe</td>
                  <td width="24" background="../images/bgColDevScrs.png" bgcolor="#F5F5EB">&nbsp;</td>
          </tr>
    </table>

     <table width="100%" border="0" cellspacing="0" cellpadding="0"background="../images/btnBgCol.png" bgcolor="#C1CBD7">
       <tr>
               <td width="24">&nbsp;</td>
                <td class="labelLeft">&copy; All rights Reserved 2005 </td>
                <td><a href="../aboutUs.php" id="aboutUs">About us </a></td>
                <td><a href="../sales.php" id="sales">Sales </a></td>
                    <td><a href="../help.php" id="help">Help </a></td>
                <td><a href="../contact.php" id="contact">Contact Us</a></td>
            <td width="24">&nbsp;</td>

                      <br>
        <script language="JavaScript" type="text/javascript">
               Var sPageName = '<%=Request.ServerVariables("SCRIPT_NAME")%>';
            sPageName = sPageName.substr(sPageName.lastIndexOf('/') + 1) .toLowercase();
            sPageName = sPageName.substr (0, sPageName.lastIndexOf('.'));
               if (document.getElementById(sPageName))
            {
            document.getElementById(sPageName) .style.fontweight = 'Bold';
            document.getElementById(sPageName) .style.fontsize = '14pt';
            }
        </script>
       </tr>
      </table>

      </body>
</


 
Old June 14th, 2005, 03:17 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

I am not sure what white space you were referring to. However, if it's that white space directly below the main menu, this might be it:

   </table>
<br>
   <br>
    <script language="JavaScript" type="text/javascript">
      Var sPageName = '<%=Request.ServerVariables("SCRIPT_NAME")%>';
      sPageName = sPageName.substr(sPageName.lastIndexOf('/')

There are two line breaks above the JavaScript. Remove those and your white space is gone.

I notice you use a lot of nested tables in your site. You may not need all of them, as they tend to bloat the page, making it slower to load and more difficult to maintain. I know I haven't given the best example by using tables for layout in the book, but 7 tables for this design may be a bit too much. You could bring it down to 0 which for you may be an impossible task at this stage, but it would be easy to strip at least four of them.

A simple table like this:


<table>
<tr>
  <td>
    header here
  </td>
</tr>
<tr>
  <td>
    Main content here
  </td>
</tr>
<tr>
  <td>
    Footer here
  </td>
</tr>
</table>

would really make the page easier to maintain and understand.
Then you could use another nested table for the Logo animation and maybe another for the Main Menu.
That could also minimize the need for stuff like old skool spacer images....

If you have more or other white space issues, please do let me know.

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Invisible Kid by Metallica (Track 5 from the album: St.Anger) What's This?





Similar Threads
Thread Thread Starter Forum Replies Last Post
Nav bars volsha Dreamweaver (all versions) 3 October 30th, 2007 02:02 AM
DIV nav problem socoolbrewster CSS Cascading Style Sheets 1 June 3rd, 2006 05:09 PM
Nav Bar Styling VictorVictor BOOK: Beginning CSS: Cascading Style Sheets for Web Design ISBN: 978-0-7645-7642-3 1 May 16th, 2006 06:02 PM
nav - how to show what page you are on cat CSS Cascading Style Sheets 2 November 4th, 2004 09:00 PM
nav bar problems Morrislgn Javascript How-To 1 June 3rd, 2004 07:45 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.