Search
 
SCRIPT & CODE EXAMPLE
 

CSS

make a box card responsive

@media screen and (min-width: 40em) {
    .cards {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }
 
    .card {
        flex: 0 1 calc(50% - 1em);
    }
}
Comment

responsive card css

/*I really love Bootstrap for these kind of things:*/

<div class="card-group">
  <div class="card">
    <img src="..." class="card-img-top" alt="...">
    <div class="card-body">
      <h5 class="card-title">Card title</h5>
      <p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
    </div>
    <div class="card-footer">
      <small class="text-muted">Last updated 3 mins ago</small>
    </div>
  </div>
  <div class="card">
    <img src="..." class="card-img-top" alt="...">
    <div class="card-body">
      <h5 class="card-title">Card title</h5>
      <p class="card-text">This card has supporting text below as a natural lead-in to additional content.</p>
    </div>
    <div class="card-footer">
      <small class="text-muted">Last updated 3 mins ago</small>
    </div>
  </div>
  <div class="card">
    <img src="..." class="card-img-top" alt="...">
    <div class="card-body">
      <h5 class="card-title">Card title</h5>
      <p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This card has even longer content than the first to show that equal height action.</p>
    </div>
    <div class="card-footer">
      <small class="text-muted">Last updated 3 mins ago</small>
    </div>
  </div>
</div>
Comment

make a box card responsive

.cards {
   display: flex;
   flex-wrap: wrap;
   justify-content: space-between;
}
Comment

PREVIOUS NEXT
Code Example
Css :: media query change button text 
Css :: Loop Over Array of Objects and Combine them if they have similar keys 
Css :: Viewport is 480 pixels or smaller css 
Css :: resctrict css to apply on div 
Css :: font size clamp generator 
Css :: css direct child selector 
Css :: css body overflow hidden sidebar scrollbar 
Css :: scss loop 
Css :: get element in list ocaml 
Css :: css input field focus border 
Css :: sub menu disappears on hover css 
Css :: flex box 
Css :: css cursor 
Css :: Extracting data in scrapy 
Css :: html css how to arrange images of different sizes 
Css :: download css from website 
Css :: fallback value in css 
Css :: css animate absolute position 
Css :: add custom taxonomy into permalinks post_type_link 
Css :: css selector first level child 
Css :: avatar change design html css 
Css :: jquery or selector 
Css :: margin and padding setting for standard as usual website 
Css :: css button remove border 
Css :: Css animated cross mark 
Css :: css tutorials 
Css :: sasas 
Css :: weird box-shadow color input css 
Css :: alinhar ao centro align item css 
Css :: php-twig ( 2.9) but 2.6.2-2 
ADD CONTENT
Topic
Content
Source link
Name
4+7 =