Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8985075
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T21:15:20+00:00 2026-06-15T21:15:20+00:00

I have a responsive slider using FlexSlider. I also want the text under each

  • 0

I have a responsive slider using FlexSlider.
I also want the text under each slider to resize. FitText does not initialize on any slide except for the first, or if I resize the window.
How can I make this work (with no FOUC)?
Should work in IE 8 up, plus modern browsers.

http://jsfiddle.net/simply_simpy/adtVP/11/

HTML

    <div class="flexslider">
      <ul class="slides">
        <li>
            <figure>
              <img src="http://lorempixel.com/400/200/animals/" alt="" />
              <figcaption>
                <h1>Lorem ipsum dolor sit amet</h1>
                <p>consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco </p>
              </figcaption>
            </figure>
        </li>
        <li>
            <figure>
              <img src="http://lorempixel.com/400/200/sports/" alt="" />
              <figcaption>
                <h1>uis nostrud exercitation ullamco </h1>
                <p>Ut enim ad minim veniam, quis nostrud exercitation ullamco </p>
              </figcaption>
            </figure>
        </li>
        <li>
            <figure>
              <img src="http://lorempixel.com/400/200/people/" alt="" />
              <figcaption>
                <h1>ncididunt ut labore et dolore magna aliqua.</h1>
                <p>abore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco </p>
              </figcaption>
            </figure>
        </li>
      </ul>
    </div>​

CSS

    .flex-control-nav, .flex-control-paging {
        clear: both;
    }

    .flexslider {
        width: 100%;
    }

    .flexslider img {
      min-width: 100%;
    }
    h1 {
        font-size: 23px;
        width: 100%;
    }
    p {
        font-size: 16px;
        width: 100%;
    }
    .slides li {display: none}

JS

$('.flexslider').flexslider();

$(".slides h1, .slides p").fitText();  ​
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T21:15:20+00:00Added an answer on June 15, 2026 at 9:15 pm

    hope this would be helpful http://jsfiddle.net/adtVP/40/

    roadmap:

    1. read on short note on css tricks about fitText plugin
    2. took Paul Irish’s cross browser implementation for fixing resize event in different browsers
    3. switched from px to em (or any other relative values like %) on font sizes only here:

      ...
      h1 {
          font-size: .5em;
          width: 100%;
      }
      p {
         font-size: .2em;
         width: 100%;
      }
      ...
      

      made bit modification to the way how fit text are called

      $(".slides").fitText();
      

    this basically will update font size on a parent level element which will make effect for em based font of children, and this is the whole idea.

    also call the fit Text every time when window resized using snippet code from Paul.

    that’s it, code it rough and needs to be cleaned and glanced but works.

    UPD: code from the github source for fitText is blocked in IE by mismatching mime type, and that caused problems.
    As a alternative solution you may just include source in your js file with correct type, and that will work.

    old IE not working example is here http://jsfiddle.net/adtVP/35/ leave it here for the record, the new one above tested with IE Debug Toolbar down to 7 version, for sure it is not the same as a real browsers but so far so good.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a responsive site that I'm developing where I'm using a image slider
I am using a responsive slider and want to make clickable links over the
I have flexslider set up on a responsive site. The slider I am creating
I have a slider, whose velocity I calculate via the difference between positions each
I am using scrapy to crawl different sites, for each site I have an
I have a problem with my responsive flexslider plugin. The plugin works fine unless
I've created a responsive image slider using jQuery cycle . The following setup I
I have an issue where I'm using the Nivo jQuery slider on a HTTPS:
I have a responsive layout and I've created a fading panels animated element with
I have implemented a GoogleMapsV3 map in a twitterBootstrap basic responsive design site. But

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.