V
V
Vladimir Kuts2017-06-16 11:00:22
iPhone
Vladimir Kuts, 2017-06-16 11:00:22

Make symbol white on iPhone?

There is an element in the background. It needs to be made translucent white. On desktop browsers everything is ok, but in Safari on the iPhone it is opaque black.
How to change the color of the symbol when displayed on the iPhone?

<div class="wrapper">
  <div class="close-lnk">
    <span class="close-symbol">&#10006;</span>
  </div>
</div>

.wrapper {
  background-color: #555da0;
  height: 100px;
  width: 100px;
  text-align: center;
}

.close-lnk {
 padding-top: 45px;
}

.close-symbol {
  color: white;
  opacity: 0.6;
}

Example:
https://jsfiddle.net/sf38txLj/1/
On desktop browsers everything is ok, on iPhone the symbol turns black.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question