Cellphone Shrink and Span Text Flow |
Cellphone Shrink and Span Text Flow |
Bill in PA |
Jan 12 2023, 12:10 AM
Post
#1
|
Group: Members Posts: 1 Joined: 11-January 23 Member No.: 28,742 |
When I view this webpage on a computer it works fine. As I shrink or increase the container size, the number of words per line increases or decreases as desired.
But when I view it on a cellphone, shrinking or enlarging the container the text increased or decreases, but the number of words per line doesn't change and they overflow and disappear when enlarged enough Attached File(s) WBTMemoirWhoIsWho_test3.html ( 3.19k ) Number of downloads: 69 |
Christian J |
Jan 12 2023, 05:38 AM
Post
#2
|
. Group: WDG Moderators Posts: 9,656 Joined: 10-August 06 Member No.: 7 |
As I shrink or increase the container size You mean by zooming or resizing the browser window? QUOTE But when I view it on a cellphone, shrinking or enlarging the container the text increased or decreases, but the number of words per line doesn't change and they overflow and disappear when enlarged enough Maybe it's because of the "max-width" and "overflow: hidden" here: CODE .tab { max-width: 600px; } .tab .content { background: #ccdef9; overflow: hidden; transition: max-height 0.3s; max-height: 0; } /* (E) OPEN TAB ON CHECKED */ .tab input:checked ~ .content { max-height: 100vh; } |
Lo-Fi Version | Time is now: 26th April 2024 - 08:18 AM |