Search code examples
htmlcsstextfontsstylesheet

How can I move a single line of text up by 10px or 15px using CSS?


I have a single line of text in my footer of my html/php website, next to it is a twitter button. The problem is visually it doesn't look right as the button is out of line with the line of text. I have tried evrything I can think of from line-hight to padding, margins and just plan height but nothing is getting the line of text where I want it to be. I have tried minus values to like 3em and -3em.

Can anyone think of a way to force the line up by roughly 10px - 15px?


Solution

  • Try

    position: relative;
    display: inline-block;
    bottom: 15px;