Single page design - images extend beyond boundaries on mobile-friendly versions

I'm encountering an issue with the top section of my one-page website.

While it looks great on desktop, on other devices, the three main photographs in the section stack on top of each other instead of expanding to fit the screen properly. The images either overflow or get hidden when using the overflow hidden property.

I'm struggling to identify the root cause of this problem and would really appreciate some guidance on how to resolve it.

Below is the HTML code snippet:

<!-- Jumbotron -->
<section class="jumbotron" id="header">
    <div class="container">
        <div class="main-photo" id="header-photo">

        </div>

        <div class="transparent-box" style="padding-top: 3%;">
            <img src="images/logo.png" style="width: 100%;"></img>
        </div>
        <div class="row">
            <div class="col-md-10 col-md-offset-1" style="padding-top:5%">
                <div class="row">
                    <div class="col-md-3 col-sm-offset-1">
                        <figure class="round-outline">
                            <img class="round-photo img-responsive" src="assets/photo1-sm.jpg" alt="">
                                <div class="round-caption-bg"></div>
                        </figure>
                    </div>
                    <div class="col-md-3">
                        <figure class="round-outline">
                            <img class="round-photo img-responsive" src="assets/photo2-sm.jpg" alt="">
                                <div class="round-caption-bg"></div>
                        </figure>
                    </div>
                    <div class="col-md-3">
                        <figure class="round-outline">
                            <img class="round-photo img-responsive" src="assets/photo3-sm.jpg" alt="">
                                <div class="round-caption-bg"></div>
                        </figure>
                    </div>
                </div>
                <div class="row">


                    <a href="#quote-one" style="color: #d5b17c;">
                        <i class="fa fa-chevron-down fa-2x pulsate-opacity chevron"></i>
                    </a>

                </div>
            </div>
        </div>
    </div>
</section>
<!-- End of Jumbotron -->

And the accompanying CSS code:

/* ==========================================================================
Jumbotron Section
========================================================================== */

.jumbotron {
    padding: 100px 0 60px;
    margin-top: 0;
    margin-bottom: 0;
    background: transparent url('../images/black-red-background.jpg') no-repeat top center;
    background-size: auto auto;
    background-attachment: fixed;
    font-size: 1em;
    height: auto;
    overflow: hidden;
}
.jumbotron .container {
    text-align: center;
}

Answer №1

It seems like the issue lies in the col-md classes triggering breakpoints at tablet size or lower.

To fix this, update

<div class="col-md-3 col-sm-offset-1">
to <div class="col-xs-4">

Similarly, change the other two instances of <div class="col-md-3" to <div class="col-xs-4">

Does that align with your requirements?

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Is it better to use multiple external style sheets?

Hello! I am looking to implement a pop-up login screen by integrating downloaded code. The issue I am facing is that the CSS file that accompanies it clashes with my current one. Is there a way to have a specific style sheet only affect certain div tags, ...

Instructions on displaying the main page even with just inputting the default directory in the URL

One scenario is when I input file:///C:/xampp/htdocs/At/html/ in the URL. My desired outcome is for file:///C:/xampp/htdocs/At/html/pages-login.php to be displayed instead. How can I achieve this? ...

The jQuery onClick function functions effectively for the initial two clicks; however, it ceases to

I am currently experimenting with jQuery to dynamically load a specific div from another page on my server into a designated section on the existing page. While the code is successfully functioning for the first two clicks on the website, it fails to work ...

The element in the data cell is a form input field

This is the content of my webpage: <input type="text" class="form-control" >id="ButonSociete"name="ButonSociete"placeholder="Societe"> <table cellpadding="0" cellspacing="0" border="0" class="display" >id="demande" width="100%"> ...

Difficulty with Django's |safe template functionality

Issue with Django safe template functionality I attempted to utilize a textarea for rich text in the Django admin section, and everything seemed fine. However, when I try to display it on the front end using {{ date|safe }}, only a maximum height of appro ...

Django class-based views not rendering HTML

I'm feeling confused about why my HTML template is not displaying properly. Currently, I am working on understanding Class-based views in Django rather than using functions. The URL seems to be functional because the "{% extend base.html %}" stateme ...

Is there a way to show new chat messages instantly without needing to refresh the entire page?

Creating a real-time chat application presents the challenge of displaying new messages instantly without requiring a page reload. Exploring different methods like reloading only the chat message container or treating new messages as individual chatMessage ...

Top strategies for effectively handling Bootstrap in Python Flask projects

After putting in the effort to develop a web app using python-Flask and bootstrap for the frontend, I am excited to share my project that enables users to conveniently browse the AWS S3 bucket directly from their web browser. As this project is still a wor ...

A stack of four distinct CSS components placed vertically

I'm struggling to create a layout with specific requirements: A navigation header that has a fixed height and position from the top A wide horizontal image banner that is fixed but resizable with the main window A content area where text starts belo ...

Tips on customizing the appearance of mat-card-title within a mat-card

Is there a way to truncate the title of a mat card when it overflows? I tried using the following CSS: overflow:hidden text-overflow:ellipsis white-space: nowrap However, the style is being overridden by the default mat-card style. I attempted to use mat ...

Using HTML to create an email link with a subject that includes special characters such as '&'

Is it possible to dynamically set the email subject to include an '&' sign in client-side HTML? Here is the code I am working with: <a href="mailto:<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="533d3c7e3c3d361320 ...

Header causing issues with 100% height div container on the webpage

Check out http://jsfiddle.net/oedev/pag7ahz2/ This is the layout of my page: cMain - main container for the page cBanner - container for the banner cNavigation - container for navigation cContent - container for page content All these containers are se ...

Tips for reverting changes made to a jquery buttonset

I have a buttonset that triggers a change event. When this event occurs, an ajax post is made to save the new value. If there is an error during the process, I want the buttonset to revert back to its original state. To achieve this, I store the initial s ...

What is the best way to override CSS on the Google homepage using Chrome?

Is there a way to modify the CSS style on Google's homepage permanently? I have been able to do it using DevTools/Overrides, but I always have to keep DevTools open. I've looked into some Chrome extensions, but they seem to work everywhere ex ...

The DIV with looping functionality is not maintaining the table structure from the previous view

I have a table with a lot of ordering details. However, when I try to add a product from the admin page, the original table structure works fine. But as soon as jQuery adds an extra DIV to expand the table, I encounter issues. Can anyone suggest a jQuery m ...

Error: The PHP contact form is displaying field names instead of the actual values being entered

I am completely new to this and would appreciate some guidance. I have set up a contact form on a website, but I seem to be encountering some errors. Here is the email content I receive from the contact form: <p>$usersname has contacted you from you ...

The dialog encountered an error due to an invalid function

I am currently encountering a TypeError: $("").html("This dialog will show every time!").dialog is not a function. This error occurs when the page is loaded using load() in a div on the index page. I have made sure to include the necessary jQuery scripts o ...

if the overlay is visible (the element is set to display: block), then move the element underneath downwards

I have incorporated a sizable overlay on my website, utilizing popify.js. This overlay is triggered by a click function that essentially toggles between 'display:block;' and 'display:none;', creating a simple show/hide effect. However, ...

Comment sections that refresh automatically after being posted

I am determined to provide a clear explanation. Despite having some code, I am uncertain about how to make it clone comments and add new ones with user inputted text. Below is the snippet of code I am struggling with: <!DOCTYPE html> <!-- this i ...

How to keep footer at the bottom of the page in Angular Material

I need assistance with keeping my footer at the bottom of the browser window when there is not enough content in the main section. I do not want a sticky footer and am looking for an angular material solution for this. Unfortunately, I have been unable to ...