折叠边距的填充/边距问题

时间:2017-08-23 15:00:33

标签: html css

我想提高引号,但每当我添加填充或边距底部没有任何反应时,似乎父代不包含子代。我已经尝试了边界实体,内联块,当边缘崩溃但没有任何效果时我知道要使用的一切



blockquote {
  float: right;
  padding-right: 50px;
  padding-top: 170px;
  font-size: 22px;
  color: #B08177;
  overflow: hidden;
  margin: 0 0;
  border: solid;
  box-sizing: border-box;
  height: 209px;
}

.fa {
  font-size: 5px;
}

.fa-quote-left {
  padding-bottom: 20px;
}

<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css" rel="stylesheet" />

<blockquote>

  <i class="fa fa-quote-left" aria-hidden="true"></i> My Text!
  <i class="fa fa-quote-right" aria-hidden="true"></i>

</blockquote>
&#13;
&#13;
&#13;

1 个答案:

答案 0 :(得分:0)

blockquote {
  float: right;
  padding-right: 50px;
  padding-top: 170px;
  font-size: 22px;
  color: #B08177;
  overflow: hidden;
  margin: 0 0;
  border: solid;
  box-sizing: border-box;
  height: 209px;
}

.fa {
  font-size: 5px;
}

.fa-quote-left {
  bottom:12px;
  position:relative;
}
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css" rel="stylesheet" />

<blockquote>

  <i class="fa fa-quote-left" aria-hidden="true"></i> My Text!
  <i class="fa fa-quote-right" aria-hidden="true"></i>

</blockquote>