0

I want to create list of inline items, separated by bullets, but I want to hide all bullets on the end of line. Example:

France • Germany • Greece

Hungary • Iceland • Ireland

(As you can see, there's no bullet between Greece and Hungary).

Now, the problem is, I need this to work in any viewport width. The text should wrap naturally and bullets should appear only when they are not at the line break.

This is somehow similar to soft hyphen (­) behaviour.

Is there any method to achieve this? Maybe some kind of unicode control character..?

Thanks!

Andrei
  • 42,814
  • 35
  • 154
  • 218
kaboom
  • 1,134
  • 8
  • 8

2 Answers2

0

You Just need to write simple css code:

.someclass{
list-style:none;
}

add class in your

<ui>
<li class="someclass">
</li>
</ul>
Priya jain
  • 753
  • 2
  • 5
  • 15
0
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Display Progress</title>
    <script src="Scripts/jquery-1.3.2.js"
    type="text/javascript"></script>

    <script type="text/javascript">
        $(document).ready(function() {
        var geoList = [
             { Country: "India", State: "Delhi" },
             { Country: "US", State: "Alabama" },
             { Country: "US", State: "Georgia" },
             { Country: "US", State: "Texas" },
             { Country: "US", State: "NewYork" }
             ];
            $('#LoadPage').append("<ul id='cList'></ul>");
            for (i = 0; i < geoList.length; i++) {
                $("#cList").append("<li>" +
                geoList[i].Country + "-" +
                geoList[i].State + "</li>");
            }
        });
    </script>
</head>
<body>
    <form id="form1">
    <div>   
        <div id="LoadPage">
        </div>  
    </div>
    </form>
</body>
</html>
Priya jain
  • 753
  • 2
  • 5
  • 15