Angular Bootstrap div width not displaying fully on iPad device

My layout includes 2 columns in a single row, which is functioning properly on most devices. However, when viewed on an iPad, the layout does not span the full width of the screen.

Here is a snippet of my code:

        <div class="row">
          <div class="col-xl-8 col-lg-8 col-sm-12">
            <div class="card mb-4">
              <div class="card-header">
                <div class="card-title-wrap bar-info">
                  <div class="card-title">Personal Information</div>
                </div>
              </div>
              <div class="card-body">
                <div class="card-block">
                  <div class="align-self-center halfway-fab text-center">
                    <a class="profile-image">
                      <img src="assets/img/portrait/medium/avatar-m-9.jpg"
                        class="rounded-circle img-border gradient-summer width-100" alt="Card image">
                    </a>
                  </div>
                  <div class="text-center">
                    <span class="font-medium-2 text-uppercase">{{selectedPatient?.patientName}}</span>
                    <p class="grey font-small-2"></p>
                  </div>
                  <div class="row align-self-center">
                    <div class="col-12 col-sm-6">
                      <ul class="no-list-style pl-0 text-center">
                        <li class="mb-2">
                          <div class="d-flex align-items-center">
                            <div class="d-inline-block">
                              <span class="text-bold-500 primary"><a><i class="ft-briefcase font-small-3"></i>
                                  ID: </a></span>
                            </div>
                            <div class="d-inline-block">
                              <span class="">
                                <span class="display-block overflow-hidden">
                                  &nbsp;&nbsp;{{selectedPatient?.mrn}}</span>

                              </span>
                            </div>
                          </div>
                        </li>
                        <li class="mb-2">
                          <div class="d-flex align-items-center">
                            <div class="d-inline-block">
                              <span class="text-bold-500 primary"><a><i class="ft-briefcase font-small-3"></i>
                                  Case #:</a></span>
                            </div>
                            <div class="d-inline-block">
                              <span class="">
                                <span class="display-block overflow-hidden"> &nbsp;&nbsp;Ninja Developer</span>

                              </span>
                            </div>
                          </div>
                        </li>
                      </ul>
                    </div>>
                    <!-- Additional columns and content go here -->
                  </div>>
                </div>
              </div>
            </div>
          </div>
        </div>

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

Despite trying various column size classes, such as col-xl-8 col-lg-8 col-sm-12, to ensure full width display, the iPad still shows some white space around the layout. This results in the text overflowing the designated area. The goal is to achieve full width display on the iPad to cover the entire white space.

Answer №1

To fix the issue, simply replace the second line with the following:

<div class="col-xl-8 col-lg-12 col-sm-12">

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

Unable to load the node modules

In my development journey, I created an ASP.NET MVC project using Angular 2 in Visual Studio 2017 and set up node for package management. Here is a snippet from the package.json file: { "version": "1.0.0", "name": "asp.net", "private": true, ... ...

Combining Angular 2 RC with Play Framework 2 for seamless integration

I am seeking to combine angular2 rc and play framework 2. Take a look at this example using the beta version https://github.com/joost-de-vries/play-angular2-typescript. One challenge is that rc has different naming conventions and each angular module is ...

Tips for setting up the image as the header background in HTML5 and CSS3

I am currently designing a website. I'm wondering if there is a way to create a div with a curved bottom using HTML5, CSS3 and JavaScript. It should resemble the design of the curved header bottom ...

Retrieve all data values from a form using the ngModel directive within an Angular application

I am having trouble retrieving all the values from a form using ngModel. I am only able to get the values from the first text box and not the ones added after clicking the button. For example, you can check this StackBlitz link. Here is the HTML code sni ...

What are all the different methods I can use to transfer element A to element B, and what are those methods?

While experimenting with Jquery, I encountered a roadblock and now have this question in mind. I wish to enclose all the anchor elements within a newly created div element. <td class="cont-mod-none-options" valign="top" align="right"> <a hr ...

Styling text and images with Bootstrap

Currently, I'm utilizing bootstrap to structure a row with 2 div elements. The first div contains an image while the second div holds text content. The challenge I am facing is aligning the text to the edge of the image. However, since the image does ...

Securing Angular CLI Assets: Implementing canActivate for Protection

I am facing an issue where anyone can access my website's assets using URLs like http://localhost:4200/assets/filename.pdf, even when the user is not logged in. How can I secure these assets by implementing a canActivate guard? An ideal solution woul ...

Chosen Buttons for Emailing

I have recently created a multistep form and have implemented functionality to receive the form contents via PHP email. However, I am facing a challenge where, when I navigate through the form and encounter multiple buttons to choose from, the email I rece ...

How can I show the initial three digits and last three digits when using ngFor loop in Angular?

Greetings! I have a list of numbers as shown below: array = [1,2,3,4,5,6,7,8,9,10] By using *ngFor, I am displaying the numbers like this: <div *ngFor =" let data of array"> <p>{{data}}</p> </div> Now, instead of d ...

Leveraging font as a comprehensive repository of icons

I have been experimenting with using entypo as the icon source for my web application. The UI technology I am working with is ZK. However, I encountered an issue when trying to include an icon from that font by using: <span sclass="entypoWhite">&am ...

CSS page header not appearing on all pages when printing from TryitEditor in Safari on iOS

Experimenting in W3's TryitEditor, I am currently using the following CSS: p.hr { position: running(header) } @media print { .pagebreak { page-break-before: always; } @page { @top-center { content: element(header); } } } Ther ...

hover effect with fading transition while mouse is still hovering

Is there a way to create a fade-in/fade-out effect on a div without the mouse needing to leave the area? Let me provide a clearer explanation: When the mouse enters the object The object gradually fades in Then, after a delay, the object fades out while ...

Create a vibrant stroke and conclude with a circular marker beneath the content with CSS

Can you create a vibrant line with a dot underneath text using CSS, similar to the example shown in the image? The underline should begin with some spacing or padding. .underline { text-decoration: underline; text-underline-offset: 10px; displa ...

Having trouble getting StencilJS Bottomsheet to work properly? Looking for a way to smoothly slide up your content?

I've been working on creating a Bottomsheet in Stencil, but I'm facing an issue where it shows up suddenly when activated. My goal is to display the overlay when the active property is set, and then smoothly slide up the content. Below is my comp ...

Troubles with CSS in MUI Component Integration

How can I successfully implement a vertical timeline using Material UI in React? I've set it up, but the CSS isn't functioning as expected. Is there an error in my implementation? List of Dependencies: "@emotion/react": "^11.11.1& ...

How can I retrieve values from HTML5 data attributes using Selenium in Python?

How can I extract the value "165796011" from data-gbfilter-checkbox? I attempted to do so using the following code: element= driver.find_element_by_css_selector('#widgetFilters > div:nth-child(1) > div.a-row.a-expander-container.a-expander-inl ...

How to retrieve query parameters using Angular 2's HTTP GET method

Seeking assistance on my Ionic 2 app built with Angular 2 and TypeScript. I am familiar with older versions of Angular, but still adjusting to this new environment. I have set up my API with basic query strings (e.g domain.com?state=ca&city=somename) ...

Is placing JavaScript on the lowest layer the best approach?

I'm facing a unique situation that I haven't encountered before and am unsure of how to address it. My website has a fixed top header and footer. On the left side, there is a Google Adsense ad in JavaScript. When scrolling down, the top header s ...

Implement Conditional Enabling of Forms in JavaScript or jQuery to Support Single Form Usage

I currently have four forms labeled as form-1, form-2, form-3, and form-4, along with three buttons named Button-1, Button-2, and Button-3. Upon loading the first JSP page, it displays form elements on the screen. My query pertains to clicking on button- ...

The 'BaseResponse<IavailableParameters[]>' type does not contain the properties 'length', 'pop', etc, which are expected to be present in the 'IavailableParameters[]' type

After making a get call to my API and receiving a list of objects, I save that data to a property in my DataService for use across components. Here is the code snippet from my component that calls the service: getAvailableParameters() { this.verifi ...