如何将td元素放在h1元素旁边?

时间:2020-01-23 00:55:31

标签: html

可能是一个基本问题,但是如何将表放在标题旁边? Image of What I want to do

以下是代码的一小部分,但它应该覆盖标题和我要移动到h1元素旁边的图像之一。


        #header 
        {
            background-color:#E3BA00;
            color:black;
            width:918px;
            text-align:center;
            padding:5px;
        }

        </style>

    </head>

    <!-- Now the body of the page is defined. -->

    <body>

        <div id="header">
        <h1>English To Swedish Translator</h1>
        <h2>By fgfgfg <h2>
        </div>


        <!-- A table is now created where key elements can be organized. -->

        <table border="0" cellpadding="7" cellspacing="0" bgcolor="#006A8B">

          <!-- Start a new row... -->
          <tr>

         <td>
            <img src    = "http:thelink"
            width       = "150"
            height      = "90"
            border      = "0">
          </td>

1 个答案:

答案 0 :(得分:0)

我只需要使用html元素align将它左右对齐。

相关问题