how can i replace some of the text with dot when i re-size the browser window

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bangash
    New Member
    • Apr 2016
    • 1

    how can i replace some of the text with dot when i re-size the browser window

    Code:
    <nav class="navbar navbar-default">
     <div class="container">
      <ul class="nav navbar-nav">
    <li><a href="#"> home</a></li>
    <li><a href="#"> products catogeries</a></li>
    <li><a href="#"> services catogeries</a></li>
    <li><a href="#"> for kids</a></li>
    <li><a href="#"> womens</a></li>
    <li><a href="#"> men</a></li>
    <li><a href="#"> home influences</a></li>
    <li><a href="#"> sports and weare</a></li>
    <li><a href="#"> etc</a></li> 
    
    </ul>
    
    </div>
    </div>
    Last edited by gits; Apr 18 '16, 02:25 PM. Reason: added code tags
  • devcake
    New Member
    • Oct 2016
    • 4

    #2
    Hello,

    You can use jQuery .resize() event.
    The resize event is sent to the window element when the size of the browser window changes:

    Code:
    $(window).resize(function() {
      $(".navbar-nav li:nth-of-type(2) a").text(".");
    });

    Comment

    Working...