View Single Post
Old 09-14-2024, 09:29 PM   #3
foosion
Evangelist
foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.
 
Posts: 479
Karma: 41524
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
Quote:
Originally Posted by enuddleyarbl View Post
I know you're talking about an image, but I've used:
Code:
text-align: center;
and it centers images fine. Does it do what you need in your case?
That works fine normally, but hasn't worked for me together with position: fixed.

Code:
div.fixed {
  position: fixed;
  bottom: 0;
  text-align: center;
}
places things at the bottom but does not center. Text-align:center does work for both img and text, but it's the combination with fixed that's the issue.

EDIT: I can fake it with multiple fixed tags, the bottom line at 0, the next up at 1.2em, the next up at 2.4em, etc. I'm not sure if this is robust. Perhaps a table?

EDIT2: See my latest post. Not sure what I did wrong before.

Last edited by foosion; 09-15-2024 at 08:02 AM.
foosion is offline   Reply With Quote