Why when I put a table code before the <div></div> code and I run it, the table now become at the bottom of the page? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Why when I put a table code before the <div></div> code and I run it, the table now become at the bottom of the page?

24th May 2019, 1:43 PM
Ian T. Breguera
Ian T. Breguera - avatar
10 Answers
+ 8
You need to end the table. Table is like this: <table> content </table>
24th May 2019, 1:56 PM
🍇 Alex Tușinean 💜
🍇 Alex Tușinean 💜 - avatar
+ 9
It shouldn't. Can you show the code?
24th May 2019, 1:45 PM
🍇 Alex Tușinean 💜
🍇 Alex Tușinean 💜 - avatar
+ 7
At that comment "end of table" , write before it </table>
24th May 2019, 1:57 PM
🍇 Alex Tușinean 💜
🍇 Alex Tușinean 💜 - avatar
+ 7
Glad to help.😁
24th May 2019, 1:58 PM
🍇 Alex Tușinean 💜
🍇 Alex Tușinean 💜 - avatar
+ 2
I will edit my question wait.
24th May 2019, 1:48 PM
Ian T. Breguera
Ian T. Breguera - avatar
+ 2
Yah it works. Thank you so much
24th May 2019, 1:57 PM
Ian T. Breguera
Ian T. Breguera - avatar
+ 1
Its not paragraphs its div
24th May 2019, 1:54 PM
Ian T. Breguera
Ian T. Breguera - avatar
+ 1
My code is too long wait
24th May 2019, 1:54 PM
Ian T. Breguera
Ian T. Breguera - avatar
+ 1
Ian T. Breguera you can share your code by just giving link also in your question so others will understand more properly ☺
25th Jun 2019, 12:33 PM
Sayyam Jain
Sayyam Jain - avatar
0
<!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> <table align="center" border="3" width="70%" height="100px"> <tr style="color:#7FFFD4" align="center"> <td bgcolor="orange">One</td> <td bgcolor="orange">Two</td> <td bgcolor="orange">Three</td> <td bgcolor="orange">Four</td> </tr> <tr style="color:white" align="center"> <td bgcolor="red">Red</td> <td bgcolor="green">Green</td> <td bgcolor="blue">Blue</td> <td bgcolor="gray">Black</td> </tr> <tr style="color:white" align="center"> <td bgcolor="gray">Black</td> <td bgcolor="blue">Blue</td> <td bgcolor="green">Green</td> <td bgcolor="red">Red</td> </tr> <br /> <!--end of table--> <div style="background-color:#7FFF00; padding:10px";> <b> <center> <h1>This is a Divion I guess</h1> </center> <div style="background-color:#FFEBCD; color:Black; paddin
24th May 2019, 1:54 PM
Ian T. Breguera
Ian T. Breguera - avatar