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

  • Home
  • SEARCH
  • 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 8494785
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T23:23:38+00:00 2026-06-10T23:23:38+00:00

Below is my code for my website. It works perfectly on firefox but not

  • 0

Below is my code for my website. It works perfectly on firefox but not in chrome or safari. The only thing that doesn’t work is the navigation row displays to the right of the header picture and the home button is the full length of the header picture. I think it has something to do with the display:inline in the css but I’m note sure.

<html>
    <head>
        <title>Workouts</title>
        <link rel="stylesheet" href="style.css" type="text/css" />
    </head>
    <body>
    <div id = "page">
            <table border="0" cellspacing="0" cellpadding="0" align="center" class="border" width = "50%" height ="100%">
            <div id = "header">
                <tr>
                    <td>
                        <img src =images/header_logo2.png />
                    </td>
                </tr>
            </div>
                <tr class = "nav" height="30px" width="100%">
                    <td></td>
                    <td><a href="index.html">Home</a></td>
                    <td><a href="about.html">About</a></td>
                    <td><a href="workouts.html">Workouts</a></td>
                    <td><a href="trainers.html">Trainers</a></td>
                    <td><a href="contact.html">Contact</a></td>
                    <td></td>


                </tr>
                <tr class = "content" width="100%">
                    <td><img  width="100%" src="images/content.png" /></td>
                </tr>
            </table>
    </div>
    </body>
</html>

This is my stylesheet

* {
    margin-top:0;
    padding-top:0;
    padding-bottom: 0;
    margin-bottom: 0;
}
body{
    background:pink;
}
.border{
    background-color: #c92f51;
}
.nav a{
    text-decoration: none;
    color:pink;
}
.nav a:hover{
    color:gray;
}
.nav td{
    display: inline-table;
    width: 14.29%;
    height="30px";
    text-align: center;
    font-size: 24px;
    color:pink;

}
tr .content{
    background:#c92f51;
}
.content td{
    background:white;
    padding: 30px 30px 30px 30px;
}
  • 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-10T23:23:40+00:00Added an answer on June 10, 2026 at 11:23 pm

    Every table row has to have the same number of columns. If you don’t, you need a colspan attribute to make up for it.

    Also you should not have <div> tags directly instead a table. How browsers handle these types of errors is not very consistent, so it’s best to fix them. Try changing:

    <table border="0" cellspacing="0" cellpadding="0" align="center" class="border" width = "50%" height ="100%">
                <div id = "header">
                    <tr>
                        <td>
                            <img src =images/header_logo2.png />
                        </td>
                    </tr>
                </div>
    

    To

    <table border="0" cellspacing="0" cellpadding="0" align="center" class="border" width = "50%" height ="100%">
    
                <tr id = "header">
                    <td colspan="7">
                        <img src =images/header_logo2.png />
                    </td>
                </tr>
    

    And also add the same colspan on the last row:

    <tr class = "content" width="100%">
                        <td colspan=7><img  width="100%" src="images/content.png" /></td>
                    </tr>
    

    More generally, using tables for layout like this is not good practice nowadays. If you search google for “css layouts vs tables” you can find out a lot more about it.

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

Sidebar

Related Questions

Below code not work, but it's work fine for jsf1.2. Now the framework is
I am trying to scrap some content from a website but the code below
I have some problem with my cfml website. I have used the below code
The code below is a simplified version of my website. On my site, the
The code below removes www., etc. from the beginning of websites that are entered
below code is my databasehandler class i got it from a tutorial. Beside that
In below code when I click 'Vote' a vote results screen is displayed but
Below is my code: function email(from, to, subject, body){ if(subject == Website Feedback){ to
I have this (attached)code which works perfectly on all the AVDs I create with
We have code in our website that does a comparsion to what was stored

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.