skip to Main Content

I’m getting the html values to get display on UI. But I’m getting the blank line in-between two bulletins values.

<ul><li>Coffee</li><li>Tea</li></ul>

This will display values as below

•Coffee

•Tea

But my expectations would be

•Coffee
•Tea

Is there any way to met my expectations in html tags instead of using CSS?

2

Answers


  1. For my knowledge, pure html cannot achieve that, but how about inline style?

    <ul><li>Coffee</li><li style="margin-top:0;">Tea</li></ul>
    
    Login or Signup to reply.
  2. I also ran through the code but I didn’t have the same problem as you, a blank line does not appear between the two values

    <ul><li>Coffee</li><li>Tea</li></ul>
    

    •Coffee
    •Tea

    Did you set some other css style that caused it to produce blank lines?

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search