[英]Align text with radio button
In below script : 在下面的脚本中:
<script type="text/javascript" charset="utf-8" src="http://static.polldaddy.com/p/6352993.js"></script>
<noscript><a href="http://polldaddy.com/poll/6352993/">This is very long test question to test how polldaddy handles questions that exceed that normal length............ yes a very long question indeed..............</a></noscript>
I amending the width of the text so it fits into 220px. 我修改了文本的宽度,使其适合220px。 This causes the text to wrap underneath the radio button if it is of a certain length.
如果文本具有一定长度,则会导致文本在单选按钮下面换行。 As shown in this fiddle :
如这个小提琴所示:
http://jsfiddle.net/25LjE/8/ http://jsfiddle.net/25LjE/8/
The options should wrap to right of radio button as shown in diagram : 选项应该包含在单选按钮的右侧,如图所示:
Is this possible ? 这可能吗 ? I think I need to amend the class "pds-answer-span" ?
我想我需要修改课程“pds-answer-span”?
adding this style on CSS panel 在CSS面板上添加此样式
.pds-input-label { width: 85% !important }
.pds-input-label, .pds-answer-input { float: left; }
.pds-answer-group { height: auto; overflow: hidden; /* float clearing */ }
you achieve the desired effect 你达到了预期的效果
Try this - http://jsfiddle.net/25LjE/11/ 试试这个 - http://jsfiddle.net/25LjE/11/
.pds-answer-input { margin-top: 4px; }
.pds-answer-input,
.pds-input-label { display: inline-block; max-width: 170px; }
remove this 删除这个
.pds-input-label{
width: auto! important;
}
add this (where 100px is your desired width) 添加这个(其中100px是您想要的宽度)
#PDI_container6352993 .pds-input-label {
width 100px;
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.