View Single Post
Old 09-15-2024, 12:16 PM   #17
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,355
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
OK - last iteration, I promise! (I use this as an excuse for getting out of chores - all y'all NEED my advice )

Using Sigil I was able to push the vh back to 100 by surrounding the author name with the div delineator. This works no-matter the height of the display window.

Make sure you only use this technique on its own html page...otherwise the div's will superimpose over your other text.

Code:
CSS:
body, p  {text-align:center; font-family:serif; font-weight:bold;
          text-indent:0; padding:0; margin:0}

h2.title {font-size:2.7em; text-transform:uppercase}
  .auth  {font-size:1.4em; font-variant:small-caps}
  .sub   {font-size:1.1em}

  .pub     {font-size:.8em}
  .pub img {display:block; width:10%; margin:0 auto}

div[class^="v-"] {height:100vh; width:100vw; display:table; position:fixed}
div.v-top div    {display:table-cell; vertical-align:top}
div.v-mid div    {display:table-cell; vertical-align:middle}
div.v-btm div    {display:table-cell; vertical-align:bottom}
Code:
HTML:
<body>
  <div class="v-top">
    <div>
      <p class="auth">Thomas Perry</p>
    </div>
  </div>
  <div class="v-mid">
    <div>
      <h2 class="title">Eddie's Boy</h2>
      <p class="sub">A Novel</p>
    </div>
  </div>
  <div class="v-btm">
    <div>
      <p class="pub"><img alt="" src="../Images/logo_MysteriousPress.png"/>
      The Mysterious Press<br/>New York</p>
    </div>
  </div>
</body>
Click image for larger version

Name:	Screenshot 2024-09-15 115519.png
Views:	125
Size:	33.6 KB
ID:	210841Click image for larger version

Name:	Screenshot 2024-09-15 115448.png
Views:	108
Size:	36.4 KB
ID:	210842


>=======<


You can also put the title/sub lines in the 'top' group:

Code:
HTML:
<body>
  <div class="v-top">
    <div>
      <p class="auth">Thomas Perry</p>
      <h2 class="title">Eddie's Boy</h2>
      <p class="sub">A Novel</p>
    </div>
  </div>
  <div class="v-btm">
    <div>
      <p class="pub"><img alt="" src="../Images/logo_MysteriousPress.png"/>
       The Mysterious Press<br/>New York</p>
    </div>
  </div>
</body>
Click image for larger version

Name:	Screenshot 2024-09-15 115542.png
Views:	126
Size:	32.3 KB
ID:	210840Click image for larger version

Name:	Screenshot 2024-09-15 120714.png
Views:	115
Size:	36.8 KB
ID:	210843
Turtle91 is offline   Reply With Quote