0
Problem-如何將線從下面這個例子中移動「嗨,我是一個愛乾淨的&優雅的代碼開發」移動的話到一個特定的區域
從這個位置
http://i.stack.imgur.com/UgrC9.png
到這個位置
http://i.stack.imgur.com/6yEMO.png
該部分的HTML(任何東西的順序都不會被改變EXCANT只是移動「嗨,我是一個開發人員......」就在「關於我的一點點」行上面)
<body>
<header>
<div class="full-width">
<div class="half-width">
<h1>Jubilee Austin</h1>
</div>
<div class="half-width">
<h2><span>Hi,</span> i'm a developer that loves clean & elegant code.
</h2>
<nav>
<ul>
<li><a href="#about">About</a></li>
<li><a href="#work">Work</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
</nav>
</div>
</div>
</header>
<main>
<section id="about">
<div class="full-width">
<h2>A little bit about me</h2>
<div class="half-width">
<p> i've made my home base in Providence, Rhode Island with my small growing family. My journey into tech started with a degree in journalism.As I started sharing my writing online, I was fascinated with how easily I could get my voice out there. I was hooked and wanted to learn how to build my own site to fit my own specific needs.</p>
</div>
<div class="half-width">
<p>That curiosity then opened a door that could never be shut. When I learned how to build my first website, I realized I found something that gave me the freedom & versatility I was looking for in my work. Now I've made a full switch to front-end development, where I can use my organization skills and eye for detail to write clean, elegant code.</p>
</div>
</div>
</section>
整個CSS
/****Base syles***/
body {
font-family: 'Source Sans Pro', sans-serif;
}
#about, #work, #contact {
height: 600px;
border: solid red;
}
/***Grid***/
.full-width{
width:1200px;
margin: 0 auto;
}
.half-width{
width:600px;
float:left;
}
.third-width{
width:400px:
float:left;
}
/***About specific***/
#about .full-width{
padding:80px 0;
}
#about h2{
font-family: 'Lora', serif;
font-size:36px;
color:#262a2b;
}
#about p{
font-size:21px;
color:#7f7f7f;
line-height:42px;
padding-right:50px;
}
這不是一個錯誤的答案,它的正確性,但它在我的情況下是不正確的,我的問題的邊界信息HTML需要是確切的,並且不能被移動像這樣,我想它可能更多用CSS做 – Blink8278
沒問題。但我和其他人只能根據您提供給我們的信息。您能否詳細說明您的問題中的要求,以便其他人可以完全理解您要求的內容? – timolawl
我已經更新了您的用例的答案。純粹的CSS! – timolawl