Is it necessary to use ul and li tags in flexslider?

Asked

Viewed 281 times

1

I’m wondering if you have how to exchange ul and li by div ? Pq I find it more complicated to mess with ul and li than with Divs !!

  • Excuse the question, but what’s hard to use <li>? Think of <ul> as the parent div and us <li>s as Daughters. Could explain the difficulty? I believe there is no way to change.

  • is that I can’t put the order in css !! ex: slide li{} or slide ul{} or when to use slide ul li{}

  • 1

    Just change the his selector: selector: ".slides > li", .

  • don’t I understand ? Runo.

  • @Brunowego It makes sense, formulate a response, with a slightly more complete example. Great tip (although you haven’t tested it yet).

  • @Gilmarsantos what order? Could you explain editing the question? I do not understand what to change to div will improve in the use of order.

  • is that I can’t mess with the ul tag and read. in html I know how to play, but in css I can’t.

  • 1

    This is still hard to understand, the ul tag in css would be ul {} and in the div div {}, in li would be ul > li {} and in the div div > div {}, just change the names. Your problem seems something, this has nothing to do with the ordering you mentioned earlier, the order is not influenced by Ivs or Lis or Uls. Could be clearer?

  • vlw I will study more about the tags li and ul !! I am still very lay in web languages !!

Show 4 more comments

1 answer

1


According to the documentation of flexslider, just change the parameter selector:

<script type="text/javascript" charset="utf-8">
  $(window).load(function() {
    $('.flexslider').flexslider({
      selector: ".slides > li"
    });
  });
</script>

This becomes possible because the flexslider uses classes in its child elements and not selection by the element li.

  • the understood is only I change this selector: ". slides > li" to selector: ". slides > div"

Browser other questions tagged

You are not signed in. Login or sign up in order to post.