Hello Hashnoders :)
so... I was curious what the best way to center some text in relation to another object would be...
I have text that I manually aligned in one slide.... but in the next slide ( since there are more characters ) it is offset ...
so I wonder if there is a way to select an object and then tell your text to always stay centered to it?
anyone have the css answer here ?
THANK YOU ALL SO MUCH!


I'd go for a flexbox:
<style>
#slide {
align-items: center;
display: flex;
flex-direction: column;
}
#slide > img {
max-height: 300px;
}
#slide > p {
font-size: 300%;
margin-top: 0;
}
</style>
<div id="slide">
<img src="upload.wikimedia.org/wikipedia/commons/7/73/Lion_…">
<p>Der Löwe</p>
</div>
HTML 5 kicked out the alignment for centering when it comes to text and replaces it.
Very simple, you can do it in a few ways.
P { Text-align: centre}
Or if you're looking for a custom tag
I'll jump on laptop and explain more in a bit
Jessica Durbin
Well, sorry but I didn't know about it much. But my sister knows about it I will ask her for this. But before that, I need a research paper service to help my sister with his essay work. If anyone knows about this then please let me know.