Issue:
I am struggling with indenting text properly on responsive devices. While the desktop version looks fine, the text goes out of control on mobile views. Here is how it currently appears:
https://i.sstatic.net/shW2P.png
Below is an example after applying a text indent using the following CSS for an iPhone 5:
https://i.sstatic.net/k0hUQ.png
Code:
feature-bar {
background-color: #f8f8f8;
height: 200px;
margin-top: 0px;
text-decoration: solid;
color: red;
text-indent: 100px;
padding-top: 20px;
}
Question:
How can I properly format the text indent to display correctly on mobile devices?
UPDATE
Based on the suggestions provided, I experimented with using <li>
or vw
. Specifically, I want the time range (13.00 - 13.20) to remain on one line and have the text start on the next line for mobile views. Would implementing a media query help resolve this issue?
SECOND UPDATE
Desired appearance on mobile devices: https://i.sstatic.net/PZywF.png