Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8278475
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T09:01:45+00:00 2026-06-08T09:01:45+00:00

I have a problem with my style sheet that I am using to create

  • 0

I have a problem with my style sheet that I am using to create the page menu bar. Whenever a page does not have previous or next page the cell is empty and the CSS only applies a background image. Whenever I try to implement this solution the cells that make up the menu bar are moved around and everything is no longer aligned. I need help to try and figure out how I can fix this issue.

enter image description here

The following is the class that has been applied to the empty cell that is shown in the image as the grayed out back button.

td.menu-back-disabled {
    background-image: url('back_first.png');
    display: block;
    border-style: none;
    border-width: 0px;
    padding: 0px;
    height: 34px;
    width: 85px;    
}
li.menu-bar {
    list-style-type: none;
    background-image: url('top.png');
    background-repeat: repeat-x;
    border-style: none;
    border-width: 0px;
    padding: 0px;
    height: 34px;
    width: 100%;
}

This the html for the menu bar:

<table class="menu">
<br>
<tr>
<td>
<a href="https://peter-larsens-macbook.local:8081/cgi-bin/display?page=environment" class="menu-home">
</a>
</td>
<td class="menu-edit-selected">
</td>
<td>
<a href="https://peter-larsens-macbook.local:8081/cgi-bin/display?page=upload&number=1&filter=1" class="menu-upload">
</a>
</td>
<td>
<a href="https://peter-larsens-macbook.local:8081/cgi-bin/display?page=comments" class="menu-comments">
</a>
</td>
<td>
<a href="https://peter-larsens-macbook.local:8081/cgi-bin/display?page=log&number=1" class="menu-log">
</a>
</td>
<td>
<a href="https://peter-larsens-macbook.local:8081/cgi-bin/display?page=stats&number=1" class="menu-stats">
</a>
</td>
<td>
<a href="https://peter-larsens-macbook.local:8081/cgi-bin/display?page=settings" class="menu-settings">
</a>
</td>
<td class="menu-bar">
</td>
<td class="menu-bar-right">
</td>
<td class="menu-back-disabled">
</td>
<td>
<a href="https://peter-larsens-macbook.local:8081/cgi-bin/display?page=edit&number=2&filter=1" class="menu-next">
</a>
</td>
</tr>
</table>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T09:01:46+00:00Added an answer on June 8, 2026 at 9:01 am

    Make sure your empty cells have &nbsp; in them to be placeholders.

    Also, try to avoid tables…

    Edit:

    Here is how my table looks at the moment. There should never be a place where the table will wrap to a new line since it’s only one column and width:100%;

    CSS:

        <style type="text/css">
            #menu {
                width:100%;
            }
            #menu td {
                text-align:center;
            }
            .menu-bar {
                width:30%;
            }
        </style>
    

    HTML:

        <table cellspacing="0" cellpadding="0" id="menu">
            <tr>
                <td>
                    <a href="#" class="menu-home">Home</a>
                </td>
                <td class="menu-edit-selected">
                    <a href="#" class="menu-home">Edit</a>
                </td>
                <td>
                    <a href="#" class="menu-upload">Upload</a>
                </td>
                <td>
                <a href="#" class="menu-comments">Comments</a>
                </td>
                <td>
                    <a href="#" class="menu-log">Log</a>
                </td>
                <td>
                    <a href="#" class="menu-stats">Statistics</a>
                </td>
                <td>
                    <a href="#" class="menu-settings">Settings</a>
                </td>
                <td class="menu-bar">&nbsp;</td>
                <td class="menu-bar-right">&nbsp;</td>
                <td class="menu-back-disabled">
                    <a href="#" class="menu-next">Back</a>
                </td>
                <td>
                    <a href="#" class="menu-next">Next</a>
                </td>
            </tr>
        </table>
    

    Any changes from this are probably from padding, margins or set widths. The td.menu-bar and/or td.menu-bar-right cannot be set to width:100%; because it would mean the entire width of the table/row, not the cell.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a problem with IE. I have a layer that has this style
I have the following problem: Within a stylesheet document I want to create an
I have a problem understanding one style definition in Windows 8 metro apps. When
I have a question regarding the style in the iframe the problem i have
My problem is simple, I have the font set in the body style to
I have problem with my query on C, I’m using the oci8 driver. This
I have a problem I see every so often - I create a CSS
I have this problem in IE8 that ignores my first stylesheet link. I don't
I'm creating a web application which loads tabs using AJAX. My problem is that
I am using JQuery to create html pages. First.html Second.html I have given one

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.