search

Home  >  Q&A  >  body text

How can I position the title to the middle of the table?

Because this table is relatively small, it should not be centered. I had no choice but to link a css with margin-left: 400px; but the title definitely does not use css, so I am wrong. Can anyone help me? Are there any other errors? The following is the code

<meta charset="utf8">
<link href="css1.css"rel=

红红火火恍恍惚惚红红火火恍恍惚惚1867 days ago1401

reply all(3)I'll reply

  • 2019-11-15 17:09:15

    echo '<h1>'.$a.'</h1>';changed to echo '<h1 style="text-align:center">'.$a.'</h1> ;'; You can try changing the width=900 below to width=100%~~

    reply
    1
  • echo '

    '.$a.'

    '; This works too~

    · 2019-11-15 17:11:55
  • 红红火火恍恍惚惚

    红红火火恍恍惚惚2019-10-22 00:45:38

    Question supplement: Because this table is in the upper left corner by default and is not full screen. If you use center, the title will run to the middle of the screen and the table is in the upper left corner. This does not achieve the effect required by the assignment. Although I use css, it looks like Same as the answer, but the author definitely didn’t use css

    reply
    0
  • Cancelreply