Mobile devices showing incorrect display for Bootstrap input group

Within a .container-fluid div, the following HTML code is present:

<div class="row mb-2">
        <div class="col-md-3">
            <a href="<?php echo $host; ?>" title="<?php echo html($site_config['logo_text']); ?> - <?php echo html($site_config['logo_slogen']); ?>" class="header_logo_to_link">
                <img src="<?php echo $host; ?>/images/assets/logo_33.png" alt="<?php echo html($site_config['logo_text']); ?> - <?php echo html($site_config['logo_slogen']); ?>" class="img-responsive footer_logo_image" />
            </a>
        </div>
        <div class="col-md-6">
            <form id="FooterNewsletterForm" method="post">
                <h4 class="footer_title">Subscribe to Newsletter</h4>
                <div class="row">
                    <div class="col-6 mb-3">
                        <input type="text" class="form-control footer_newsletter_input" placeholder="Name" name="NewsletterVname" id="NewsletterVname" />
                    </div>
                    <div class="col-6 mb-3 input-group">
                        <input type="text" class="form-control footer_newsletter_input" placeholder="Email Address" name="NewsletterEmail" id="NewsletterEmail" />
                        <div class="input-group-append">
                            <button class="btn btn-default footer_newsletter_button" id="NewsletterButton" name="NewsletterButton" type="submit">Subscribe</button>
                        </div>
                    </div>
                    <div class="clearfix"></div>
                </div>
                <div class="checkbox checkbox_allow_div mb-2 custom-control custom-checkbox">
                    <input type="checkbox" name="allow" id="nws_accept" value="1" class="allow_checkbox custom-control-input">
                    <label class="label_300 custom-control-label" id="nws_accept_label" for="nws_accept"><?php echo gdpr_text('gdpr_newsletter_text'); ?></label>
                </div>
            </form>
        </div> 
        <div class="col-sm-12 col-md-3">
            <h4 class="footer_title">Our Social Media Links</h4>
            <?php
            if($site_config['k_fb'] != "" )
            {
                echo '<div class="footer_social_divs float-left mr-3">
                        <a href="'.html($site_config['k_fb']).'" title="Facebook" target="_blank"><i class="fab fa-facebook-square" aria-hidden="true"></i></a>
                     </div>';
            }
            if($site_config['k_twitter'] != "" )
            {
                echo '<div class="footer_social_divs float-left mr-3">
                        <a href="'.html($site_config['k_twitter']).'" title="Twitter" target="_blank"><i class="fab fa-twitter-square" aria-hidden="true"></i></a>
                     </div>';
            }
            if($site_config['k_youtube'] != "" )
            {
                echo '<div class="footer_social_divs float-left mr-3">
                        <a href="'.html($site_config['k_youtube']).'" title="Youtube" target="_blank"><i class="fab fa-youtube-square" aria-hidden="true"></i></a>
                     </div>';
            }
            if($site_config['k_instagram'] != "" )
            {
                echo '<div class="footer_social_divs float-left">
                        <a href="'.html($site_config['k_instagram']).'" title="Instagram" target="_blank"><i class="fab fa-instagram" aria-hidden="true"></i></a>
                     </div>';
            }
            ?>
        </div>
        <div class="clearfix"></div>
    </div>

While the display looks fine on large screens, issues arise on mobile devices where the form within a specific div appears distorted as shown in the uploaded image. Additionally, the input group does not render correctly.

Check out my demo site here.

https://i.sstatic.net/YCHW0.jpg

To resolve this problem on mobile devices, I attempted various adjustments such as using col-sm-12 and col-12 classes, but none of them resolved the issue.

Answer №1

<div class="row mb-2">
    <div class="col-lg-3 col-md-12">
      <a href="<?php echo $host; ?>" title="<?php echo html($site_config['logo_text']); ?> - <?php echo html($site_config['logo_slogen']); ?>" class="header_logo_to_link">
            <img src="<?php echo $host; ?>/images/assets/logo_33.png" alt="<?php echo html($site_config['logo_text']); ?> - <?php echo html($site_config['logo_slogen']); ?>" class="img-responsive footer_logo_image" />
        </a>
    </div>
    <div class="col-lg-6 col-md-12">
       <form id="FooterNewsletterForm" method="post">
            <h4 class="footer_title">Subscribe to Newsletter</h4>
            <div class="row">
                <div class="col-6 mb-3">
                    <input type="text" class="form-control footer_newsletter_input" placeholder="Name" name="NewsletterVname" id="NewsletterVname" />
                </div>
                <div class="col-6 mb-3 input-group">
                    <input type="text" class="form-control footer_newsletter_input" placeholder="Email address" name="NewsletterEmail" id="NewsletterEmail" />
                    <div class="input-group-append">
                        <button class="btn btn-default footer_newsletter_button" id="NewsletterButton" name="NewsletterButton" type="submit">Subscribe</button>
                    </div>
                </div>
                <div class="clearfix"></div>
            </div>
            <div class="checkbox checkbox_allow_div mb-2 custom-control custom-checkbox">
                <input type="checkbox" name="allow" id="nws_accept" value="1" class="allow_checkbox custom-control-input">
                <label class="label_300 custom-control-label" id="nws_accept_label" for="nws_accept"><?php echo gdpr_text('gdpr_newsletter_text'); ?></label>
            </div>
        </form>
    </div> 
    <div class="col-lg-3 col-md-12">
        <h4 class="footer_title">Social Media Links</h4>
        <h4 class="footer_title">Social Media Links</h4>
        <?php
        if($site_config['k_fb'] != "" )
        {
            echo '<div class="footer_social_divs float-left mr-3">
                    <a href="'.html($site_config['k_fb']).'" title="Facebook" target="_blank"><i class="fab fa-facebook-square" aria-hidden="true"></i></a>
                 </div>';
        }
        if($site_config['k_twitter'] != "" )
        {
            echo '<div class="footer_social_divs float-left mr-3">
                    <a href="'.html($site_config['k_twitter']).'" title="Twitter" target="_blank"><i class="fab fa-twitter-square" aria-hidden="true"></i></a>
                 </div>';
        }
        if($site_config['k_youtube'] != "" )
        {
            echo '<div class="footer_social_divs float-left mr-3">
                    <a href="'.html($site_config['k_youtube']).'" title="Youtube" target="_blank"><i class="fab fa-youtube-square" aria-hidden="true"></i></a>
                 </div>';
        }
        if($site_config['k_instagram'] != "" )
        {
            echo '<div class="footer_social_divs float-left">
                    <a href="'.html($site_config['k_instagram']).'" title="Instagram" target="_blank"><i class="fab fa-instagram" aria-hidden="true"></i></a>
                 </div>';
        }
        ?>
    </div>
    <div class="clearfix"></div>
</div>

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

How can I use pinching gestures to zoom in and out on an image in the ASP.NET framework and HTML5?

I'm developing an iPad app and utilizing the ASP.NET framework along with HTML5 and Mobile jQuery. Any tips on how to accomplish this? Thank you! ...

Condition has been fulfilled for both ngShow and ngHide

I am attempting to show a loading icon while data is being loaded, and then display the data once it is ready. However, I am encountering a problem where for a brief moment, both the loading icon and the data are visible... https://i.sstatic.net/vDXOG.png ...

Angular paginator encountered an issue while attempting to parse the template

I'm updating my data list to include pagination, and everything seems fine with retrieving data and sorting. However, when I add the paginator tag to my template, Angular shows me an error: ERROR in Errors parsing template: Unexpected closing tag " ...

HTML Form with Contact Number Listed

When using the "tel" attribute in an input, we can set a maximum or minimum length for the input. However, the drawback is that it allows for all types of inputs, whether numeric or alphabetic. On the other hand, if we use the "number" attribute for the i ...

automatically generate a Panel-Body with content

Hey there, I'm facing a problem. Here's the picture: https://i.sstatic.net/1o1ld.jpg Any ideas on how to make the size fit the text? Here's the code: <div class="panel panel-default"> <div class="panel-heading"> <strong>A ...

What is the solution to preventing Prettier in VS Code from breaking up CSS Selectors onto different lines?

I am trying to achieve this code style: h1,h2,h3,h4,h5 { font-weight: 400 !important; } However, Prettier - Code Formatter is splitting each selector into separate lines like this: h1, h2, h3, h4, h5 { font-weight: 400 !important; } The issue of CSS ...

Html flipcard malfunctioning and logo overlapping issue detected

Regarding the following code: <html> <style> .img { max-width: 100%; } .Headerstyle { color:Black; transition: transform .2s; text-align: center; margin-top: 80vh; } .Headerstyle:hover { transform: scale(1.5) ...

Converting HTML to plain text on an Android device

I need help converting HTML text to plain text and displaying it in a TextView. However, I am encountering an issue where additional paragraphs are being added after the conversion. Please refer to the image https://i.sstatic.net/SxSf0.jpg Can someone exp ...

Tips for implementing a default font on a website

I've incorporated a unique font into a specific section of my website design, but I'm aware that this particular font may not be available on most of my users' computers. Is there a method to apply this font to selected text without resortin ...

Chaos in the IE8 drop-down menu situation

I'm having trouble with my code for a menu with drop-downs in ie8. It works fine in all other browsers but there seems to be an issue with the positioning of the main menu and submenus. Any thoughts on what might be causing this? <ul id="nav" clas ...

`Cannot press when using custom cursor in JS?`

Hey there! I'm currently working on implementing a custom cursor for specific elements on my website. However, I've encountered a little hiccup - once the custom cursor is in place, I'm no longer able to click on any elements. Does anyone ha ...

AngularJS: Issue with scope not updating across several views

Having one controller and two views presents a challenge. ClustersController angular.module('app.controllers').controller('ClustersController', [ '$scope', 'ClustersService', function($scope, ClustersService) { ...

The CSS hamburger menu halves in size when being closed

I have successfully created a CSS/JS hamburger menu with a transforming icon upon clicking. However, I encountered a bug where, upon clicking the 'close' button on the hamburger, the navigation menu cuts behind the header, resulting in a messy ap ...

Retrieve the second offspring of a jQuery selection

I have searched extensively for a solution to this question, but haven't come across anything helpful. Here is the code snippet I am struggling with: $("table tbody tr").hover( function() { var secondCell = $(this).children[1].textContent; ...

Angular ng-repeat app not functioning as intended due to a lack of complexity

Seems like I've stumbled upon a rather silly issue here and it might be a duplicate question, but I'm still scratching my head over it. I have this incredibly basic Angular app along with some HTML. While debugging in Chrome, I can clearly see ...

What is the process for extracting text from one input field and using it as a placeholder in another input field?

I am developing a form creator that allows users to easily customize placeholder text for input fields. Users can simply type their desired placeholder text into a separate input field. Here is my current approach: HTML: <label>Title</label& ...

Is there a way to verify the identity of two fields using an external script such as "signup.js"?

My current project involves working with Electron, and it consists of three essential files. The first file is index.html: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <link rel="styles ...

Vertical Alignment of Text within a DIV

I'm looking to center text vertically in all screen resolutions. Does anyone have suggestions? https://i.sstatic.net/DHuE0.jpg ...

The E.js Template encountered an error with an unexpected token "else"

I am in the process of creating a website quickly using e.js & Express. However, I am encountering some problems when trying to use an if-else statement within e.js tags. The if statement works fine, but as soon as I add an else statement, things start t ...

How can I retrieve information from a MySQL Table and display it on an HTML page?

Seeking Solution, I've experimented with Node.JS, but unfortunately, it does not seem suitable for webpage functionality. Online resources mostly discuss displaying HTML through Node.JS without mentioning SQL integration. My experience with PHP is l ...