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 7691353
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T20:36:13+00:00 2026-05-31T20:36:13+00:00

This is my markup: <!DOCTYPE HTML> <html> <head> <title>Test title</title> <style type=text/css> * {

  • 0

This is my markup:

<!DOCTYPE HTML>
<html>
   <head>
      <title>Test title</title>
      <style type="text/css">
         *
         {
            margin:0px auto;
            padding:0px;
         }
         html,body
         {
            height:100%;
            width:100%;
         }
      </style>
   </head>
   <body>
      <table cellspacing="0" cellpadding="0" style="width: 100%; height: 100%;">
         <tr>
            <td style="height:55px;background:#CCC;" valign="top">
               <h1>Header</h1>
            </td>
         </tr>
         <tr>
            <td valign="top">
               Content @RenderBody()
            </td>
         </tr>
         <tr>
            <td style="height:85px;background:#CCC;" valign="bottom">
               Footer
            </td>
         </tr>
      </table>
   </body>
</html>

Can anybody tell me why td height is not taking effect? This same markup works in IE9. Is it due to the HTML5 doctype?

  • 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-05-31T20:36:14+00:00Added an answer on May 31, 2026 at 8:36 pm

    First, you should definitely rethink your approach to page layout. Tables should only be used for presenting tabular data rather than setting page layouts. You should look into Cascading Style Sheets (CSS) and layout elements such as DIV’s if possible.

    Addressing the question however, the height styles seem to apply in Chrome, and are valid as per the information here: http://www.w3schools.com/css/css_table.asp.

    As suggested above, try running your code through the W3C validator at http://validator.w3.org/.

    I would still recommend abandoning the use of tables if possible, and use an external CSS instead of inline styles to style up your elements as this is a much more modern, flexible and semantically correct approach. You may be following some outdated tutorials.

    I hope this helps.

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

Sidebar

Related Questions

Take the following markup: <!DOCTYPE html> <html> <head> <title>My test for StackOverflow</title> </head> <body>
Imagine this document: <!doctype html> <head> <title>Leak</title> </head> <body> <div id=container> <div id=main> <ul>
Given this markup: // Calendar.html?date=1/2/2003 <script> $(function() { $('.inlinedatepicker').datepicker(); }); </script> ... <div class=inlinedatepicker
Why does this markup ... <asp:TextBox ID=TextBox1 runat=server CausesValidation=False></asp:TextBox> <asp:RegularExpressionValidator ID=RegExValidatorTextBox1 runat=server ControlToValidate=TextBox1 Text=Invalid
Consider this simple markup: <body> <div style=border: 2px solid navy; position:absolute; width:100%; height:100%> </div>
Consider the following simple html page markup: <!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
How can I place these divs side by side? This is my markup: <!DOCTYPE
I've an html file with the below markup: <!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0
With this markup: <div id=e> <div id=f></div> </div> Does $('#e > #f') return the
I have this markup in an MVC app. <div id=ingredientlistdiv> <% Recipe recipe =

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.