When the screen becomes responsive, elements escape from the div

I'm encountering an issue with the code block below. When attempting to make the screen responsive, the elements within the aircard div are not stacking as expected. Instead, they seem to overflow. I'm unsure of the reason for this behavior and how to rectify it. Here is the code snippet:

HTML:

    <div class="container-fluid">
    <div class="air-card">
            <div class="row">
                <div class="col-md-12 col-sm-12 col-xs-12 col-xs-offset-0">
                    <h2 class="text-center hidden-xs m-sm-bottom ng-scope"> Complete Your Account </h2>
                    <h4 class="text-center ng-binding ng-scope"> <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="e2bb8d97908c838f87a2858f838b8ecc818d8f">[email protected]</a> </h4> <br>
                    <form method="POST" action="confirm.html">

                    <option value="AF">Afghanistan</option>
                    <option value="AX">Åland Islands</option>
                    <option value="AL">Albania</option>
</select>  <br> <br>
            <input type="password" name="" placeholder="Create a Password" required> <br> <br>
            <h4 style="text-align: center;"> I want to: </h4>
            <button type="button" class="btn btn-light">Hire for a Project</button>
            <button type="button" class="btn btn-light"> Work as a Freelancer </button>
<input type="checkbox" class="custom-control-input" id="customCheck1"">
  <label class="custom-control-label" for="customCheck1">  Yes! Send me genuinely useful emails every now and then to help me get the most out of Extolssolutions.  </label> 
  <input type="checkbox" class="custom-control-input" id="customCheck1"">
</div></label>

<button type="submit" class="btn btn-success"> Next </button>
            </form>
            </div>
        </div>
    </div>
    </div>

CSS:

.air-card {
position: relative;
    background-color: #fff;
    margin: 30px  0px;
    padding: 30px;
    box-shadow: 0 1px 6px rgba(57,73,76,.35);
}

.select
{   
    margin-left: 420px;
}

input[type='password']
{

    margin-left: 420px;
    width: 354px;

}

input[type='checkbox']
{
    margin-left: 420px;
    text-align: center;
}

label a:hover
{
    color: green;
}

.button[type='submit']
{
    margin-left: 550px;
    margin-top: 20px;
    width: 8%;
}

.row a
{
    color: #747676;
    font-family: Arial,sens-serif;
}

JSBIN: http://jsbin.com/dupihupugu/1/edit?html,css,console,output

Newbie note: I am still learning CSS, Bootstrap 4, and Stack Overflow, so any guidance is appreciated.

[The full screen page][The responsive screen page]1

Answer №1

Give it a shot!

nav
{
background-color: #FFFFFF;
}
nav ul li 
{
text-decoration: none;
}

a.navbar-brand 
{
margin-left: 100px;
margin-right: 500px;
}

li
{
text-align: right;
}

p
{
display: block;
margin-bottom: 0px;
}

.footer-navbar-wrapper {
    background-color: #494949;
}

.copyright
{
color: #E0E0D6;
}

.row a
{
color: #747676;
font-family: Arial,sens-serif;
}

footer
{
padding-top: 40px;
padding-bottom: 20px;
position: relative;
}

.air-card {
position: relative;
    background-color: #fff;
    margin: 30px  0px;
    padding: 30px;
    box-shadow: 0 1px 6px rgba(57,73,76,.35);
}

select
{   
margin-left: 420px;
}

input[type='password']
{


width: 354px;

}

...

<button type="submit"  class="btn btn-success btn-lg"> Next </button>
</div><br/>
</div>
</div>


<footer class="footer-navbar-wrapper footer-skinny ng-scope" role="contentinfo" data-ng-controller="footerController">
<div class="container">
<div class="row">
<div class="col-md-12 text-center">
<p class="copyright" > ; © 2015-2018 Extols Solutions Inc </p>
<a href="#"> Terms of Service </a>
<br>
<a href="#"> Privacy Policy </a>
</div>
</div>
</div>

</footer>
</body>
</html>

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

I encountered a frustrating issue with saving user input data using localStorage

One of my goals is to store the current inputs even if the user refreshes or closes the browser. The issue I'm facing is that when I select Yes in the radio button, then refresh the page or close the browser and reopen it, the No button is checked wh ...

Trouble exporting to Excel on Chrome and Firefox browsers

I am having an issue with exporting tables to Excel using JS. The <table> tag contains some descriptions and a class (<table class="someClassName" border="0" cellpadding="0" cellspacing="0">). When the table is exported to Excel, the Excel fil ...

Align content vertically within a div container

I have encountered an issue where I am trying to center vertically the content within a div. Here is an example of the structure: <div class="container-fluid"> <div class="row restaurant"> <div class="col-md-6"> & ...

Ways to eliminate the margin space on a Bootstrap 4 progress bar

Currently experimenting with the Bootstrap 4 Progress component and attempting to integrate it within a sentence. Customizing its width to fit between words while realizing it is usually meant to occupy an entire row. Despite reducing its size, there seems ...

When attempting to retrieve the value of my select element, I encounter difficulty due to a hidden field that only becomes visible when a certain option is selected

I have a dropdown menu with different options, including one labeled "other". When the user selects "other", a hidden text field appears for them to enter a custom value. This functionality works correctly. However, if the user selects any other option and ...

Having trouble with the contact form? It seems to be experiencing issues with

Hey there! I'm encountering an issue with the following codes, where I'm getting redirected and receiving an error message stating "Undefined variable: subject in C:\wamp\www\boot\send.php on line 42." Any help would be greatl ...

What is causing the gradient to not fully extend across the entire element?

In my CSS, I have the following styling for a button: <a class="button"> <span>Y</span> </a> .button { -moz-border-bottom-colors: none; -moz-border-left-colors: none; -moz-border-right-colors: none; ...

Alter the button ID based on the currently displayed div

My mind is being driven crazy by a particular issue I am experiencing. Let me explain... I have a lengthy scrolling page with approximately 10 divs stacked one after the other without any spacing in between. Positioned at the bottom of the viewport is a bu ...

"What is the process for creating a single line border around a pandas DataFrame using df.to_html method

After exporting a pandas dataframe as an HTML table to Outlook, I noticed that the double cell borders are not aesthetically pleasing. I am seeking assistance in changing them to a single line border. Please refer to the attached screenshot and code snip ...

Tips for inserting an element in the middle of two elements using HTML

Here is the current structure of my DOM: <body> <h1> </h1> <button> </button> <p> </p> I am trying to dynamically add another p element in between the button and the existing paragraph when the button is cl ...

I am looking to adjust the width of an element within an Iframe

In my single post, I have a social sidebar on the left side. Currently, the buttons in the sidebar are appearing in different sizes, but I want them all to be the same size as the "Twitter" button. To see the issue, please visit this link. I've tried ...

HTML email for resetting your password

When a user forgets their password, I would like to send them an email with a link to a page where they can reset it. What is the best way to structure this link? Should I include the username as a parameter in the URL, and if so, how can I ensure that t ...

Unwrapping the Angular ngForm Mystery: Resolving

I was attempting to retrieve values using ngOnInit and initializing the form with default values, but for some reason the form is returning as undefined. I also tried using patchValue, but since the form is undefined, it doesn't work. It's intere ...

Steps for reverting a widget's background color to its default state following the utilization of gtk_css_provider_load_from_data()

Previously, I would adjust the background colors of widgets using gtk_widget_override_background_color. However, this function is no longer supported, so I am looking to migrate to utilizing GtkCssProvider. I have discovered that I can modify the backgrou ...

Styling text on top of an image using CSS

I am attempting to overlay text on top of an image using the following code: .gallery-image { position: relative; } h2 { position: absolute; top: 200px; left: 0; width: 100%; } h2 span { color: white; font: bold 24px/45px Helvetica, Sans-S ...

Identify when a mouse hovers within 10 pixels of a div using jQuery

Is it possible to detect when a user hovers over a specific area within a div using JavaScript or jQuery, without adding any additional tags? -------------------------------- -------------------------------- -------------------------------- -------- ...

Exploring the combination of PHP and HTML through conceptual sessions

I am a beginner in the world of PHP, HTML, and website development, and I am currently trying to grasp the concept of Sessions. My goal is to implement a login/logout feature on a website using sessions, MySQL, and Slim framework. I am struggling with und ...

What method does nosotroshq.com use to achieve the navigation effect when hovering over a menu item?

Seeking advice from skilled individuals familiar with JQUERY: Can anyone explain the technique used by nosotroshq.com in their top navigation bar? Specifically, how do they create the slow animation when hovering over "ABOUT US"? Any insights would be ap ...

What is the best way to resize SVG graphics effectively?

I am in need of creating a seating chart. I have generated an SVG with the seats. <div class="seats-map"> <svg xmlns="https://www.w3.org/2000/svg" id="seats-map-svg" viewBox="0 0 1000 300"> <g data-row ...

The unique format created by tinyMce is not being displayed

I am trying to customize the style format of my tinyMCE, but I am having trouble getting it to show up. Can anyone suggest what might be going wrong? Where should I place the button "Formats" so that I can choose a specific style? tinyMCE.init({ mod ...