簡單的問題,無疑是一個簡單的解決方案 - 儘管搜索SO和Google一段時間,但我仍然很難找到它。對齊複選框旁邊的文本
所有我希望做的是採取文字摘要「我感興趣的是增強上市或優質型材,(我們團隊的成員將與更多的信息及時回覆。)」,並讓它對準在複選框的右側(文本左對齊),但不像現在那樣環繞它。
這裏的(使用造型PureCSS)我JSFiddle
代碼:
<form class="pure-form pure-form-aligned">
<fieldset>
<div class="pure-control-group">
<label for="name">Product Name</label>
<input id="name" type="text" placeholder="Username">
</div>
<div class="pure-control-group">
<label for="password">Contact Name</label>
<input id="password" type="text" placeholder="Password">
</div>
<div class="pure-control-group">
<label for="email">Contact Email</label>
<input id="email" type="email" placeholder="Email Address">
</div>
<div class="pure-control-group">
<label for="foo">Website</label>
<input id="foo" type="text" placeholder="Enter something here...">
</div>
<div class="pure-control-group">
<label for="foo">Description:</label>
<textarea id="description" type="text" placeholder="Enter description here..."></textarea>
</div>
<div class="pure-controls">
<label for="cb" class="pure-checkbox">
<input id="cb" type="checkbox">
I'm interested in an enhanced listing or premium profile, (a member of our team will respond promptly with further information)
</label>
<button type="submit" class="pure-button pure-button-primary">Submit</button>
</div>
</fieldset>
</form>
任何幫助將非常感激。謝謝。