Trouble with flexbox: text getting cut off or not wrapping properly

Utilizing flexbox to showcase a blockquote and author/avatar in a horizontal layout within a slideshow (flexslider) has been running smoothly, except for one hiccup with IE10. Oddly enough, it seems to be functioning perfectly on Chrome, Firefox, Opera, Safari, Edge, and IE11.

The issue arises when the text gets cut off at the end of the quote. To notice this, resize your viewport if not immediately visible. The problem could be attributed to the padding set on either side of the text to accommodate custom open/close quotation marks.

Another snag encountered in IE10 occurs with long texts (for instance, "James Hetfield Longname" in the first quote) as they fail to wrap properly. This might be linked to the previous issue since incorrect wrapping suggests text disruptions.

For reference, I've attached links to an example below. Included are both a CodePen snippet and a simplified version of my HTML template:

CodePen: http://codepen.io/moy/pen/XdLELV Template:

Your assistance in resolving these issues would be greatly appreciated!

Below is the code; although its extensive nature may seem overwhelming, it's imperative for uncovering solutions:

EDIT: Autoprefixer was utilized to incorporate additional flex prefixes.

HTML:

<div class="flexslider">
    <ul class="slides">
        <li>
            <blockquote class="feature-quote">
                <p class="feature-quote__text">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam.</p>
                <footer class="feature-quote__cite">
                    <img src="img/temp/avatars/avatar-james.jpg" class="feature-quote__avatar" />
                    <p><strong class="name">James Hetfield Hetfield</strong> Damage Inc.</p>
                </footer>
            </blockquote>
        </li>
      {/* Additional list items */}
    </ul>
</div>

CSS:

/* Base blockquote styles */

blockquote {
    /* Attributes */
}

/* Feature (avatar) quotes */

.feature-quote {
    /* Styles */
}

@media only screen and (min-width: 768px) {

    /* Media query styles */
}

Answer №1

Building on what Pete mentioned regarding IE10's lack of proper flexbox support.

http://caniuse.com/#search=flex

Concerning IE10:

Only fully supports the 2012 syntax

Requires the -ms- prefix

This response provides in-depth details about using flex in IE10:

Answer №2

Important I have set up autoprefixer to automatically generate all -ms- prefixes. Therefore, I will only mention the declarations without prefixes here.

The issue was resolved by simply adding flex: 0 1 auto; to the paragraph.

I encountered a problem where the text would not wrap within the .feature-quote__cite container. Although adding the aforementioned code did not work at first, applying it directly to the paragraph itself rather than its parent container .feature-quote__cite solved the issue. It may not be the most ideal solution, but it seems to have fixed the problem.

In addition, in IE11, the avatar image would become distorted when there was insufficient horizontal space. To address this, adding flex-shrink: 0; to the image rectified the issue.

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

The image is not adapting to different screen sizes

Issue with Image Display Original Image size : 463px X 339px Unfortunately, the image has been removed to adhere to copyright policies. HTML Code Snippet <div class="col-md-4"> <div class="item-block event-details" id="video-container"> ...

Creating a shimmering glow for a dynamic AJAX div block in real-time

I created an Ajax code that retrieves results from a txt file in real time, which are then automatically displayed in a div block using the following lines: if (xmlhttp.responseText != "") { InnerHTMLText = xmlhttp.responseText + document.getElementBy ...

"What are the best methods for getting Chrome to update SVGs with newly added content in

I have successfully added dynamically created circle elements to the SVG displayed in an iframe. However, I am facing an issue where Chrome is not showing the new elements (I have not tried FF yet). Do I need to call some sort of redraw or refresh function ...

Encountering limitations when trying to change a variable within a JavaScript function

I'm currently experimenting with React, and I'm unsure if the rules differ in this context. My project involves creating a voice assistant, and my goal is to update the variable myVar within the switch statement located inside the function myFunc ...

Using jQuery to handle multiple AJAX XML requests

Currently, I am working on developing a JavaScript XML parser using jQuery. The idea is that the parser will receive an XML file containing information along with multiple links to other XML files. As the parser runs, it will identify tags within the file ...

Browser displaying a CSS error: "Invalid property name" while applying pseudo-element :after

I encountered an issue in Chrome and Explorer while attempting to set a CSS property for a pseudo element :after. (I'm trying to create a styled burger nav icon) The error message I received was: 'Unknown property name' This happened wh ...

Issue encountered when trying to import @tensorflow/tfjs-node in conjunction with the face-api.js library within a node.js environment

Using the @tensorflow/tfjs-node package along with face-api.js to enhance performance, here is my code snippet: // Import nodejs bindings to native tensorflow, // Not required but will significantly speed up operations (Python required) require('@tens ...

Adjust the appearance of primeng's PanelMenu component

I've been attempting to customize the appearance of the PanelMenu component So far, I've successfully changed the overall background color. https://i.sstatic.net/MGIia.png My goal is to set the main menu items to white and the submenus to blac ...

Exploring the Creation of Static Functions and Objects in JavaScript/Node.js using ES6

Looking to create a static class using JavaScript/Node.js but having trouble finding a useful example online. I want to implement something similar to this C# code in JavaScript ES6: public static MyStaticClass { public static void someMethod() { ...

Hiding a column in jQuery DataTables

Can the jquery datatables plugin be used to easily hide and show a table column? I've successfully refreshed the table data by using fnClearTable and fnAddData. However, I'm facing a challenge in one of my table views where I need to hide certa ...

The carousel slider is experiencing issues following the update to bootstrap 4

I recently attempted to upgrade my Bootstrap from version 3.3.4 to 4.1.3 by replacing the contents of bootstrap.js with the new version. Unfortunately, after making this change, the slider on my website stopped functioning properly. The carousel would disp ...

Not entirely certain about how to execute this concept using AJAX

While pondering the development of an instant messaging application, I aimed to decrease the frequency of AJAX requests (currently one every .2s). This led me to devise a unique approach: Initiate an AJAX request from the user side to the server. Wait ...

Conceal/reveal specific sections of a table cell using jQuery

Here is a table I have: A header Another header First (some-text-initially-hidden) click row Upon clicking, it changes to: A header Another header First (some-text-should-be visible now) click row However, the text "some-text-initially-hi ...

Display an overlay image only when hovering over a Bootstrap 4 card

I have a Bootstrap 4 card that I am working with. Currently, when I hover over any part of the card, a transparent overlay covers the entire card. I would like to modify this effect so that the overlay only appears over the top image area of the card, not ...

flexible side-by-side alignment - adaptable grids

I am currently working on a website project that involves a ul list with responsive columns. The column width adjusts based on the window size, and I aim to center-align the text within the li element according to the new column width. If you want to view ...

Material-UI: Issue with AppBar background color not changing when specifying type as 'dark' in createMuiTheme

When I change the theme by switching the value of theme.palette.type to 'dark', I noticed that all white components switch to a dark color, but not for components like AppBar which have a primary color of #3f51b5 as their default. I assumed that ...

Experience interactive 3D model viewer in action

I want to embed this 3D model viewer into an existing div instead of creating a new one. I've made some edits to the code but it's not working. Any assistance would be greatly appreciated. <script> // Here is where the model viewer cod ...

Using jQuery's .post() method to automatically scroll to the top of

Is there a way to prevent the automatic scrolling to the top of the page when executing the buy function? Here is the code snippet involved: <a href="#" onClick="buy(id)">Buy</a> The buy function utilizes the $.post() function for processing t ...

Unable to Display CSS Background

Hey there, I've been experimenting with CSS backgrounds to create a header line consisting of 5 equally sized portions, each in a different color. I'm having trouble getting the background to display properly. Below is the code I have written. An ...

Utilizing Vue's data variables to effectively link with methods and offer seamless functionality

I am encountering difficulty retrieving values from methods and parsing them to provide. How can I address this issue? methods: { onClickCategory: (value) => { return (this.catId = value); }, }, provide() { return { categor ...