473,320 Members | 1,977 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

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

Expand|Select|Wrap|Line Numbers
  1. <nav class="navbar navbar-default">
  2.  <div class="container">
  3.   <ul class="nav navbar-nav">
  4. <li><a href="#"> home</a></li>
  5. <li><a href="#"> products catogeries</a></li>
  6. <li><a href="#"> services catogeries</a></li>
  7. <li><a href="#"> for kids</a></li>
  8. <li><a href="#"> womens</a></li>
  9. <li><a href="#"> men</a></li>
  10. <li><a href="#"> home influences</a></li>
  11. <li><a href="#"> sports and weare</a></li>
  12. <li><a href="#"> etc</a></li> 
  13.  
  14. </ul>
  15.  
  16. </div>
  17. </div>
Apr 17 '16 #1
1 15937
Hello,

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

Expand|Select|Wrap|Line Numbers
  1. $(window).resize(function() {
  2.   $(".navbar-nav li:nth-of-type(2) a").text(".");
  3. });
  4.  
Oct 12 '16 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Matt | last post by:
I posted a question before regarding the offset positions when I used CSS. Some people suggested I should use percentage instead of pixels? I tried many different ways, but the position still...
25
by: chris | last post by:
how would i resize a browser window to a specific size as the page loads, using html or javascript
4
by: jef | last post by:
I have an Intranet application that is targeted to IE browsers only. It is also designed explicitly to fit an 800x600 window. That said, I wish to ensure that the browser window sizes...
8
by: sun | last post by:
I want to do clean up routine to my database when the browser is closed. I have my code in session-end - but it never fires when the browser closes. I cant do onbeforeunload as it will be fired...
3
by: sohan | last post by:
hi I have hyperlink column in a datagrid. The column contains the name of a text file. I am able to appendthe full path of the file. The file is on D drive on the server. But on clicking on...
2
by: chowdary0783 | last post by:
Hi every one, I working on an web application in which clicking a button opens another window which will be dynamically populated with some data. Amount of data cannot be decided. I just want to fit...
0
gauchomatt
by: gauchomatt | last post by:
I have a liquid site which expands perfectly when the browser window is larger than the actual content. However, when I decrease the browser window size to a point that it's smaller horizontally than...
1
paulrajj
by: paulrajj | last post by:
Hi, I am working on my project which is a chat online script using php and javascript. I am maintaining users online_status who gets logged in to chat through session and updating their status to...
0
by: anastasia | last post by:
I have a jsp page with an IE9 only issue. On page load, the page partially displays even though the user is led to believe the page is finished. The only 3 ways I can get the rest of the page to...
1
by: Anju Baby | last post by:
when i minimize the browser window i need all the content in the website should be minimized. i need the solution in java script. can any one help me?
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.