View Single Post
Old 03-19-2020, 09:26 PM   #1
rjwse@aol.com
Addict
rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.
 
rjwse@aol.com's Avatar
 
Posts: 325
Karma: 2228060
Join Date: Dec 2013
Location: LaVernia, Texas
Device: kindle epub readers on android
responsive font (relative to container or column)

Does anyone know of a construction suitable for responsively sized text which is not pegged to the whole screen? VW relates to the entire screen, not the column. I am looking for a method, perhaps with javascript which will resize a paragraph of bordered multi-line text progressively and as the number of columns change. I tried SVG but it requires an external link and is slow to load in an epub.
Code:
<style> ol{ border:black solid 1px; background-color:khaki; border-radius:10px; padding:.5em;} img{border-radius:10px;}
.container {position: relative; text-align: left; color: ;}
.bot{bottom:-.5em}
.top{top:-.5em}
.lft{left:-.5em}
.rgt{right:-.5em}
.mid{top:50%; transform:translate(0%, -50%)}
.ctr{left:50%;transform:translate(-50%, 0%)}  
.mid+.ctr{transform:translate(-50%, -1em);}
div div {background-color:khaki; border-radius: 10px; padding:.5em; font-size:.5em; position: absolute;} </style>
<ol><div class="container">  <img src="1.jpg" style="width:100%;"> </img>
  <div class="top lft">top lft</div>
  <div class="top ctr">top ctr</div>
  <div class="top rgt">top rgt<br/>hello!<br/>how are you?</div>
  <div class="mid lft">mid lft</div>
  <div class=" mid ctr">mid ctr</div>
  <div class="mid rgt">mid rgt</div>
  <div class="bot lft">bot lft</div>
  <div class="bot  ctr">bot ctr</div>
  <div class="bot rgt">bot rgt</div> </div></ol>
Best regards, Pop
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2020-03-19 20-20-10.jpg
Views:	184
Size:	203.2 KB
ID:	177818   Click image for larger version

Name:	Screenshot from 2020-03-19 20-19-12.png
Views:	188
Size:	741.4 KB
ID:	177819  
rjwse@aol.com is offline   Reply With Quote