Adaptable and scalable

Hello everyone,

I could use some assistance in identifying where I may have made errors. Can you please help me with that?

I am aiming to enhance the responsiveness of the following design for mobile devices.

<section class="hero">
        <div class="row">
            <div class="col-8 sm-8" id="tennis-pic"><img src="assets/images/home-hero.jpg" class="home-hero"
                    alt="Image of a tennis player receiving coaching on court"></div>
            <div class="col-4 sm-4 blue-box">
                <h3 class="welcome">Welcome to Go Tennis System</h3>
                <p class="tips">Your go-to hub for Tips, Tricks, Training and everything Tennis</p>
            </div>
        </div>
    </section>
    <article>
        <div class="why-header">
            <h4>Reasons to opt for our Go Tennis System service</h4>
        </div>
        <p class="why-text">
            Our service is tailored exclusively for you. We operate digitally and at your convenience.
            By using our service, we request a small donation which will be shared with a dog charity and animal rescue organization
            as part of our commitment to giving back.
            You have the opportunity to upload videos for coaching, tips, and receive honest constructive feedback, enabling you to maintain a video diary and enhance your skills.
            When we say we play the same game but simpler, we mean it's customized to your pace and schedule. We cater to all age groups and skill levels, so if you're a beginner aspiring to play like a professional, come and give us a try. You won't regret it.
        </p>
    </article>

Below is the CSS I'm utilizing:

/* ------------------------------------------- Home Hero Image */

.hero {
    margin-top: 100px;
    margin-bottom: 150px;
}

.home-hero {
    position: relative;
    max-width: 110%;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
}


/* ------------------------------------------- Home Welcome Box */

.blue-box { 
    position: relative;
    padding: 0;
    margin: 0;
    background: #2a5490;
}

.welcome { 
    font-family: Montserrat, sans-serif;
    font-weight: 400;
    position: relative;
    margin-left: auto;
    margin-right: auto;
    margin-top: 45%;
    margin-right: 10%;
    margin-left: 10%;
    top: 60px;
    right: auto;
    height: auto; 
    width: auto;
    text-align: center;
    color: #fff; 
}


.tips { 
    font-family: Montserrat, sans-serif;
    font-weight: 300;
    float: right;
    position: relative;
    margin-left: auto;
    margin-right: auto;
    margin-right: 10%;
    margin-left: 10%;
    top: 60px;
    right: auto;
    height: auto; 
    width: auto;
    text-align: center;
    color: #fff; 
}

Thank you in anticipation of your help.

Warm regards

Andrew

The website I am currently working on can be found here

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

A Vue.js trick to modify the element's class within a v-for loop when hovering in and out

I'm having trouble changing the class of a single element within a v-for loop based on mouseenter/mouseleave events. I want only the hovered element to change its class, but currently, all elements in the list are affected. I attempted binding the cl ...

Orders in WooCommerce are being mysteriously created with no information provided and stuck in a pending payment state

Are you experiencing the issue of blank orders being generated in WooCommerce with no details and a pending payment status? I am utilizing the WooCommerce plugin along with the Elavon payment gateway, and although everything seems to be set up correctly, t ...

Looking for ways to locate encoded HTML values in chrome?

Referenced from Microsoft Docs In MVC, the Razor engine automatically encodes all output coming from variables. For example, consider the following razor view: @{ var untrustedInput = "<"123">"; } @untrustedInput In this scenario, ...

Unable to eliminate the right margin, which continues to expand as the width of the div decreases

I'm facing a peculiar issue with my HTML/CSS while working on a profile page for a game with a focus on mobile responsiveness. The right-margin seems to persist even though I've tried various solutions. In portrait mode, everything appears fine b ...

Implement CSS styling within XML responses in jQuery UI autocomplete

Can you apply a different CSS class to a specific part of the label in the XML response? Currently, the label value is: label: $( "name", this ).text() + ", " + ( $.trim( $( "countryName", this ).text() ) || "(unknown country)" ) + ", " + $( "countryCode" ...

jQuery - Enlarge Tree View to the level of the selected node

I am struggling to figure out how to expand the tree view up to a selected node level. If anyone has any ideas on how to accomplish this, please let me know. For instance, if we click on 'Parent d' in the 'Category list', I want to exp ...

The class name feature on the Drawer component is malfunctioning

React and material-ui are my tools of choice, but I've hit a roadblock. I'm attempting to define some custom CSS behavior for the drawer component, using the className property as recommended. However, despite following the instructions, it' ...

Monitoring user logins based on user identification

How can I effectively monitor the activity of users who have logged into a web application that is managed by an external company? Despite my extensive research efforts, as a non-technical individual, I am struggling to understand how to utilize Google Ana ...

CSS - the styling properties of the class should not affect the child components

I am working on a Parent component that contains two child components. Each component utilizes accordion-groups for its functionality. I have created a specific class for styling purposes in my stylesheets, but I want this class to only apply to the parent ...

Tips for adjusting the order in which styles load in NuxtJS

I need to adjust the loading order of styles in my current project. In my custom stylesheet style.css, I've made some overrides, body { font-family: "Lato", sans-serif; font-size: 14px; font-weight: 400; font-style: normal; ...

Pug conditional elements not styling with CSS

Currently immersed in the world of Pug, node.js, and express as I build a web application. Facing hurdles when trying to style elements within Pug conditionals using CSS. For instance, consider this Pug snippet: div(id='outside') if authoris ...

Instructions for using arrow keys to navigate between div elementsHow to use arrow keys for navigating through

Is it possible to navigate between div elements using arrow keys like in Notion's editor? <div> hello word </div> <div>hi</div> <div>notion</div> Given the code above, how can one move the cursor to another ...

What is the method to ensure that flexbox takes into account padding when making calculations?

There are two sets of rows displayed below. The first row contains two items with a flex value of 1 and one item with a flex value of 2. The second row contains two items with a flex value of 1. As per the specification, 1A + 1B = 2A However, when ...

Errors with pointer events occurring within nested iframes on Chromium 78

At first glance, it seems like a bug specific to Chromium. I have already reported this issue in a bug report. Since progress is slow on that front, I am posting a question here primarily to see if anyone else has encountered similar or related issues and ...

Type in "Date" and select a date using your mobile device

Hey, does anyone know a good solution for adding placeholder text to an input with type="date"? I'm looking for a way to utilize the phone's built-in date selection feature on a website, rather than having users manually enter dates using the ke ...

How to align the "bootstrap navbar li items" in the center across all page widths

I'm trying to center the li items "on the entire page width" in this basic bootstrap navbar that I've shared. I attempted using "justify-content-center" in the parent. It did center the navbar items, but not across the entire page width. The ite ...

Struggling with clicking on an <a> tag using Python Selenium that leads to a popup dialog box

Currently, I am honing my web scraping abilities by utilizing the World Surf League website. So far, I have not extracted any data; instead, I am focusing on navigating the site using Selenium. However, I have hit a roadblock where I am unable to 'cli ...

Alert: The attempt to include_once(headerSite.php) has encountered an error as the file does not exist in the specified directory

I'm a beginner in PHP and encountering the following errors: Warning: include_once(headerSite.php): failed to open stream: No such file or directory in C:\xampp\htdocs\dbtest\index.php on line 3 Warning: include_once(): Failed ope ...

Tips for recognizing the div element housing the selected text chosen by the user

I am currently working on a feature that enables placing a button next to the text selected by the user. Here's what I want to achieve: However, I would like this functionality to apply only when the selected text is inside divs with the class floatb ...

Reduce the transparency of the overlay picture

I have been utilizing the 'Big Picture' template to design a webpage. The overlay.png file adds a lighter background effect by overlaying intro.jpg with a partially transparent blue graphic. Despite my efforts to adjust the opacity and gradient/R ...