The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Cellphone Shrink and Span Text Flow
Bill in PA
post 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)
Attached File  WBTMemoirWhoIsWho_test3.html ( 3.19k ) Number of downloads: 69
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Jan 12 2023, 05:38 AM
Post #2


.
********

Group: WDG Moderators
Posts: 9,656
Joined: 10-August 06
Member No.: 7



QUOTE(Bill in PA @ Jan 12 2023, 06:10 AM) *

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; }



User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 26th April 2024 - 08:18 AM