Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Please view my page

Posted on 2000-04-08
7
Medium Priority
?
143 Views
Last Modified: 2010-04-09
Hi,

I have got some trouble with the HTML of my navigation bar, and would
appreciate some help. The address is:
http://nl.internations.net/wimkerk/bar.html

Thanks in advance
0
Comment
Question by:wimkerk
7 Comments
 
LVL 2

Expert Comment

by:paulkd
ID: 2696905
You need to close your <h5> tagss, however, the remove the width=100% from the <table> tag just after the <!-- second cell and you will get the third changing to 130.
0
 

Author Comment

by:wimkerk
ID: 2696999
Hi paulkd,

I didn't close the <h5> tags because otherwise browsers will add extra space (one row).

When I remove the width as you suggested the three cells become the SAME size, about 200 pixels wide. And there is a big gap between the
second and last cell.
0
 
LVL 3

Expert Comment

by:davlun20080
ID: 2697402
Try this:

<table width="100%" border="0" cellpadding="1" cellspacing="0" bgcolor="#A82828">
    <tr>
      <td width="130" bgcolor="#FFFFFF"><img src="transparent.gif" width="130" height="1"></td>
      <td bgcolor="#FFFFFF" width="4"><img src="transparent.gif" width="6" height="1"></td>
      <td bgcolor="#FFFFFF"><img src="transparent.gif" width="130" height="1"></td>
      <td width="4" bgcolor="#FFFFFF"><img src="transparent.gif" width="6" height="1"></td>
      <td width="130" bgcolor="#FFFFFF"><img src="transparent.gif" width="130" height="1"></td>
    </tr>
    <tr>
      <td width="130" align=center><font size=-1 color=white>First Cell</font></td>
      <td bgcolor="#FFFFFF" width="4"><img src="transparent.gif" width="6" height="8"></td>
      <td>
        <table width="100%" border="0" cellpadding="0" cellspacing="0" vspace="1" hspace="1">
          <tr valign="middle">
            <td bgcolor="lightyellow" align="left"> &nbsp; <a href="about.html" style="font-size: 16pt">About</a>
              | <a href="help.html" style="font-size: 16pt">Help</a> | <a href="info.html" style="font-size: 16pt">Info</a>
            </td>
            <td bgcolor="lightyellow" valign="middle" align="right"> <a href="members.html" style="font-size: 16pt">Page</a>&nbsp;
            </td>
          </tr>
        </table>
      </td>
      <td align=center bgcolor="#FFFFFF" width="4"><img src="transparent.gif" width="6" height="8"></td>
      <td width="130" align=center><font size=-1 color=white>Third</font></td>
    </tr>
  </table>

To test this, create a clear 1x1 pixel gif and place it in your web folder.  Adjust the path in the code above to point to the clear image.  The clear image is used to hold space to keep the cells sized consistently, the hspace and vspace property on the table create the border around the center table.  I would also recommend you use style sheets for your site, you can then adjust for each browser and platform if you need to.

Let me know if you want any design changes.

davlun
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 22

Accepted Solution

by:
CJ_S earned 600 total points
ID: 2697418
Do this:

<table width=100% cellpadding=1 cellspacing=0 border=0>
<tr>

<!-- First Cell -->

<td bgcolor="brown" width="130" valign=top>

<table width="130" border="0" cellpadding="0" cellspacing="0">
<tr><td bgcolor="brown" align="center">

<font size=-1 color=white>First Cell</font></td>
</tr></table>
</td>

<!-- Space (yes I know this is also a cell :) -->

<td width=10><font color="#ffffff" face="Arial,Helvetica" size="-2">&nbsp;</td>


<!-- Second Cell -->
<td bgcolor="brown" width="100%" valign=top>

<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr><td bgcolor="lightyellow" align="left">

<h5>&nbsp; <a href="about.html">About</a> | <a href="help.html">Help</a> | <a href="info.html">Info</a> </td>
<td bgcolor="lightyellow" align="right"><h5><a href="members.html">Page</a>&nbsp; </font>
</td></tr></table>
 
<!-- Space -->                        

<td width=130 bgcolor=#ffffff><h5>&nbsp;</td>

<!-- Thirth Cell -->

<td width=130 bgcolor=brown>
<table width="130" border="0" cellpadding="0" cellspacing="0">
<tr><td bgcolor="brown" align="center">

<font size=-1 color=white>Third</font></td>
</tr></table>
</td></tr></table>
0
 
LVL 3

Expert Comment

by:fibdev
ID: 2698094
try this in the third cell:

<td width=130 bgcolor=brown nowrap><font size=-1 color=white>Third</font></td></tr></table>
0
 

Author Comment

by:wimkerk
ID: 2698646
Sorry davlun200800 but your solution results in a very large bar, with extra rows of space.

Thanks CJ_S you where the first to solve the problem, so the points are yours. But fibdev's (even easier) solution solves my problem as well. I have posted a "For fibdev".

Thanks again
0
 
LVL 3

Expert Comment

by:davlun20080
ID: 2698760
wimkerk,
Not sure what you mean, I tested in both IE and NS, resulted in a single bar across the top of the page, with the center table and colomn expanding to fill the entire width of the browser.

Just out of curiosity, did you make any changes (ie addition of words or layout)?  If not what platform are you working on so I can test further for my own knowledge.  Do you by chance reinsert the H5 tags?

davlun
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

877 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question