Bs Images

Bootstrap Images


Bootstrap Image Shapes

Rounded Corners:
 cast adds rounded corners to an icon  BS Images
Circle:
 cast adds rounded corners to an icon  BS Images
Thumbnail:
 cast adds rounded corners to an icon  BS Images

Rounded Corners

The .img-rounded cast adds rounded corners to an icon (IE8 does non back upwards rounded corners):

Example

<img src="cinqueterre.jpg" class="img-rounded" alt="Cinque Terre">

Circle

The .img-circle cast shapes the icon to a circle (IE8 does non back upwards rounded corners):

Example

<img src="cinqueterre.jpg" class="img-circle" alt="Cinque Terre">

Thumbnail

The .img-thumbnail cast shapes the icon to a thumbnail:

Example

<img src="cinqueterre.jpg" class="img-thumbnail" alt="Cinque Terre">

Responsive Images

Images come upwards inwards all sizes. So practise screens. Responsive images automatically accommodate to check the size of the screen.
Create responsive images past times adding an .img-responsive cast to the <img> tag. The icon volition in addition to thence scale nicely to the nurture element.
The .img-responsive cast applies display: block; in addition to max-width: 100%; in addition to height: auto; to the image:

Example

<img class="img-responsive" src="img_chania.jpg" alt="Chania">

Image Gallery

You tin equally good move Bootstrap's grid organisation inwards conjunction amongst the .thumbnail cast to practise an icon gallery.
Note: You volition larn to a greater extent than close the Grid System after inwards this tutorial (how to practise a layout amongst dissimilar amount of columns).

Example

 <div class="row">
  <div class="col-md-4">
    <div class="thumbnail">
      <a href="/w3images/lights.jpg">
        <img src="/w3images/lights.jpg" alt="Lights" style="width:100%">
        <div class="caption">
          <p>Lorem ipsum...</p>
        </div>
      </a>
    </div>
  </div>
  <div class="col-md-4">
    <div class="thumbnail">
      <a href="/w3images/nature.jpg">
        <img src="/w3images/nature.jpg" alt="Nature" style="width:100%">
        <div class="caption">
          <p>Lorem ipsum...</p>
        </div>
      </a>
    </div>
  </div>
  <div class="col-md-4">
    <div class="thumbnail">
      <a href="/w3images/fjords.jpg">
        <img src="/w3images/fjords.jpg" alt="Fjords" style="width:100%">
        <div class="caption">
          <p>Lorem ipsum...</p>
        </div>
      </a>
    </div>
  </div>
</div>

Responsive Embeds

Also allow videos or slideshows scale properly on whatever device.
Classes tin move applied straight to <iframe>, <embed>, <video>, in addition to <object> elements.
The next instance creates a responsive video past times adding an .embed-responsive-item cast to an <iframe> tag (the video volition in addition to thence scale nicely to the nurture element). The containing <div> defines the facial expression ratio of the video:

Example

<div class="embed-responsive embed-responsive-16by9">
  <iframe class="embed-responsive-item" src="..."></iframe>
</div>
What is facial expression ratio?

The facial expression ratio of an icon describes the proportional human relationship betwixt its width in addition to its height. Two mutual video facial expression ratios are 4:3 (the universal video format of the 20th century), in addition to 16:9 (universal for hard disk idiot box in addition to European digital television).
You tin select betwixt ii facial expression ratio classes:
<!-- 16:9 facial expression ratio -->
<div class="embed-responsive embed-responsive-16by9">
  <iframe class="embed-responsive-item" src="..."></iframe>
</div>

<!-- 4:3 facial expression ratio -->
<div class="embed-responsive embed-responsive-4by3">
  <iframe class="embed-responsive-item" src="..."></iframe>
</div>


       

Comments

Popular posts from this blog

What Are The Main Components of a Computer System

Top Qualities To Look For In An IT Support Team

How To Integrate Google Adwords Api Into Codeigniter?