1

JSFiddle for this to see the HTML/CSS in detail

I think this is the relevant CSS:

ul {
    list-style-position: inside;
    list-style-type: circle;
    padding-top: 16px;
    padding-left: 8px;
    padding-bottom: 5px;
}

ul li {
    padding-top: 0px;
    padding-bottom: 16px;
    word-break: normal;
    word-wrap: normal;
}

/*
 How to center the bullet vertically with the content:
 https://stackoverflow.com/a/31966278/421797
 (You also have to wrap your li content in a span tag!)
 */
li span {
    display: inline-table;
    vertical-align: middle;
    padding-left: 16px;
}

Ultimately I don't know why an extra line seems to get rendered for a long text string when it should probably have 2-3 line breaks instead.

The JSFiddle above will show the CSS I'm using. It won't render the problem I'm seeing on iPhone SE:

HTML Rendering Problem

If anything I would expect:

Empfänger
personenbezogener Daten

And all the list items have the same margin from the bullet point, and the bullet point should be vertically aligned to its list item content.

/*
 https://stackoverflow.com/a/3428477/421797
 Makes sure the Browser isn't trying to perform its own magic.
 
 Also,
 You can debug this in the simulator by looking here for how to do that:
 https://stackoverflow.com/a/43771390/421797
 
 */

@media screen and (max-device-width: 480px) {
  body {
    -webkit-text-size-adjust: none;
  }
}

body {
  padding: 20px;
  padding-right: 5px;
  margin: 0px;
}

#content {
  padding: 0px;
  color: #46484d;
  background-color: white;
  font-family: Helvetica, sans-serif;
  font-size: 17px;
  line-height: 27px;
  letter-spacing: -0.24px;
}

p {
  padding: 0px;
  margin: 0px;
}

a {
  color: #3d78fe;
  text-decoration: none;
}

p.header {}

p.footer {}

ul {
  list-style-position: inside;
  list-style-type: circle;
  padding-top: 16px;
  padding-left: 8px;
  padding-bottom: 5px;
}

ul li {
  padding-top: 0px;
  padding-bottom: 16px;
  word-break: normal;
  word-wrap: normal;
}


/*
 How to center the bullet vertically with the content:
 https://stackoverflow.com/a/31966278/421797
 (You also have to wrap your li content in a span tag!)
 */

li span {
  display: inline-table;
  vertical-align: middle;
  padding-left: 16px;
}


/*
 How to choose different images depending on screen properties
 https://www.html5rocks.com/en/mobile/high-dpi/
 */

ul.bullets {
  list-style-image: -webkit-image-set( url("ovalCopy.png") 1x, url("ovalCopy@2x.png") 2x, url("ovalCopy@3x.png") 3x);
}
<meta name="viewport" content="width=device-width; initial-scale=1.0;" />
<div id="content">
  <p class="header">
    Blahblahblah, I redacted this for our product in test.
  </p>
  <ul class="bullets">
    <li><span>Datenkategorien</span></li>
    <li><span>Zwecke der Datenverarbeitung</span></li>
    <li><span>Empfänger personenbezogener Daten</span></li>
  </ul>
  <p class="footer">
    Etwas unklar? <a href="getInTouch">Schreib uns.</a>
  </p>
</div>
mplungjan
  • 169,008
  • 28
  • 173
  • 236
horseshoe7
  • 2,745
  • 2
  • 35
  • 49
  • Stackoverflow also has a snippet editor `[<>]` – mplungjan Mar 04 '19 at 09:42
  • NOTE: I'm also open to other ways to achieve the same goal, such as div classes for list items with floating image bullets. We're using HTML as a rendering method, not because it needs to be semantically awesome. – horseshoe7 Mar 04 '19 at 09:53
  • I do not recommend any vertically alignment of the bullet points other then top. This is beyond user expectations. If you happen to have a long `
  • ` content, the user can't tell, where the new `li` begins and the previous `li` ends as it looks just like an ordinary paragraph at the first glance. Some users might even think that the list has ended altogether.
  • – yunzen Mar 04 '19 at 10:16
  • It's really not my decision how something is supposed to look visually. This is why we have designers. In the context of what our app is doing, a vertically-aligned bullet point makes sense. – horseshoe7 Mar 04 '19 at 10:17