In IE11, the letter type list with the style of lower-alpha no longer displays proper indentation

When viewing on IE11, the list in lower-alpha style (list-style-type: lower-alpha) is missing indentation. However, the indentation remains intact when viewed on Chrome, Edge, and Firefox browsers. The code snippet below showcases some of the CSS styles being utilized.

body {
  background: none;
  font: Arial, sans-serif;
}

.container {
  border-left: none;
  width: 600;
}

.container p {
  margin: 10px 0
}

#redbox {
  border: 2px solid red;
}

... (CSS code continues)
<ol class='margin'>
  <li><strong>Definitions.</strong>
    <ol style="list-style-type: lower-alpha;">
      <li><strong>&ldquo;Affiliate&rdquo;</strong> means any entity and its successors which directly or indirectly controls, is controlled by, or is under common control with the subject entity. ... (truncated)
     ... (HTML code continues)
</ol>

Answer №1

After testing out the code, I was able to find a solution on my own: ...........................................To fix the formatting issue of numbers in IE11, I had to adjust the .container width from auto to 600 in the initial style section. .container {border-left: none; width: 600;} Also, to maintain proper indentation in IE11, I made sure to include margin-left:10px; in all OL style tags throughout the code.

body {
  background: none;
  font: Arial, sans-serif;
}

.container {
  border-left: none;
  width: 600;
}

.container p {
  margin: 10px 0
}

#redbox {
  border: 2px solid red;
}

#redbox p {
  color: red;
  margin: 5px;
  font-weight: bold;
}

#date {
  text-align: center;
  font-weight: bold;
  margin-top: 0px;
}

.bigger {
  font-size: 14px;
  font-weight: bold;
}

@media print {
  body {
    width: auto;
  }
}

<ol class='margin'>
  <li><strong>Definitions.</strong>
    <ol style="list-style-type: lower-alpha;">
      <li><strong>&ldquo;Affiliate&rdquo;</strong> means any entity and its successors which directly or indirectly controls, is controlled by, or is under common control with the subject entity. <strong>&ldquo;Control&rdquo;</strong> for purposes of this
        definition, means direct or indirect ownership or control of more than 50% of the voting interests of the subject entity. An entity shall be considered an Affiliate only so long as such entity continues to meet the foregoing definition.</li>
      <li><strong>&ldquo;Agreement&rdquo;</strong> means this End User License Agreement (<strong>&ldquo;EULA&rdquo;</strong>) together with a SKU or associated SSLA (if any), License Entitlement (if any), Product Warranty Policy, and any other documents,
        policies or website content linked in this EULA and hereby incorporated by reference.</li>
      <li><strong>&ldquo;Approved Source&rdquo;</strong> means Juniper or an Authorized Reseller.</li>
      <li><strong>&ldquo;Authorized Reseller&rdquo;</strong>means a distributor or reseller authorized by Juniper to distribute and resell licenses to the Software in the territory in which You are purchasing such Software license.</li>
      <li><strong>&ldquo;Commercial Cloud Services&rdquo;</strong> means a service offered...</answer1>
<exanswer1><div class="answer" i="50182242" l="4.0" c="1525452973" a="TWljaGVsbGU=" ai="6343688">
<p>Through trial and error with the code, I successfully resolved the issue independently: ...........................................In order to display numbers correctly in IE11, I needed to adjust the .container width from auto to 600 in the initial style section. .container {border-left: none; width: 600;} To maintain indentation in IE11, I also had to add margin-left:10px; in all OL style tags throughout the code.</p>

<pre><code>body {
  background: none;
  font: Arial, sans-serif;

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

Discover the absent style attributes within an HTML code in C# and incorporate them

Currently facing a challenging situation where I have a C# string with html tags: string strHTML = "<span style="font-size: 10px;">Hi This is just a section of html text.</span><span style="font-family: 'Verdana'; font-size: 10px; ...

What is the best method for resetting a flexbox item?

I'm trying to achieve a layout with flex box where the first item spans 100% width, the second item is centered at 50% on its own line, and the third and fourth items each take up 50% width on the same line. Usually, clearing works fine on simple blo ...

Guide on creating a toggle effect for a div with querySelector and addEventListener

I utilized the email and password divs provided by Bootstrap. The CSS for the id dropdownlogin includes display: none; in this post, I hope that I have shared adequate information. <script> document.addEventListener('DOMContentLoaded', ...

Issues with Implementing Custom CSS Styles in ag-grid

It seems like a simple customization, but the documentation on it is quite limited. I'm trying to change the line-height of one of my tables so that text doesn't double-space when wrapping. Here's the CSS code from Test.module.css: .ag-them ...

Using absolute positioning on elements can result in the page zooming out

While this answer may seem obvious, I have been unable to find any similar solutions online. The problem lies with my responsive navbar, which functions perfectly on larger screens. However, on mobile devices, the entire website appears zoomed out like thi ...

What is the best technique to incorporate dark/light mode in Bootstrap 5?

Is it best to introduce themes such as dark and light themes in Bootstrap 5 using CSS/SCSS, JavaScript, or a combination of both? Should we create a separate CSS file like dark.css to overwrite classes? Or should we use JavaScript to switch classes like ...

Having trouble with CSS margins behaving unexpectedly

Could someone please explain why I am unable to add margin-top/bottom or padding-top/bottom to this "a" tag? I am trying to center "Konoha" in the header box. html{ background-color: white } body{ width: 88.5%; height: 1200px; margin: 0 auto; borde ...

Press the Relay button to initiate the ASP.NET File Upload functionality

Within an ASP.NET C# website, I have incorporated an input that allows the user to upload a file to the server. To address the limitation of not being able to style an input of type=file, I devised a visually styled div that mirrors the appearance of the i ...

Using select2 scss from the node_modules folder

Looking for help with importing select2 scss from node_modules. I successfully installed the select2 by running the command: npm install select2 which created a select2 folder in the node_modules directory. Can anyone guide me on how to import the css f ...

Height of Hover Background Color in WordPress Menu

Greetings! Welcome to my website I'm in the process of modifying the hover color for the top menu, and I've managed to change it successfully. However, I would like the hover effect to cover the entire height of the menu, as right now it's ...

Guide to switching between 3 classes with mouseover using JavaScript

Currently, I am dealing with an unordered list that contains 4 items. The goal is to have the list grow to 100% of its width when hovered over, while all 'noun hovered li' items should shrink to a width of 0%. Once the cursor leaves, everything s ...

Navigating the World of CSS Selectors - Balancing Style Control Without Excessive Class Usage

I recently stumbled upon a responsive menu that I wanted to incorporate into my webpage design. However, as I delved deeper into the implementation process, I realized that the CSS code associated with the menu was targeting all ul, li, a elements on the e ...

When the div element reaches the top of the page, it sticks to the top and is only displayed when the user

In the center of a full-screen hero section, there is a form. When it reaches the top, its position becomes fixed and additional classes are added through a script - such as shrinking its height and adding a background. What I aim to achieve is for the fo ...

Changing Background Colors of Grid Items in React.js Grid Layout

I'm currently learning React and have created a basic app that shows data from a database in a grid format. I'm looking to customize the background colors of each grid item based on its priority level, which is pulled from the database. The prior ...

What is the most effective method for incorporating personalized React components in the midst of strings or paragraph tags

Summary: Exploring the frontend world for the first time. Attempting to integrate custom components within p-tags for a website, but facing challenges in making them dynamically changeable based on user interaction. Greetings all! As a newbie in front-end ...

Focused on individual characters in a string to implement diverse CSS styles

Is there a way I can apply different CSS classes to specific indexes within a string? For example, consider this string: "Tip. \n Please search using a third character. \n Or use a wildcard." I know how to target the first line with CSS using : ...

Step by step guide to implementing form step validation in a multi-step jQuery form with radio buttons

I have implemented the sample code provided in this link, with the addition of 2 extra form steps: LINK TO SAMPLE FORM My form consists of radio buttons (2 per page) instead of text boxes. How can I ensure that each form page is validated so that the for ...

"Looking for a way to eliminate the background of an image on NextJS? Learn

https://i.stack.imgur.com/zAsrJ.png When this image is incorporated into a Nextjs rendering, it unexpectedly includes additional content. <div className="flex flex-col items-start justify-start rounded-3xl p-4 bg-boxi w-1/3"> <div cla ...

Tips for setting the color of hyperlinks in a UIWebView

I'm struggling with formatting a short plain text string, which may include a weblink, in a UIWebView. When I use loadHTMLString, the font style and size appear incorrect. After searching extensively, I ended up embedding the text in a makeshift HTML ...