css - Bootstrap 3 callouts missing in Yii 2 application -
i've added example code displaying bootstrap 3's callout yii2-powered application:
<div class="bs-callout bs-callout-info"> <h4>use protocol</h4> avoid links without <code>http://www.</code> or <code>https://www.</code> in beginning. </div>
and can't see proper styling.
what missing. bootstrap on board yii2 old , doesn't have these styles? or maybe forgot push magic button somewhere?
callouts used in docs, it's not included in main css. yii 2 ships newest version of bootstrap (at current moment 3.3.4), not reason.
you have write proper css styles yourself. according this article need add this:
.bs-callout { padding: 20px; margin: 20px 0; border: 1px solid #eee; border-left-width: 5px; border-radius: 3px; } .bs-callout h4 { margin-top: 0; margin-bottom: 5px; } .bs-callout p:last-child { margin-bottom: 0; } .bs-callout code { border-radius: 3px; } .bs-callout+.bs-callout { margin-top: -5px; } .bs-callout-default { border-left-color: #777; } .bs-callout-default h4 { color: #777; } .bs-callout-primary { border-left-color: #428bca; } .bs-callout-primary h4 { color: #428bca; } .bs-callout-success { border-left-color: #5cb85c; } .bs-callout-success h4 { color: #5cb85c; } .bs-callout-danger { border-left-color: #d9534f; } .bs-callout-danger h4 { color: #d9534f; } .bs-callout-warning { border-left-color: #f0ad4e; } .bs-callout-warning h4 { color: #f0ad4e; } .bs-callout-info { border-left-color: #5bc0de; } .bs-callout-info h4 { color: #5bc0de; }
anywhere css styles.
then can use callouts that:
<div class="bs-callout bs-callout-success"> <h4>success callout</h4> success callout. </div>