简单的问题,无疑是一个简单的解决方案 - 尽管搜索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>
任何帮助将非常感激。谢谢。