お互いの間に2つの列が必要です。最初のものは背景画像である必要があります。画像の「最小」サイズで。他の2つは同じサイズである必要があります。
私がそれにテキストを書くならば、div
彼のものに改行をするべきです。
実はこんな感じです
<style type="text/css">
body
{
background-color:#484848;
}
#wrapper
{
width: auto;
margin: 0 auto;
display: inline-block;
}
.col
{
display: block;
background: #FFF;
float: left;
height: 200px;
width:100%;
}
</style>
<body>
<div id="wrapper">
<div class="col" style=
"background-image:url(img/Logo.jpg);
width:101px;
height:200px;
background-repeat:no-repeat;"><--! in same line actually -->
</div>
<div class="col">
<table border="0">
<tr>
<td>username</td>
<td><input type="text"></td>
</tr>
<tr>
<td>password</td>
<td><input type="password"></td>
</tr>
<tr>
<td></td>
<td><input type="submit" value="login"></td>
</tr>
</table>
</div>
<div class="col">
text
</div>
</div>
</body>
しかし、それは本当に悪く見えます...