The page fails to adjust to changes in the size of the page

I have the following code snippet embedded in my webpage:

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
      <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  

    <asp:PlaceHolder runat="server">
        ...
            <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="..." crossorigin="anonymous"></script>
             ...

            <link rel="stylesheet" href="Styles/new.css" />
        
     </head>
    <body>
        <form id="form1" runat="server">
            <asp:ScriptManager ID="s" runat="server"></asp:ScriptManager>
              ...
                <div style="align-items:center; justify-content:left;display:flex;font-size:24px"><b>Recording test testing</b></div>
                  ...

          
               </div>  
            </div>
        </form>
    </body>
</html>

Feedback from users indicates that the layout is not mobile-friendly and lacks responsiveness when viewed on smaller screens. The text overflows beyond the screen width instead of wrapping to the next line. This issue persists despite utilizing Bootstrap and meta tags for responsiveness. Refer to the screenshot below for a visual representation:

https://i.sstatic.net/mAVgu.png

Your assistance in resolving this mobile responsiveness concern would be greatly appreciated.

Answer â„–1

Your div containing the classes

container max-width-940 body-content
is currently styled with inline styles that include width:1600px;. This is causing the div to be fixed at a minimum width of 1600px, preventing it from resizing as needed. By removing this attribute from your inline styles, the div will be able to resize dynamically based on the mobile breakpoints provided by the Bootstrap classes.

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
      <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  

    <asp:PlaceHolder runat="server">
        <%: Scripts.Render("~/bundles/modernizr") %>
    </asp:PlaceHolder>

    <webopt:bundlereference runat="server" path="~/Content/css" />
    <link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
        
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous" />

<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
 <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" />
    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
 <link rel="stylesheet" href="Styles/new.css" />
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="s" runat="server"></asp:ScriptManager>
        <div>

        </div>
        <div style="background-color:white;border-radius:10px;align-content:center;align-self:center;vertical-align:middle;" class="container max-width-940 body-content"  >
                <div style="margin-top: 70px">
       
                <div style="align-items:center; justify-content:left;display:flex;font-size:24px"><b>Recording test testing</b></div>
          <div>&nbsp;</div>
        <div>
          <span style="font-size:18px"> This is a test1. This is a test2.This is a test3.This is a test4.This is a test5.This is a test6.This is a test7.This is a test8.This is a test9.This is a test10.This is a test11This is a test12This is a test13This is a test14This is a test15This is a test16This is a test17This is a test18This is a test19This is a test20This is a test21This is a test22This is a test23This is a test24.</span>
        </div>
        <div>&nbsp;</div>
 
   
        
    
           </div>  
        </div>
    </form>
</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

Is it possible to embed HTML code within JavaScript strings?

Is my approach to inserting HTML into a JavaScript string correct? In particular, I want to insert an HTML link into a div tag using JavaScript. Here is the HTML: <div id="mydivtag"></div> And here is the JavaScript code: document.g ...

Center user input within a div element

I am trying to achieve proper alignment of input elements within a div. When the div is clicked, the input should be displayed; otherwise, a span should be shown instead. Here is my code: <!doctype html> <html lang="en"> <head&g ...

Customize Link Appearance Depending on Current Section

Looking for a way to dynamically change the color of navigation links based on which section of the page a user is currently viewing? Here's an example setup: <div id="topNav"> <ul> <li><a href="#contact">Contac ...

What could be causing my tabs to shift to the vertical side when using large, larger, and wide screens?

In my previous research, I came across a question similar to mine: Pure CSS accordion not working within CSS tabs. The solution mentioned works perfectly on monitors of any size, but the difference lies in the use of the a element. In their code, setting t ...

Bootstrap 4's XS column width set to 100% is malfunctioning

My static HTML page with Bootstrap 4 is displaying properly on large screens, but on extra small screens the columns are not taking up 100% width. What am I missing? <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/boo ...

What are some effective strategies for arranging multiple collapsible Bootstrap panels in an organized and visually appealing

I'm looking to use "collapsible bootstrap panels" to display a list, but I've run into an issue where certain panels don't align correctly when opened. For example, when I open the first panel in my code, all other panels shift down and sta ...

Why is align working fine while justify-content is experiencing issues?

When I try to center items vertically using the justify-content property with the flex-column applied, the align-items works correctly but the content doesn't respond on the Y axis. I have the align-items commented out because I only want to center on ...

The view has no access to $scope but the controller does

I need to display the iso code using a $scope when selecting a country from a list. The list of countries is fetched through a $http call in a factory and then stored in a scope. ///////// get countries //////////////// tableFactory.getCountries().then(f ...

<a href> hyperlink with the web address as the anchor text

Can a hyperlink be generated using a variable instead of typing in static text like CLICK HERE, so that it displays the full URL of the page specified in the a href tag, regardless of the URL? < a href="http://sourceforge.net/projects/tcpick/,">CL ...

Leveraging the CSS-Element-Queries Library for emulating the functionality of CSS media queries

Recently, I used a nifty CSS-Element-Queries tool to perform basic element manipulations that trigger whenever the window is resized. In simple terms, my goal was to dynamically adjust an element's attribute based on the current width of the window â ...

Error: Website unable to load on Internet Explorer 6

When trying to load a specific page in IE6, I encounter an issue where a popup message appears stating 'This page contains both secure and nonsecure items. Do you want to display the nonsecure items?' Regardless of my choice, I receive an HTTP 40 ...

Unusual sidebar scrolling issues experienced in Firefox

Currently, I am in the process of developing an app with a scrolling sidebar. However, there seems to be some unexpected behavior when using Firefox: the content within the sidebar disappears partially below the top of the div if the mouse is positioned lo ...

Tips for maintaining video height consistency while adjusting its attributes

When you click on a button, the video's poster and src attributes change. However, after clicking, the video height briefly becomes 0, causing an unsightly effect on the entire page. How can this be avoided? Please note - lorem.mp4 and ipsum.mp4 hav ...

Incantation within ng-include | src involving a series of characters

Is there a way to create a URL in ng-include|src by combining an expression and a constant string? I've attempted the code below, but it doesn't seem to be working. <aside ng-include src="{{staticPath}} + 'assets/tpl/products-feed-histor ...

How can I align three elements in columns with the center element expanding between them in CSS?

Is there a way to arrange 3 elements into columns where the left and right elements have fixed widths and align with the edges of the page, while the middle element fills in the space between them? Please advise on how to achieve this layout. ...

Creating my website with a unique inverse color scheme

I'm looking to change the color scheme of my webpage so that it is inverse (white becomes black and black becomes white) similar to the Dark Reader chrome extension: https://chrome.google.com/webstore/detail/dark-reader/eimadpbcbfnmbkopoojfekhnkhdbiee ...

How can I adjust the view port height to display the footer on the screen without the need for a scroll

Exploring some css techniques. I'm attempting to display the footer on the page without requiring a scrollbar. My approach involves subtracting the footer's height from the content wrapper div. Unfortunately, this method doesn't seem to be e ...

disabling text alignment as justified for specific sections of text

To avoid wrapping a specific part of text, you can use <span style="white-space: nowrap;">. If you have justified text (text-align: justify), and want to prevent justification for certain words without affecting the rest, is there a way to do it? F ...

Horizontalize your lists

Is there a way to make the li elements horizontal in this pagination setup? I've attempted display: inline and display: float, but neither seem to be working for me. <ul class="pagination" style="display:inline; text-align: center; margin:0;">& ...

Issue with EaselJS: mouse events are no longer functional

I'm currently working on adding a touch animation using the EaselJs library. Interestingly, when I load an image from a local folder, all mouse events work as expected, such as onPress. However, things take a different turn when I opt to use an imag ...