tochas40
tochas40

Reputation: 1

HTML/CSS table messes up layout

I'm trying to design a very simple website in HTML/CSS. It's all working fine until I add a table. Then my footer gets placed above my content and the background of my body dissapears. Does anyone know how to fix this? This is how it's supposed to look, but with the table instead of text: https://i.sstatic.net/4D0GZ.jpg This is how it looks now:https://i.sstatic.net/cdHK9.jpg Thank you!

Upvotes: 0

Views: 89

Answers (2)

TuomasK
TuomasK

Reputation: 502

You have forgotten to close the table with </table>

Upvotes: 1

myTechWisdom
myTechWisdom

Reputation: 21

Do you have webpage live anywhere? It would help a ton to see the code.

I typically have problems with Tables placing code in funny places on the the page if I miss closing a table tag. Maybe a tr/td closing tag was forgotten.

<table>
     <tr>
          <td>row1cell1</td>
          <td>row1cell2</td>
     </tr>
     <tr>
          <td>row2cell1</td>
          <td>row2cell2</td>
     </tr>
 </table>

Upvotes: 2

Related Questions