Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS HTML Table

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #247038
    TV
    Participant

    I’ve been having problems trying to adjust the height of the table. I tried CSS etc. and nothing is working out for me. I’ve spanned the table across which is what I want, but I need it to go down the page.

    <!DOCTYPE html>
        <html>
        <body>
            <table border="1"; width=100%;>
               <td colspan="2" align="center">Abaday Strawbear
               Productions</td>
        <tr>
            <td width="12%">Menu</td>
            <td rowspan="5" align="center">
                 Content</br>
                 AboutAboutAbout<br>
                 AboutAboutAbout<br>
                 AboutAboutAbout<br>
             </td>
        </tr> 
        <tr>
            <td>About</td>
    
    `</tr>
    <tr>
        <td>Services</td>
    </tr>
        <td>Portfolio</td>
     </tr>   
     <tr>
        <td>Contact Us</td> 
     </tr>
     <tr>
        <td colspan="2">CopyrightCopyright</td>
    </table>
    </body>
    </html>
    
    #247039
    Paulie_D
    Member

    The height has to relate to something.

    In this case, you need to set the height of the html and bodyelements to 100%.

    http://codepen.io/Paulie-D/pen/BLbvOR

    That said….DON’T USE TABLES FOR LAYOUT. Webpages haven’t used that method since the 1990’s.

    http://learnlayout.com/

    Also, the align attribute is obsolete/deprecated and should no longer be used.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.