Solved

Please view my page

Posted on 2000-04-08
7
141 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
Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

 
LVL 22

Accepted Solution

by:
CJ_S earned 150 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
html5 auto send email 7 26
Are there any non javascript based chart/graph solutions? 14 31
How to count in a table in php 22 35
hosting images 4 28
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

776 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