div外部的框架

时间:2019-02-07 08:17:52

标签: html css twitter-bootstrap

我有此代码:

.section_mop_5_2019 {
  background-image: url("../images/ob100_2019.png");
  background-position: right;
  background-repeat: no-repeat;
  background-size: cover;
  font-family: 'rajdhani_regular_webfont';
  padding-bottom: 180px;
  padding-top: 60px;
}

.etapy_2019 {
  text-align: center;
  text-transform: uppercase;
  font-size: 36px;
  color: #262626;
  font-weight: bold;
}

.etapy_2019_all_1 {
  background-color: #A91B1C;
  color: #F2F3FF;
  padding: 30px;
}

.etapy_2019_all_2 {
  background-color: #803066;
  color: #F2F3FF;
  padding: 30px;
}

.etapy_2019_all_3 {
  background-color: #38408B;
  color: #F2F3FF;
  padding: 30px;
}

.etapy_2019_all_4 {
  background-color: #603B7D;
  color: #F2F3FF;
  padding: 30px;
}

.etapy_2019_all_5 {
  background-color: #225F6F;
  color: #F2F3FF;
  padding: 30px;
}

.etapy_2019_tytul {
  text-transform: uppercase;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  padding-bottom: 20px;
}

.etapy_2019_tresc {
  font-size: 14px;
  text-align: justify;
}

.etapy_2019_all_pad {
  padding: 30px;
}

.etapy_2019_rejestracja {
  font-size: 28px;
  padding-left: 60px;
  padding-top: 30px;
}

.gabinety_obrazek_2019_1 {
  clear: both;
  padding-top: 25px;
  padding-left: 60px;
}

.gabinety_tel_2019 {
  color: #333333;
  font-size: 32px;
  font-weight: bold;
  font-family: 'rajdhani_regular_webfont';
  line-height: 1.1;
}
<section class="section_mop_5_2019 ">
  <div class="container">
    <div class="row">
      <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 ">
        <div class="etapy_2019 ">Przebieg wizyty dziecka w naszych gabinetach </div>
      </div>
      <div class="col-xs-12 col-sm-6 col-md-6 col-lg-4 ">
        <div class="etapy_2019_all_pad ">
          <div class="etapy_2019_all_1 ">
            <div class="etapy_2019_tytul ">Etap 1 </div>
            <div class="etapy_2019_tresc ">Lorem ipsum lorem ipsum, Lorem ipsum lorem ipsum, Lorem ipsum lorem ipsum, Lorem ipsum lorem ipsum, Lorem ipsum lorem ipsum, . </div>
          </div>
        </div>
      </div>
      <div class="col-xs-12 col-sm-6 col-md-6 col-lg-4 ">
        <div class="etapy_2019_all_pad ">
          <div class="etapy_2019_all_2 ">
            <div class="etapy_2019_tytul ">Etap 2 </div>
            <div class="etapy_2019_tresc ">Lorem ipsum lorem ipsum, Lorem ipsum lorem ipsum, Lorem ipsum lorem ipsum, Lorem ipsum lorem ipsum, Lorem ipsum lorem ipsum, . </div>
          </div>
        </div>
      </div>
      <div class="col-xs-12 col-sm-6 col-md-6 col-lg-4 ">
        <div class="etapy_2019_all_pad ">
          <div class="etapy_2019_all_3 ">
            <div class="etapy_2019_tytul ">Etap 3 </div>
            <div class="etapy_2019_tresc ">Lorem ipsum lorem ipsum, Lorem ipsum lorem ipsum, Lorem ipsum lorem ipsum, Lorem ipsum lorem ipsum, Lorem ipsum lorem ipsum, .</div>
          </div>
        </div>
      </div>
      <div class="col-xs-12 col-sm-6 col-md-6 col-lg-4 ">
        <div class="etapy_2019_all_pad ">
          <div class="etapy_2019_all_4 ">
            <div class="etapy_2019_tytul ">Etap 3 </div>
            <div class="etapy_2019_tresc ">Lorem ipsum lorem ipsum, Lorem ipsum lorem ipsum, Lorem ipsum lorem ipsum, Lorem ipsum lorem ipsum, Lorem ipsum lorem ipsum, . </div>
          </div>
        </div>
      </div>
      <div class="col-xs-12 col-sm-6 col-md-6 col-lg-4 ">
        <div class="etapy_2019_all_pad ">
          <div class="etapy_2019_all_5 ">
            <div class="etapy_2019_tytul ">Etap 3 </div>
            <div class="etapy_2019_tresc ">Lorem ipsum lorem ipsum, Lorem ipsum lorem ipsum, Lorem ipsum lorem ipsum, Lorem ipsum lorem ipsum, Lorem ipsum lorem ipsum, . </div>
          </div>
        </div>
      </div>
      <div class="col-xs-12 col-sm-6 col-md-6 col-lg-4 ">
        <div class=" etapy_2019_rejestracja ">Lorem ipsum lorem ipsum, Lorem ipsum lorem ipsum, Lorem ipsum lorem ipsum, </div>
        <div class="gabinety_obrazek_2019_1 "><img src="images/ob50_2019.png" class="img-responsive resp ob50_2019  " alt="">
          <div class="gabinety_tel_2019 ">+48 123 123 123</div>
          <div class="gabinety_tel_2019 ">+48 123 123 123 12</div>
        </div>
      </div>
    </div>
  </div>
</section>

如何在这些div周围添加框架-但在外部?

预览:http://serwer1356363.home.pl/pub/boxy/

我有5种不同颜色的div。我想添加到这5 div边框,如屏幕截图所示:

enter image description here

有人知道怎么做吗?

0 个答案:

没有答案