{"id":9531,"date":"2021-01-21T14:35:49","date_gmt":"2021-01-21T19:35:49","guid":{"rendered":"http:\/\/local.brightwhiz\/?p=9531"},"modified":"2021-12-04T05:38:54","modified_gmt":"2021-12-04T05:38:54","slug":"show-unordered-list-html-without-bullets","status":"publish","type":"post","link":"http:\/\/local.brightwhiz\/show-unordered-list-html-without-bullets\/","title":{"rendered":"Tip: Properly Display an Unordered List in HTML Without any Bullets"},"content":{"rendered":"\n
This is a quick tip to show you the right way to display an ordered or unordered list in HTML<\/a> without any bullets or points.<\/p>\n\n\n\n Generally, you can remove bullets from unordered or ordered HTML lists with the list-style-type<\/strong> CSS<\/a> property.<\/p>\n\n\n\n You simply need to apply the list-style-type<\/strong> CSS property to the UL<\/strong> selector with a value of none as shown below.<\/p>\n\n\n\n <\/p>\n\n\n\n More often than not you need to reposition the rest to make things look better. This can be done by setting the padding and margin CSS properties to zero (0) as seen below.<\/p>\n\n\n\n <\/p>\n\n\n\n The above code removes the indentation that comes with HTML lists. You can play with the padding and margin to get the best layout according to your theme or template.<\/p>\n\n\n\n That’s how to properly display an unordered list in HTML without any bullets.<\/p>\n\n\n\nul {\n list-style-type: none;\n}<\/code><\/pre>\n\n\n\n
ul {\n list-style-type: none;\n padding: 0;\n margin: 0;\n}<\/code><\/pre>\n\n\n\n