Avatar of RadhaKrishnaKiJaya
RadhaKrishnaKiJaya

asked on 

Responsive Flex Cards

Hello Experts,

This is about Flex Cards in bootstraps.   

#1. I am trying to increase the size of the boxes.  But when I increase it, the last one moves to the bottom, though I have lots of room in the screen.  Please see the attachment.


#2. The response screen does not work as expected.  The card width shrinks too small before it moves to next line.


Please try to help.  Thank you very much in advance.


<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FlexCards.aspx.cs" Inherits="Bootstraps.FlexCards" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="css/bootstrap.css" rel="stylesheet" />
    <script src="js/bootstrap.js"></script>
</head>
<body>
    <div class="row row-cols-1 row-cols-md-3 g-4">
        <div class="container">
            <div class="row g-5">
                <div class="col-12 col-md-6 col-lg-4">
                    <div class="card h-100">
                        <%--<img src="..." class="card-img-top" alt="...">--%>
                        <img src="./images/europe.jpg" class="card-img-top" alt="A Street in Europe" />
                        <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>
                            <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>
                <div class="col-12 col-md-6 col-lg-4">
                    <div class="card h-100">
                        <%--<img src="..." class="card-img-top" alt="...">--%>
                        <img src="./images/london.jpg" class="card-img-top" alt="London" />
                        <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>
                <div class="col-12 col-md-6 col-lg-4">
                    <div class="card h-100">
                        <%--<img src="..." class="card-img-top" alt="...">--%>
                        <img src="./images/new-york.jpg" class="card-img-top" alt="New York" />
                        <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>
            </div>
        </div>
    </div>
</body>
</html>


Open in new window

FlexBox.png

BootstrapHTMLCSS

Avatar of undefined
Last Comment
Scott Fell
ASKER CERTIFIED SOLUTION
Avatar of Scott Fell
Scott Fell
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
HTML
HTML

HTML (HyperText Markup Language) is the main markup language for creating web pages and other information to be displayed in a web browser, providing both the structure and content for what is sent from a web server through the use of tags. The current implementation of the HTML specification is HTML5.

62K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo