profile-options divの移動には助けが必要です。 ここに画像がありますので、私の言いたいことを教えてください。画像の下にコードがあります。一番下のdivを先頭に移動する方法
index.htmlを
<div id="page">
<div id="content">
<div id="info">
<div id="profile" name="picture">
<img src="https://scontent-frt3-1.xx.fbcdn.net/v/t1.0-9/17021559_243918039403378_4935600322061460678_n.jpg?oh=aa472121820d78b6116c91d47557bce6&oe=59738E5C" name="profile" />
<img src="https://scontent-frt3-1.xx.fbcdn.net/v/t1.0-9/17098689_244217759373406_3036940291705168436_n.jpg?oh=5f7b2ead37fdec3c2b13fa60fe431a0c&oe=5924FEA8" name="frontpage" />
</div>
<div id="menu" name="profile-name">
Random Guy
</div>
<div id="menu" name="profile-options">
Hi
</div>
<div id="personal">
<ul>
<li>Email: [email protected]</li>
<li>Password: *****************************</li>
<li>Country: Bosnia & Herzegovina</li>
<li>City: not choosen</li>
<li>Address: not choosen</li>
<li>Phone number: not choosen</li>
</ul>
</div>
</div>
</div>
</div>
のstyle.css
#page #content #info #profile[name="picture"]
{
width:700px;
}
#page #content #info #profile[name="picture"] img[name="profile"]
{
width:128px;
height:128px;
}
#page #content #info #profile[name="picture"] img[name="frontpage"]
{
width:572px;
height:128px;
margin-left:-4px;
}
#page #content #info #personal
{
width:698px;
}
#page #content #info #menu[name="profile-name"]
{
background-color:#d8d8d8;
width:116px;
height:48px;
max-width:116px;
max-height:48px;
border:0px;
padding:6px;
word-wrap:break-word;
margin-top:-5px;
}
#page #content #info #menu[name="profile-options"]
{
background-color:#d8d8d8;
width:572px;
height:48px;
border:0px;
margin-top:-5px;
}
どのように私は、任意の位置指令やマージンを使用せずにこれを達成することができ、私は左試してみました:0PXとトップ: 0pxでしたが動作しませんでした。
おかげで仲間、あなたは私の時間を保存! –