Issues moving text using “line-height”
-
Hey all,
Im not the greatest with HTML and CSS so bear with me. At the bottom of my site, https://www.brettsalyer.com, I have a “Hosted by raspberry pi” at the bottom, along with an image. I cannot seem to get the text I have to align to center of the image to the right of it. I can shift the text left and right, as well as downwards with
line-height
but I cannot seem to get it to shift up. This is the CSS I am currently using for my image and text:.site-info { font-size: 14px; font-size: 0.875rem; margin-bottom: 1em; } .site-info img { display: block; margin-left: auto; margin-right: auto; } .site-info p { text-align: right; line-height: -50px; }
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Issues moving text using “line-height”’ is closed to new replies.