Today I have learned Bootstrap card in javascript

 Bootstarp card in javascript:

card is a flexible and extensible content container. It includes options for headers and footers, a wide variety of content, contextual background colors, and powerful display options. If you’re familiar with Bootstrap 3, cards replace our old panels, wells, and thumbnails. Similar functionality to those components is available as modifier classes for cards.

Cards are built with as little markup and styles as possible, but still manage to deliver a ton of control and customization. Built with flexbox, they offer easy alignment and mix well with other Bootstrap components. They have no margin by default, so use spacing utilities as needed.

Below is an example of a basic card with mixed content and a fixed width. Cards have no fixed width to start, so they’ll naturally fill the full width of its parent element. This is easily customized with our various sizing options.

.card-img-top places an image to the top of the card. With .card-text, text can be added to the card. Text within .card-text can also be styled with the standard HTML tags.

<div class="card">
  <div class="card-header">Head</div>
  <div class="card-body">Content</div>
  <div class="card-footer">Foot</div>
</div>
<div class="card bg-primary text-white">
    <div class="card-body">Primary card</div>
  </div>
 
  <div class="card bg-secondary text-white">
    <div class="card-body">Apple</div>
  </div>
  <div class="card bg-info text-white">
    <div class="card-body">Orange</div>
  </div>
  <div class="card bg-warning text-white">
    <div class="card-body">banana</div>
  </div>
  <div class="card bg-dark text-white">
    <div class="card-body">grapes</div>
  </div>
  <div class="card bg-danger text-white">
    <div class="card-body">pineapple</div>
  </div>
  <div class="card bg-light text-dark">
    <div class="card-body">cherry</div>
  </div>
  <div class="card bg-success text-white">
    <div class="card-body">kiwi</div>
  </div>
  <br></br>
  <div class="card" style={{width:"400px"}}>
  <img src={user}></img>
  <div class="card-body">
    <h4 class="card-title">Dhisha</h4>
    <p class="card-text">B Tech computer science and business system</p>
    <a href="home" class="btn btn-primary">See Profile</a>
  </div>
Output:



Comments

Popular posts from this blog

Building a Full-Stack Student Management System with React.js and NestJS

Today I have solved the problem in javascript

Today I have solved problem in javascript