我正在尝试减少可用于底部和顶部黑暗区域的边框空间量
所以:
应该是:
我尝试添加padding-bottom:0px!对pds-vote很重要。 pds-vote是我试图减少填充的投票元素,但似乎没有任何影响。
这是小提琴:http://jsfiddle.net/25LjE/79/
小提琴背后的代码:
.pds-question-top {
font-size:10pt !important;
padding-top:1px !important;
padding-bottom:1px !important;
margin-top:1px !important;
margin-bottom:1px !important;
}
.pds-pd-link, .pds-comments {
display:none !important;
}
.pds-box {
width:220px !important;
}
.pds-input-label {
width:85% !important;
}
.PDS_Poll {
margin-bottom:15px;
}
.pds-answer-span {
color:#00f;
}
.pds-vote {
background-color:#424242;
}
.pds-answer-text {
color:#00f;
padding-top:1px !important;
padding-bottom:1px !important;
margin-top:1px !important;
margin-bottom:1px !important;
}
.pds-answer-feedback {
padding-top:1px !important;
padding-bottom:1px !important;
margin-top:1px !important;
margin-bottom:1px !important;
}
.pds-votebutton-outer {
text-align:center;
}
.pds-answer-group {
padding-top:1px !important;
padding-bottom:1px !important;
margin-top:1px !important;
margin-bottom:1px !important;
height:auto;
overflow:hidden;
}
.pds-input-label,.pds-answer-input {
float:left;
}
.pds-view-results,.pds-links {
color:#FFF !important;
padding-top:1px !important;
padding-bottom:1px !important;
margin-top:1px !important;
margin-bottom:1px !important;
}
.pds-comments,.pds-return-poll {
color:#FFF !important;
}
.pds-links {
display: inline !important;
}
.pds-pd-link {
display: none !important;
}
.pds-box {
width: 220px !important;
}
.pds-input-label{
width: auto! important;
}
.PDS_Poll{
margin-bottom:15px;
}
.pds-question-top {padding:0 !important}
小提琴背后的HTML:
<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>
$(document).ready(function() {
$('.pds-question-inner').prepend('<span style="color:red;font-weight:bold;font-size: 15px;float:left">Header</span>');
});
答案 0 :(得分:1)
你应该把它添加到你的CSS 你可以将它设置为你想要的填充
.pds-answer{
padding-bottom:5px !Important;
}
.pds-box-outer{
padding-bottom:5px !Important;
}
但是你应该尽量避免使用那么重要的东西。
答案 1 :(得分:0)